CVE-2022-26353: Use After Free

Published Mar 11, 2022
·
Updated

A flaw was found in the virtio-net device of QEMU. This flaw was inadvertently introduced with the fix for CVE-2021-3748, which forgot to unmap the cached virtqueue elements on error, leading to memory leakage and other unexpected results. Affected QEMU version: 6.2.0.

Other sources

Commit bedd7e93d0196 ("virtio-net: fix use after unmap/free for sg") tries to fix the use after free of the sg by caching the virtqueue elements in an array and unmap them at once after receiving the packets, But it forgot to unmap the cached elements on error which will lead to leaking of mapping and other unexpected results.

Upstream patch: https://lists.nongnu.org/archive/html/qemu-devel/2022-03/msg02438.html

— Red Hat

Affected Software

9 affected componentsFixes available
Qemu Qemu=6.2.0
Debian Debian Linux=11.0
debian/qemu<1:7.0+dfsg-1
1:7.0+dfsg-1
debian/qemu<1:7.0+dfsg-1
1:7.0+dfsg-1
debian/qemu<1:7.0+dfsg-1
1:7.0+dfsg-1
debian/qemu
1:5.2+dfsg-11+deb11u21:7.0+dfsg-1
ubuntu/qemu<1:2.11+dfsg-1ubuntu7.40
1:2.11+dfsg-1ubuntu7.40
ubuntu/qemu<1:4.2-3ubuntu6.23
1:4.2-3ubuntu6.23
ubuntu/qemu<1:6.2+dfsg-2ubuntu6.2
1:6.2+dfsg-2ubuntu6.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/qemu to a version that resolves this vulnerability.

    Fixed in 1:7.0+dfsg-1
  2. Upgrade

    Upgrade debian/qemu to a version that resolves this vulnerability.

    Fixed in 1:5.2+dfsg-11+deb11u2Fixed in 1:7.0+dfsg-1
  3. Upgrade

    Upgrade ubuntu/qemu to a version that resolves this vulnerability.

    Fixed in 1:2.11+dfsg-1ubuntu7.40
  4. Upgrade

    Upgrade ubuntu/qemu to a version that resolves this vulnerability.

    Fixed in 1:4.2-3ubuntu6.23
  5. Upgrade

    Upgrade ubuntu/qemu to a version that resolves this vulnerability.

    Fixed in 1:6.2+dfsg-2ubuntu6.2
  6. Upgrade

    Upgrade QEMU to a version that resolves this vulnerability.

    Patch bedd7e93d0196

Event History

Mar 11, 2022
Data Sourced
02:03 PM
DescriptionSeverityAffected Software
Mar 16, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
CVE Published
via MITRE·02:02 PM
Data Sourced
via MITRE·02:02 PM
DescriptionWeakness
Data Sourced
via OSV·03:15 PM
DescriptionSeverityAffected Software
Oct 31, 2022
Data Sourced
via Red Hat·10:34 PM
DescriptionSeverityAffected Software
Feb 12, 2023
Data Sourced
10:15 PM
Weakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
10:15 PM
Affected Software
Nov 21, 2024
Updated
via NVD·06:53 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·04:35 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for this flaw?

The vulnerability ID for this flaw is CVE-2022-26353.

2

What is the severity of CVE-2022-26353?

The severity of CVE-2022-26353 is high with a severity value of 7.5.

3

Which versions of QEMU are affected by CVE-2022-26353?

QEMU version 6.2.0 is affected by CVE-2022-26353.

4

How was CVE-2022-26353 introduced?

CVE-2022-26353 was inadvertently introduced with the fix for CVE-2021-3748.

5

Are there any known fixes for CVE-2022-26353?

Yes, there are known fixes available. Please refer to the provided references for more information.

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