CVE-2021-3748 json
A use-after-free vulnerability was found in the virtio-net device of QEMU.
published 2022-03-23 4 y ago modified 2026-06-17 4 mo ago also EUVD-2021-27024
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 44%
- public exploits
- 0
- none known
Summary
A use-after-free vulnerability was found in the virtio-net device of QEMU. It could occur when the descriptor's address belongs to the non direct access region, due to num_buffers being set after the virtqueue elem has been unmapped. A malicious guest could use this flaw to crash QEMU, resulting in a denial of service condition, or potentially execute code on the host with the privileges of the QEMU process.
Patch / fix
- qemu qemu 6.2.0
- qemu Debian 14, Debian 13, Debian 12 1:6.1+dfsg-6
debian advisories DEBIAN-CVE-2021-3748
- qemu Ubuntu 18.04 LTS 1:2.11+dfsg-1ubuntu7.39
- qemu Ubuntu 20.04 LTS 1:4.2-3ubuntu6.21
- qemu Ubuntu 22.04 LTS 1:6.2+dfsg-2ubuntu5
ubuntu advisories UBUNTU-CVE-2021-3748
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- SLOF RHEL 8 20210217-1.module+el8.6.0+14480+c0a3aa0f
- hivex RHEL 8 1.3.18-23.module+el8.6.0+14480+c0a3aa0f
- netcf RHEL 8 0.2.8-12.module+el8.6.0+14480+c0a3aa0f
- swtpm RHEL 8 0.7.0-1.20211109gitb79fd91.module+el8.6.0+14480+c0a3aa0f
- libnbd RHEL 8 1.6.0-5.module+el8.6.0+14480+c0a3aa0f
- nbdkit RHEL 8 1.24.0-4.module+el8.6.0+14480+c0a3aa0f
- libtpms RHEL 8 0.9.1-0.20211126git1ff6fe1f43.module+el8.6.0+14480+c0a3aa0f
- libvirt RHEL 8 8.0.0-5.module+el8.6.0+14480+c0a3aa0f
red hat advisories RHSA-2022:1759RHSA-2021:5036RHSA-2021:4112
- qemu SLES for SAP 12 SP3, SLES 12 SP3-LTSS, SLES 12 SP3-BCL +3 more 2.9.1-43.62.1
- qemu SLES for SAP 12 SP4, SLES 12 SP4-LTSS, OpenStack Cloud Crowbar 9 +1 more 2.11.2-5.40.2
- qemu SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLES 15 SP1-BCL +3 more 3.1.1.1-80.40.1
- qemu SLES for SAP 15, SLES 15-LTSS, SLE High Performance Computing 15-LTSS +1 more 2.11.2-70.59.1
- qemu SLE Module for Server Applications 15 SP3, SLE Module for Basesystem 15 SP3, SLE Micro 5.1 5.2.0-106.4
- qemu SLE Module for Server Applications 15 SP2, SLE Module for Basesystem 15 SP2, SLE Micro 5.0 4.2.1-11.31.3
- qemu SLES for SAP 12 SP5, SLES 12 SP5 3.1.1.1-60.2
suse advisories SUSE-SU-2021:3653-1SUSE-SU-2021:3635-1SUSE-SU-2021:3614-1SUSE-SU-2021:3613-1SUSE-SU-2021:3605-1SUSE-SU-2021:3604-1
- qemu openSUSE Tumbleweed 6.1.0-34.1
- qemu openSUSE Leap 15.2 4.2.1-lp152.9.23.1
- qemu-testsuite openSUSE Leap 15.2 4.2.1-lp152.9.23.1
- qemu-linux-user openSUSE Leap 15.2 4.2.1-lp152.9.23.1
- qemu openSUSE Leap 15.3 3.1.1.1-80.40.1
- qemu openSUSE Leap 15.3 5.2.0-106.4
- qemu-testsuite openSUSE Leap 15.3 5.2.0-106.3
- qemu-linux-user openSUSE Leap 15.3 5.2.0-106.3
opensuse advisories openSUSE-SU-2024:11597-1openSUSE-SU-2021:1461-1openSUSE-SU-2021:3614-1openSUSE-SU-2021:3605-1openSUSE-SU-2021:3604-1
- SLOF AlmaLinux 8 20210217-1.module_el8.6.0+2880+7d9e3703
- hivex AlmaLinux 8 1.3.18-23.module_el8.6.0+2880+7d9e3703
- netcf AlmaLinux 8 0.2.8-12.module_el8.6.0+2880+7d9e3703
- swtpm AlmaLinux 8 0.7.0-1.20211109gitb79fd91.module_el8.6.0+2880+7d9e3703
- libnbd AlmaLinux 8 1.6.0-5.module_el8.6.0+2880+7d9e3703
- nbdkit AlmaLinux 8 1.24.0-4.module_el8.6.0+2880+7d9e3703
- libtpms AlmaLinux 8 0.9.1-0.20211126git1ff6fe1f43.module_el8.6.0+2880+7d9e3703
- libvirt AlmaLinux 8 8.0.0-5.module_el8.6.0+2880+7d9e3703
almalinux advisories ALSA-2022:1759
- hivex Rocky Linux 8 1.3.18-23.module+el8.7.0+1084+97b81f61
- hivex Rocky Linux 8 1.3.18-23.module+el8.6.0+847+b490afdd
- netcf Rocky Linux 8 0.2.8-12.module+el8.7.0+1084+97b81f61
- netcf Rocky Linux 8 0.2.8-12.module+el8.4.0+534+4680a14e
- netcf Rocky Linux 8 0.2.8-12.module+el8.6.0+847+b490afdd
- swtpm Rocky Linux 8 0.7.0-1.20211109gitb79fd91.module+el8.6.0+847+b490afdd
- libnbd Rocky Linux 8 1.6.0-5.module+el8.7.0+1084+97b81f61
- libnbd Rocky Linux 8 1.6.0-5.module+el8.6.0+847+b490afdd
rocky linux advisories RLSA-2022:1759
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3748 updated cvss 7.5
QEMU: virtio-net: heap use-after-free in virtio_net_receive_rcu
-
Red Hat Enterprise Linux 6 qemu-img, qemu-kvm, qemu-kvm-tools, qemu-guest-agent, qemu-guest-agent-win32 Red Hat Enterprise Linux 7 qemu-img, qemu-kvm, libcacard, qemu-img-ma, qemu-kvm-ma, qemu-kvm-tools, +5 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 Advanced Virtualization qemu-img, qemu-kvm, qemu-kiwi, qemu-kvm-core, qemu-kvm-tests, qemu-kvm-common, +9 moreaffected: workaround, no fix available
-
Red Hat OpenStack Platform 10 (Newton) qemu-img-rhev, qemu-kvm-rhev, qemu-kvm-tools-rhev, qemu-kvm-common-rhev Red Hat OpenStack Platform 13 (Queens) qemu-img-rhev, qemu-kvm-rhev, qemu-kvm-tools-rhev, qemu-kvm-common-rhevaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Advanced Virtualization CodeReady Builder for RHEL 8.2.1 libnbd 1.2.2-1.module+el8.2.0+5644+32ac38d4, netcf 0.2.8-12.module+el8.2.0+4793+b09dd2fb, hivex 1.3.18-20.module+el8.2.0+5588+63a201c3, nbdfuse 1.2.2-1.module+el8.2.0+5644+32ac38d4, seabios 1.13.0-2.module+el8.2.1+7284+aa32a2c4, libiscsi 1.18.0-8.module+el8.2.0+4793+b09dd2fb, +45 more Red Hat Advanced Virtualization for RHEL 8.2.1 libnbd 1.2.2-1.module+el8.2.0+5644+32ac38d4, netcf 0.2.8-12.module+el8.2.0+4793+b09dd2fb, hivex 1.3.18-20.module+el8.2.0+5588+63a201c3, nbdfuse 1.2.2-1.module+el8.2.0+5644+32ac38d4, nbdkit 1.16.2-4.module+el8.2.1+6710+effcb1df, seabios 1.13.0-2.module+el8.2.1+7284+aa32a2c4, +96 morefixed: vendor fix RHSA-2021:5036
-
Red Hat Advanced Virtualization for RHEL 8.4.0.Z libnbd 1.6.0-3.module+el8.4.0+9856+bbc47853, netcf 0.2.8-12.module+el8.4.0+8855+a9e237a9, nbdfuse 1.6.0-3.module+el8.4.0+9856+bbc47853, nbdkit 1.24.0-1.module+el8.4.0+9341+96cf2672, hivex 1.3.18-21.module+el8.4.0+11609+2eba841a, seabios 1.14.0-1.module+el8.4.0+8855+a9e237a9, +110 morefixed: vendor fix RHSA-2021:4112
-
Red Hat Enterprise Linux AppStream (v. 8) libnbd 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, netcf 0.2.8-12.module+el8.6.0+14480+c0a3aa0f, hivex 1.3.18-23.module+el8.6.0+14480+c0a3aa0f, libvirt 8.0.0-5.module+el8.6.0+14480+c0a3aa0f, nbdfuse 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, nbdkit 1.24.0-4.module+el8.6.0+14480+c0a3aa0f, +104 more Red Hat Enterprise Linux CRB (v. 8) libnbd 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, netcf 0.2.8-12.module+el8.6.0+14480+c0a3aa0f, hivex 1.3.18-23.module+el8.6.0+14480+c0a3aa0f, libvirt 8.0.0-5.module+el8.6.0+14480+c0a3aa0f, nbdfuse 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, SLOF 20210217-1.module+el8.6.0+14480+c0a3aa0f, +38 morefixed: vendor fix RHSA-2022:1759
-
Red Hat Enterprise Linux 9 qemu-img, qemu-kvm, qemu-kvm-core, qemu-kvm-tools, qemu-pr-helper, qemu-kvm-common, +16 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | 2.0 | 6.9 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
Affected products
- n/a QEMU (virtio-net)
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
github.com
/qemu/qemu/commit/bedd7e93d01961fcb16a97ae45d93acf357e11f6
patch, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1998514
issue-tracking, patch, third-party-advisory
-
ubuntu.com
/security/CVE-2021-3748
patch, third-party-advisory
-
lists.nongnu.org
/archive/html/qemu-devel/2021-09/msg00388.html
mailing-list, patch, third-party-advisory
-
security.gentoo.org
/glsa/202208-27
vendor-advisory, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/04/msg00002.html
mailing-list, third-party-advisory
-
security.netapp.com
/advisory/ntap-20220425-0004/
third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/09/msg00008.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2021-3748
- NVD CVE-2021-3748
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.