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

Published Feb 28, 2024
·
Updated

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 virtiotransportremovesock() to drain the RX queue before removing the socket from the afvsock lists calling vsockremovesock().

[1] https://syzkaller.appspot.com/bug?extid=24452624fc4c571eedd9

Affected Software

3 affected components
Linux Linux kernel>=5.2<5.10.37
Linux Linux kernel>=5.11<5.11.21
Linux Linux kernel>=5.12<5.12.4

Event History

Feb 28, 2024
CVE Published
via MITRE·08:13 AM
Data Sourced
via MITRE·08:13 AM
Description
Data Sourced
via NVD·09:15 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2021-47024?

CVE-2021-47024 has a moderate severity due to the memory leak issue when closing a socket in the Linux kernel.

2

How do I fix CVE-2021-47024?

To fix CVE-2021-47024, users should update to a patched version of the Linux kernel above 5.10.37, 5.11.21, or 5.12.4.

3

Which Linux kernel versions are affected by CVE-2021-47024?

CVE-2021-47024 affects Linux kernel versions from 5.2 up to 5.10.37, versions 5.11 up to 5.11.21, and versions 5.12 up to 5.12.4.

4

What impact does CVE-2021-47024 have on systems?

CVE-2021-47024 can lead to resource exhaustion due to the memory leak, potentially affecting system performance and stability.

5

How was CVE-2021-47024 discovered?

CVE-2021-47024 was reported by syzbot, a tool that finds bugs in the kernel through fuzz testing.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203