{"id":"CVE-2024-8178","state":"PUBLISHED","title":"Multiple issues in ctl(4) CAM Target Layer","description":"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.","publishedAt":"2024-09-05T04:31:12.231Z","updatedAt":"2025-11-04T16:15:56.298Z","severity":{"score":9.3,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"freebsd","products":["FreeBSD FreeBSD"],"affected":[{"vendor":"FreeBSD","product":"FreeBSD","defaultStatus":"unknown","versions":[{"version":"14.1-RELEASE","status":"affected","lessThan":"p4","versionType":"release"},{"version":"14.0-RELEASE","status":"affected","lessThan":"p10","versionType":"release"},{"version":"13.3-RELEASE","status":"affected","lessThan":"p6","versionType":"release"}],"modules":["ctl"]}],"references":["https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc","https://security.netapp.com/advisory/ntap-20240920-0010/"],"weaknesses":["CWE-908","CWE-909"],"ingestedAt":"2026-10-29T20:08:20.985Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/8xxx/CVE-2024-8178.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-8178","state":"PUBLISHED","datePublished":"2024-09-05T04:31:12.231Z","dateUpdated":"2025-11-04T16:15:56.298Z","assignerShortName":"freebsd","assignerOrgId":"63664ac6-956c-4cba-a5d0-f46076e16109","dateReserved":"2024-08-26T14:21:13.958Z"},"containers":{"cna":{"title":"Multiple issues in ctl(4) CAM Target Layer","descriptions":[{"lang":"en","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."}],"affected":[{"vendor":"FreeBSD","product":"FreeBSD","defaultStatus":"unknown","versions":[{"version":"14.1-RELEASE","status":"affected","lessThan":"p4","versionType":"release"},{"version":"14.0-RELEASE","status":"affected","lessThan":"p10","versionType":"release"},{"version":"13.3-RELEASE","status":"affected","lessThan":"p6","versionType":"release"}],"modules":["ctl"]}],"references":[{"url":"https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc","tags":["vendor-advisory"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-908","description":"CWE-908 Use of Uninitialized Resource","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-909","description":"CWE-909 Missing Initialization of Resource","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"freebsd","orgId":"63664ac6-956c-4cba-a5d0-f46076e16109","dateUpdated":"2024-09-05T04:31:12.231Z"},"datePublic":"2024-09-04T23:37:17.000Z","credits":[{"lang":"en","type":"finder","value":"Synacktiv"},{"lang":"en","type":"sponsor","value":"The FreeBSD Foundation"},{"lang":"en","type":"sponsor","value":"The Alpha-Omega Project"}]},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"freebsd","product":"freebsd","defaultStatus":"unknown","versions":[{"version":"14.1","status":"affected","lessThan":"14.1_p4","versionType":"custom"},{"version":"14.0","status":"affected","lessThan":"14.0_p10","versionType":"custom"},{"version":"13.3","status":"affected","lessThan":"13.3_p6","versionType":"custom"}],"cpes":["cpe:2.3:o:freebsd:freebsd:*:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"CHANGED","version":"3.1","baseScore":9.3,"attackVector":"LOCAL","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-09-05T13:12:44.526839Z","id":"CVE-2024-8178","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-06T16:18:28.901Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.netapp.com/advisory/ntap-20240920-0010/"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-04T16:15:56.298Z"}}]}}}