CVE-2024-42416 Multiple issues in ctl(4) CAM Target Layer

High 8.4 Published Updated

A guest VM or remote iSCSI initiator can exploit a kernel validation flaw to achieve code execution on the host, typically within the bhyve process.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-42416?

CVE-2024-42416 is a high-severity memory corruption vulnerability in Freebsd Freebsd, published on 5 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-1284, CWE-823, CWE-790

Which versions are affected by CVE-2024-42416?

It affects 1 product.

Products include Freebsd Freebsd.

How do I fix CVE-2024-42416?

No fix has been published for CVE-2024-42416 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-42416 being exploited?

There is no known exploitation of CVE-2024-42416 in the wild and no public exploit code.

All Freebsd Freebsd vulnerabilities

Sources

Also known as GHSA-hgfp-qxpq-6q7w.

Is CVE-2024-42416 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free