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

Published Dec 14, 2023
·
Updated

A stack based buffer overflow was found in the virtio-net device of QEMU. The flaw occurs while copying data to mhdr, a local variable of type virtionethdrmrgrxbuf, when flushing TX in the virtionetflushtx function. If guest features VIRTIONETFHASHREPORT, VIRTIOFVERSION1 and VIRTIONETFMRGRXBUF are enabled, n->guesthdrlen is set to sizeof(struct virtionethdrv1hash), which is bigger than sizeof(virtionethdrmrgrxbuf). This vulnerability could potentially allow a malicious user to overwrite local variables adjacent to mhdr allocated on the stack. Specifically, the outsg variable could be used to read some part of process memory and send it to the wire:

ret = qemusendvpacketasync(qemugetsubqueue(n->nic, queueindex), outsg, outnum, virtionettxcomplete);

Other sources

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

Launchpad

Qemu: virtio-net: stack buffer overflow in virtionetflushtx()

Microsoft

Affected Software

11 affected componentsFixes available
debian/qemu<=1:5.2+dfsg-11+deb11u3, <=1:5.2+dfsg-11+deb11u2
1:7.2+dfsg-7+deb12u71:9.0.2+ds-21:9.1.0+ds-3
Qemu Qemu<8.2.1
redhat Enterprise Linux=8.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
Fedoraproject Fedora=39
Microsoft azl3 qemu 8.2.0-13
Microsoft cbl2 qemu 6.2.0-24
Microsoft cbl2 qemu 6.2.0-21
Microsoft cbl2 qemu 6.2.0-24
Microsoft azl3 qemu 8.2.0-16

Event History

Dec 14, 2023
Data Sourced
via Red Hat·04:55 PM
DescriptionSeverityAffected Software
Jan 2, 2024
CVE Published
via MITRE·09:15 AM
Data Sourced
via MITRE·09:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 13, 2024
Data Sourced
via Launchpad·06:43 AM
Description
Sep 14, 2024
Data Sourced
via Ubuntu·06:48 AM
RemedyDescriptionSeverityAffected Software
Mar 26, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Updated
via Microsoft·07:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2023-6693?

CVE-2023-6693 is categorized as a critical vulnerability due to the potential for a stack-based buffer overflow.

2

How do I fix CVE-2023-6693?

To mitigate CVE-2023-6693, upgrade QEMU to versions 1:7.2+dfsg-7+deb12u7, 1:9.0.2+ds-2, or 1:9.1.0+ds-3.

3

What versions of QEMU are affected by CVE-2023-6693?

CVE-2023-6693 affects QEMU versions up to 8.2.1 and from 1:5.2+dfsg-11+deb11u3, down to 1:5.2+dfsg-11+deb11u2.

4

Which distributions are impacted by CVE-2023-6693?

CVE-2023-6693 impacts QEMU installations on Debian, Red Hat Enterprise Linux, and Fedora systems.

5

What is the nature of the vulnerability in CVE-2023-6693?

The nature of CVE-2023-6693 is a stack-based buffer overflow that occurs during the data copying process in the virtio-net device.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203