CVE-2021-3748
NixOS vulnerability analysis and mitigation

Overview

A use-after-free vulnerability was discovered in the virtio-net device of QEMU (CVE-2021-3748). The vulnerability occurs 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. This vulnerability was discovered in August 2021 and affects QEMU versions prior to 6.2.0 (Ubuntu Security, NetApp Advisory).

Technical details

The vulnerability exists in the virtio_net_receive_rcu function within hw/net/virtio-net.c. The issue arises when mergeable buffer is enabled, and the system attempts to set the num_buffers after the virtqueue elem has been unmapped. This specifically occurs when dealing with bounce buffers that are allocated during address_space_map() and freed during address_space_unmap(). The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High) with the vector string CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H (Ubuntu Security).

Impact

The successful exploitation of this vulnerability could allow a malicious guest to crash QEMU, resulting in a denial of service condition, or potentially execute code on the host with the privileges of the QEMU process. This could lead to disclosure of sensitive information, addition or modification of data, or system unavailability (CVE Mitre, NetApp Advisory).

Mitigation and workarounds

The vulnerability has been fixed in QEMU version 6.2.0 and later. The fix involves storing the elems temporarily in an array and delaying the unmap operation until after setting the num_buffers. The patch was committed by Jason Wang and is available in the upstream repository (QEMU Patch). Various Linux distributions have also released security updates to address this vulnerability (Gentoo Security).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management