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 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
Remediation
Event History
Frequently Asked Questions
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.
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.
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.
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.
How was CVE-2021-47024 discovered?
CVE-2021-47024 was reported by syzbot, a tool that finds bugs in the kernel through fuzz testing.