CVE-2023-6693 Qemu: virtio-net: stack buffer overflow in virtio_net_flush_tx()

Medium 4.9 Published Updated

A stack buffer overflow in QEMU's virtio-net device allows guest users to leak memory or potentially execute code when specific features are enabled.

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-2023-6693?

CVE-2023-6693 is a medium-severity memory corruption vulnerability in Fedoraproject Fedora, published on 2 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A stack based buffer overflow was found in the virtio-net device of QEMU. This issue occurs when flushing TX in the virtio_net_flush_tx function if guest features VIRTIO_NET_F_HASH_REPORT, VIRTIO_F_VERSION_1 and VIRTIO_NET_F_MRG_RXBUF are enabled. This could allow a malicious user to overwrite local variables allocated on the stack. Specifically, the `out_sg` variable could be used to read a part of process memory and send it to the wire, causing an information leak.

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2023-6693?

It affects 3 products.

Linux distribution packages (1)
qemu openSUSE:TumbleweedAll versions8.2.1-1.1

Products include Fedoraproject Fedora, Qemu Qemu, Redhat Enterprise Linux.

How do I fix CVE-2023-6693?

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-2023-6693 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-35675, AZL-35676, BELL-CVE-2023-6693, CLSA-2026-1779097389, DEBIAN-CVE-2023-6693, GHSA-835p-c6x8-xh5f and 2 more.

Is CVE-2023-6693 in your software?

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

Check your SBOMs for free