CVE-2021-47024: vsock/virtio: free queued packets when closing socket
In the Linux kernel, the following vulnerability has been resolved:
vsock/virtio: free queued packets when closing socket
As reported by syzbot [1], there is a memory leak while closing the
socket. We partially solved this issue with commit ac03046ece2b
("vsock/virtio: free packets during the socket release"), but we
forgot to drain the RX queue when the socket is definitely closed by
the scheduled work.
To avoid future issues, let's use the new virtio_transport_remove_sock()
to drain the RX queue before removing the socket from the af_vsock lists
calling vsock_remove_sock().
[1] https://syzkaller.appspot.com/bug?extid=24452624fc4c571eedd9
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel memory-leak bug in virtio vsock socket shutdown. Affected systems may fail to free queued packets when a socket closes, wasting kernel memory. The sources do not provide a CVSS score or evidence of active exploitation, so urgency depends on whether affected Linux kernels and virtio/vsock are present.
Executive priority
Schedule remediation through normal kernel patching, with higher priority for virtualization platforms or workloads using virtio/vsock. There is no cited active exploitation or severity score, but kernel memory leaks can affect service reliability if reachable and repeated.
Technical view
The fix drains the virtio vsock receive queue before removing the socket from AF_VSOCK lists. The issue was reported by syzbot and partially addressed earlier, but queued RX packets could remain during final socket close. Public references are Linux stable commits; no exploit details are provided.
Likely exposure
Exposure is most likely on Linux systems running affected kernel versions with virtio/vsock functionality present. The source lists Linux as affected and includes 5.2 through later 5.10, 5.11, 5.12, and 5.13-era versions, but distro backports must be checked.
Exploitation context
The provided sources only describe a memory leak during socket close and a syzbot report. They do not show active exploitation, KEV listing, exploit availability, privilege requirements, or remote reachability. Treat this primarily as a potential kernel resource-exhaustion issue until vendor guidance says otherwise.
Researcher notes
Key uncertainty is reachability. The public record identifies the vulnerable close path and stable fixes, but not attacker prerequisites or impact rating. Focus validation on kernel lineage, backport status, and whether virtio vsock paths are exposed in the local virtualization model.
Mitigation direction
Update to a vendor-supported kernel containing the referenced stable fixes.
Check distribution advisories for backported fixes rather than relying only on version numbers.
Prioritize hosts where virtio/vsock is enabled or used by virtualization workloads.
Monitor kernel memory pressure until patched.
If patching is delayed, ask the vendor about supported exposure-reduction options.
Validation and detection
Inventory Linux kernel versions across servers, images, and virtualized workloads.
Confirm whether virtio/vsock support is enabled or loaded on affected systems.
Verify vendor packages include the relevant stable kernel fix or backport.
Review change management records for kernels based on affected 5.x releases.
Track unresolved systems separately where kernel provenance is unclear.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2021-47024 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.