# CVE-2021-47024: vsock/virtio: free queued packets when closing socket

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-02-28T08:13:36.489Z
- **Modified:** 2026-06-17T04:16:13.530Z

## Who should check

- Anyone running Linux \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< b605673b523fe33abeafb2136759bcbc9c1e6ebf; \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< 27691665145e74a45034a9dccf1150cf1894763a; \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< 37c38674ef2f8d7e8629e5d433c37d6c1273d16b; \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< 8432b8114957235f42e070a16118a7f750de9d39; 4ea082cd3c400cd5bb36a7beb7e441bf3e29350d; 4e539fa2dec4db3405e47002f2878aa4a99eb68b; 4af8a327aeba102aaa9b78f3451f725bc590b237; 51adb8ebe8c1d80528fc2ea863cfea9d32d2c52b; 7d29c9ad0ed525c1b10e29cfca4fb1eece1e93fb; \>= 4.9.179, \< 4.10; …
- Anyone running Linux 5.2

## 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 and fixed versions

- Linux: \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< b605673b523fe33abeafb2136759bcbc9c1e6ebf; \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< 27691665145e74a45034a9dccf1150cf1894763a; \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< 37c38674ef2f8d7e8629e5d433c37d6c1273d16b; \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< 8432b8114957235f42e070a16118a7f750de9d39; 4ea082cd3c400cd5bb36a7beb7e441bf3e29350d; 4e539fa2dec4db3405e47002f2878aa4a99eb68b; 4af8a327aeba102aaa9b78f3451f725bc590b237; 51adb8ebe8c1d80528fc2ea863cfea9d32d2c52b; 7d29c9ad0ed525c1b10e29cfca4fb1eece1e93fb; \>= 4.9.179, \< 4.10; … (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47024. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47024.md
Affected: Linux >= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, < b605673b523fe33abeafb2136759bcbc9c1e6ebf; >= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, < 27691665145e74a45034a9dccf1150cf1894763a; >= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, < 37c38674ef2f8d7e8629e5d433c37d6c1273d16b; >= ac03046ece2b158ebd204df…
Fixed in: Linux 27691665145e74a45034a9dccf1150cf1894763a, Linux 37c38674ef2f8d7e8629e5d433c37d6c1273d16b, Linux 8432b8114957235f42e070a16118a7f750de9d39, Linux 4.10

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47024 being exploited?

There is no confirmed exploitation: CVE-2021-47024 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47024?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47024?

Linux \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< b605673b523fe33abeafb2136759bcbc9c1e6ebf; \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< 27691665145e74a45034a9dccf1150cf1894763a; \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< 37c38674ef2f8d7e8629e5d433c37d6c1273d16b; \>= ac03046ece2b158ebd204dfc4896fd9f39f0e6c8, \< 8432b8114957235f42e070a16118a7f750de9d39; 4ea082cd3c400cd5bb36a7beb7e441bf3e29350d; 4e539fa2dec4db3405e47002f2878aa4a99eb68b; 4af8a327aeba102aaa9b78f3451f725bc590b237; 51adb8ebe8c1d80528fc2ea863cfea9d32d2c52b; 7d29c9ad0ed525c1b10e29cfca4fb1eece1e93fb; \>= 4.9.179, \< 4.10; …; Linux 5.2.

### Is there a fix for CVE-2021-47024?

Yes. Fixed in Linux 27691665145e74a45034a9dccf1150cf1894763a, Linux 37c38674ef2f8d7e8629e5d433c37d6c1273d16b, Linux 8432b8114957235f42e070a16118a7f750de9d39, Linux 4.10. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47024?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b605673b523fe33abeafb2136759bcbc9c1e6ebf>
- patch: <https://git.kernel.org/stable/c/27691665145e74a45034a9dccf1150cf1894763a>
- patch: <https://git.kernel.org/stable/c/37c38674ef2f8d7e8629e5d433c37d6c1273d16b>
- patch: <https://git.kernel.org/stable/c/8432b8114957235f42e070a16118a7f750de9d39>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47024>

HTML: <https://flawdb.com/CVE-2021-47024> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47024>
