{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-8178",
        "ASSIGNER": "secteam@freebsd.org",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "The ctl_write_buffer and ctl_read_buffer functions allocated memory to be returned to userspace, without initializing it.\n\nMalicious software running in a guest VM that exposes virtio_scsi can exploit the vulnerabilities to achieve code execution on the host in the bhyve userspace process, which typically runs as root.  Note that bhyve runs in a Capsicum sandbox, so malicious code is constrained by the capabilities available to the bhyve process.  A malicious iSCSI initiator could achieve remote code execution on the iSCSI target host."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-908 Use of Uninitialized Resource",
                        "cweId": "CWE-908"
                    }
                ]
            },
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-909 Missing Initialization of Resource",
                        "cweId": "CWE-909"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "FreeBSD",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "FreeBSD",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "14.1-RELEASE",
                                            "version_value": "p4"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "14.0-RELEASE",
                                            "version_value": "p10"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "13.3-RELEASE",
                                            "version_value": "p6"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc",
                "refsource": "MISC",
                "name": "https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc"
            }
        ]
    },
    "credits": [
        {
            "lang": "en",
            "value": "Synacktiv"
        },
        {
            "lang": "en",
            "value": "The FreeBSD Foundation"
        },
        {
            "lang": "en",
            "value": "The Alpha-Omega Project"
        }
    ]
}