CVE-2021-47024

vsock/virtio: free queued packets when closing socket

MEDIUM
5.5
CVSS Score
Published: February 28, 2024 at 08:13 AM UTC
Updated: June 17, 2026 at 04:16 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 4.14.122v ≥ 4.19.46v ≥ 4.9.179v ≥ 5.0.19v ≥ 5.1.54.14.122 ≤ v < 4.154.19.46 ≤ v < 4.204.9.179 ≤ v < 4.105.0.19 ≤ v < 5.15.1.5 ≤ v < 5.25.11 ≤ v < 5.11.215.12 ≤ v < 5.12.45.2 ≤ v < 5.10.375.2 ≤ v < 5.11.215.2 ≤ v < 5.12.45.2 ≤ v < 5.134.14.1224.19.464.9.1794af8a327aeba102aaa9b78f3451f725bc590b2374e539fa2dec4db3405e47002f2878aa4a99eb68b4ea082cd3c400cd5bb36a7beb7e441bf3e29350d5.0.195.1.55.251adb8ebe8c1d80528fc2ea863cfea9d32d2c52b7d29c9ad0ed525c1b10e29cfca4fb1eece1e93fbac03046ece2b158ebd204dfc4896fd9f39f0e6c8
Vendor states this is fixed in 27691665145e74a45034a9dccf1150cf1894763a (fixed)
Vendor states this is fixed in 37c38674ef2f8d7e8629e5d433c37d6c1273d16b (fixed)
Vendor states this is fixed in 8432b8114957235f42e070a16118a7f750de9d39 (fixed)
Vendor states this is fixed in b605673b523fe33abeafb2136759bcbc9c1e6ebf (fixed)
Affected range stops below 4.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.15, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.20, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.1, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.10.37 (unaffected)
Vendor states this is fixed in 5.11.21 (unaffected)
Vendor states this is fixed in 5.12.4 (unaffected)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.2 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/27691665145e74a45034a9dccf1150cf1894763a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/37c38674ef2f8d7e8629e5d433c37d6c1273d16b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8432b8114957235f42e070a16118a7f750de9d39
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b605673b523fe33abeafb2136759bcbc9c1e6ebf

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card