CVE-2024-7730 Qemu-kvm: virtio-snd: heap buffer overflow in virtio_snd_pcm_in_cb()

High 7.4 Published Updated

A heap buffer overflow in QEMU's virtio-snd device allows attackers to trigger out-of-bounds writes, potentially leading to code execution or denial of service.

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

What is CVE-2024-7730?

CVE-2024-7730 is a high-severity memory corruption vulnerability in Qemu Qemu, published on 14 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A heap buffer overflow was found in the virtio-snd device in QEMU. When reading input audio in the virtio-snd input callback, virtio_snd_pcm_in_cb, the function did not check whether the iov can fit the data buffer. This issue can trigger an out-of-bounds write if the size of the virtio queue element is equal to virtio_snd_pcm_status, which makes the available space for audio data zero.

Weakness: CWE-122

Which versions are affected by CVE-2024-7730?

It affects 1 product.

Products include Qemu Qemu.

How do I fix CVE-2024-7730?

Apply the vendor's patch.

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

Is CVE-2024-7730 being exploited?

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

All Qemu Qemu vulnerabilities

Sources

Also known as AZL-60907, BELL-CVE-2024-7730, DEBIAN-CVE-2024-7730, GHSA-pfxg-46gm-p35h, OESA-2024-2414, UBUNTU-CVE-2024-7730.

Is CVE-2024-7730 in your software?

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

Check your SBOMs for free