{"id":"CVE-2021-47024","state":"PUBLISHED","title":"vsock/virtio: free queued packets when closing socket","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock/virtio: free queued packets when closing socket\n\nAs reported by syzbot [1], there is a memory leak while closing the\nsocket. We partially solved this issue with commit ac03046ece2b\n(\"vsock/virtio: free packets during the socket release\"), but we\nforgot to drain the RX queue when the socket is definitely closed by\nthe scheduled work.\n\nTo avoid future issues, let's use the new virtio_transport_remove_sock()\nto drain the RX queue before removing the socket from the af_vsock lists\ncalling vsock_remove_sock().\n\n[1] https://syzkaller.appspot.com/bug?extid=24452624fc4c571eedd9","publishedAt":"2024-02-28T08:13:36.489Z","updatedAt":"2026-05-23T15:19:08.243Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","status":"affected","lessThan":"b605673b523fe33abeafb2136759bcbc9c1e6ebf","versionType":"git"},{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","status":"affected","lessThan":"27691665145e74a45034a9dccf1150cf1894763a","versionType":"git"},{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","status":"affected","lessThan":"37c38674ef2f8d7e8629e5d433c37d6c1273d16b","versionType":"git"},{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","status":"affected","lessThan":"8432b8114957235f42e070a16118a7f750de9d39","versionType":"git"},{"version":"4ea082cd3c400cd5bb36a7beb7e441bf3e29350d","status":"affected","versionType":"git"},{"version":"4e539fa2dec4db3405e47002f2878aa4a99eb68b","status":"affected","versionType":"git"},{"version":"4af8a327aeba102aaa9b78f3451f725bc590b237","status":"affected","versionType":"git"},{"version":"51adb8ebe8c1d80528fc2ea863cfea9d32d2c52b","status":"affected","versionType":"git"},{"version":"7d29c9ad0ed525c1b10e29cfca4fb1eece1e93fb","status":"affected","versionType":"git"},{"version":"4.9.179","status":"affected","lessThan":"4.10","versionType":"semver"},{"version":"4.14.122","status":"affected","lessThan":"4.15","versionType":"semver"},{"version":"4.19.46","status":"affected","lessThan":"4.20","versionType":"semver"},{"version":"5.0.19","status":"affected","lessThan":"5.1","versionType":"semver"},{"version":"5.1.5","status":"affected","lessThan":"5.2","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/vmw_vsock/virtio_transport_common.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"5.10.37","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.11.21","status":"unaffected","lessThanOrEqual":"5.11.*","versionType":"semver"},{"version":"5.12.4","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/vmw_vsock/virtio_transport_common.c"]}],"references":["https://git.kernel.org/stable/c/b605673b523fe33abeafb2136759bcbc9c1e6ebf","https://git.kernel.org/stable/c/27691665145e74a45034a9dccf1150cf1894763a","https://git.kernel.org/stable/c/37c38674ef2f8d7e8629e5d433c37d6c1273d16b","https://git.kernel.org/stable/c/8432b8114957235f42e070a16118a7f750de9d39"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:19.404Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/47xxx/CVE-2021-47024.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-47024","state":"PUBLISHED","datePublished":"2024-02-28T08:13:36.489Z","dateUpdated":"2026-05-23T15:19:08.243Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-27T18:42:55.960Z"},"containers":{"cna":{"title":"vsock/virtio: free queued packets when closing socket","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock/virtio: free queued packets when closing socket\n\nAs reported by syzbot [1], there is a memory leak while closing the\nsocket. We partially solved this issue with commit ac03046ece2b\n(\"vsock/virtio: free packets during the socket release\"), but we\nforgot to drain the RX queue when the socket is definitely closed by\nthe scheduled work.\n\nTo avoid future issues, let's use the new virtio_transport_remove_sock()\nto drain the RX queue before removing the socket from the af_vsock lists\ncalling vsock_remove_sock().\n\n[1] https://syzkaller.appspot.com/bug?extid=24452624fc4c571eedd9"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","status":"affected","lessThan":"b605673b523fe33abeafb2136759bcbc9c1e6ebf","versionType":"git"},{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","status":"affected","lessThan":"27691665145e74a45034a9dccf1150cf1894763a","versionType":"git"},{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","status":"affected","lessThan":"37c38674ef2f8d7e8629e5d433c37d6c1273d16b","versionType":"git"},{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","status":"affected","lessThan":"8432b8114957235f42e070a16118a7f750de9d39","versionType":"git"},{"version":"4ea082cd3c400cd5bb36a7beb7e441bf3e29350d","status":"affected","versionType":"git"},{"version":"4e539fa2dec4db3405e47002f2878aa4a99eb68b","status":"affected","versionType":"git"},{"version":"4af8a327aeba102aaa9b78f3451f725bc590b237","status":"affected","versionType":"git"},{"version":"51adb8ebe8c1d80528fc2ea863cfea9d32d2c52b","status":"affected","versionType":"git"},{"version":"7d29c9ad0ed525c1b10e29cfca4fb1eece1e93fb","status":"affected","versionType":"git"},{"version":"4.9.179","status":"affected","lessThan":"4.10","versionType":"semver"},{"version":"4.14.122","status":"affected","lessThan":"4.15","versionType":"semver"},{"version":"4.19.46","status":"affected","lessThan":"4.20","versionType":"semver"},{"version":"5.0.19","status":"affected","lessThan":"5.1","versionType":"semver"},{"version":"5.1.5","status":"affected","lessThan":"5.2","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/vmw_vsock/virtio_transport_common.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"5.10.37","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.11.21","status":"unaffected","lessThanOrEqual":"5.11.*","versionType":"semver"},{"version":"5.12.4","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/vmw_vsock/virtio_transport_common.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b605673b523fe33abeafb2136759bcbc9c1e6ebf"},{"url":"https://git.kernel.org/stable/c/27691665145e74a45034a9dccf1150cf1894763a"},{"url":"https://git.kernel.org/stable/c/37c38674ef2f8d7e8629e5d433c37d6c1273d16b"},{"url":"https://git.kernel.org/stable/c/8432b8114957235f42e070a16118a7f750de9d39"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:19:08.243Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.10.37"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.11.21"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.12.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9.179"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14.122"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2021-47024","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-03-05T18:00:51.887353Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:13:23.950Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/b605673b523fe33abeafb2136759bcbc9c1e6ebf","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/27691665145e74a45034a9dccf1150cf1894763a","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/37c38674ef2f8d7e8629e5d433c37d6c1273d16b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/8432b8114957235f42e070a16118a7f750de9d39","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T05:24:39.600Z"}}]}}}