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

Critical 9.8 Published Updated

A use-after-free in the FreeBSD kernel allows guest VMs or remote iSCSI initiators to execute code on the host, potentially as root.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-45063?

CVE-2024-45063 is a critical use after free vulnerability in Freebsd Freebsd, published on 5 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The function ctl_write_buffer incorrectly set a flag which resulted in a kernel Use-After-Free when a command finished processing.

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-416

Which versions are affected by CVE-2024-45063?

It affects 1 product.

Products include Freebsd Freebsd.

How do I fix CVE-2024-45063?

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

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-45063 being exploited?

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

All Freebsd Freebsd vulnerabilities

Sources

Also known as GHSA-p8gg-cp5h-w499.

Is CVE-2024-45063 in your software?

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

Check your SBOMs for free