Skip to main content
← All vulnerabilities
CVE-2021-47024

vsock/virtio: free queued packets when closing socket

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.10, 4.15, 4.20, 5.1, 5.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 4.9.179 · fixed in 4.10; From 4.14.122 · fixed in 4.15; From 4.19.46 · fixed in 4.20; From 5.0.19 · fixed in 5.1; From 5.1.5 · fixed in 5.2

  • Linux Linux

    5.2

References 4

git.kernel.org