CVE-2024-42416

published 5 Sep 2024 · updated 4 Nov 2025

Multiple issues in ctl(4) CAM Target Layer

8.4HighCVSS 8.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in p6, p10 and p4.

The ctl_report_supported_opcodes function did not sufficiently validate a field provided by userspace, allowing an arbitrary write to a limited amount of kernel help memory. Malicious 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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
FreeBSD>=13.3-RELEASE <p6, >=14.0-RELEASE <p10, >=14.1-RELEASE <p4p6, p10, p4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-42416 severity on Zeptric[![CVE-2024-42416](https://zeptric.io/badge/cve/CVE-2024-42416.svg)](https://zeptric.io/cve/CVE-2024-42416)