{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-47024","id":"CVE-2021-47024","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 schedu","descriptionLong":"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","published":"2024-02-28T08:13:36.489Z","updated":"2026-06-17T04:16:13.530Z","reserved":"2024-02-27T18:42:55.960Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","lessThan":"b605673b523fe33abeafb2136759bcbc9c1e6ebf","status":"affected","versionType":"git"},{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","lessThan":"27691665145e74a45034a9dccf1150cf1894763a","status":"affected","versionType":"git"},{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","lessThan":"37c38674ef2f8d7e8629e5d433c37d6c1273d16b","status":"affected","versionType":"git"},{"version":"ac03046ece2b158ebd204dfc4896fd9f39f0e6c8","lessThan":"8432b8114957235f42e070a16118a7f750de9d39","status":"affected","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","lessThan":"4.10","status":"affected","versionType":"semver"},{"version":"4.14.122","lessThan":"4.15","status":"affected","versionType":"semver"},{"version":"4.19.46","lessThan":"4.20","status":"affected","versionType":"semver"},{"version":"5.0.19","lessThan":"5.1","status":"affected","versionType":"semver"},{"version":"5.1.5","lessThan":"5.2","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","lessThan":"5.2","status":"unaffected","versionType":"semver"},{"version":"5.10.37","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.11.21","lessThanOrEqual":"5.11.*","status":"unaffected","versionType":"semver"},{"version":"5.12.4","lessThanOrEqual":"5.12.*","status":"unaffected","versionType":"semver"},{"version":"5.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/b605673b523fe33abeafb2136759bcbc9c1e6ebf","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/27691665145e74a45034a9dccf1150cf1894763a","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/37c38674ef2f8d7e8629e5d433c37d6c1273d16b","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/8432b8114957235f42e070a16118a7f750de9d39","tags":["x_transferred","Patch","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0025,"epssPercentile":0.16515,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-47024","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47024","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-47024","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-47024","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}