REDHAT-BUG-2254580: Buffer Overflow

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);

Affected Software

1 affected component
Qemu Qemu

Event History

Dec 14, 2023
Data Sourced
via Red Hat·04:55 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2254580?

The severity of REDHAT-BUG-2254580 is considered critical due to the potential for remote code execution through stack-based buffer overflow.

2

How do I fix REDHAT-BUG-2254580?

To fix REDHAT-BUG-2254580, update the QEMU package to the latest version that has addressed this vulnerability.

3

What systems are affected by REDHAT-BUG-2254580?

The systems affected by REDHAT-BUG-2254580 include any installations of QEMU that utilize the virtio-net device with specific guest features enabled.

4

What causes the vulnerability in REDHAT-BUG-2254580?

The vulnerability in REDHAT-BUG-2254580 is caused by a stack-based buffer overflow occurring in the virtio_net_flush_tx function when handling certain guest features.

5

Is there a workaround for REDHAT-BUG-2254580 until I can apply a fix?

Yes, a possible workaround for REDHAT-BUG-2254580 is to disable the affected features on the virtio-net device if feasible.

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