{"id":"CVE-2026-143155","state":"PUBLISHED","title":"vsock/virtio: clear vqs[] to avoid a UAF on a failed PM restore","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock/virtio: clear vqs[] to avoid a UAF on a failed PM restore\n\nvirtio_vsock_vqs_del() frees the virtqueues but leaves vsock->vqs[]\npointing at them. If virtio_vsock_restore() then fails, the driver\nstays bound with a dangling vqs[], and the next freeze or unbind\npasses a freed virtqueue to virtqueue_detach_unused_buf():\n\n  BUG: KASAN: slab-use-after-free in virtqueue_detach_unused_buf\n   virtio_vsock_vqs_del (net/vmw_vsock/virtio_transport.c:785)\n   virtio_vsock_remove\n  Freed by task ...:\n   vp_del_vqs\n   virtio_vsock_freeze\n\nClear vqs[] after del_vqs() and when virtio_find_vqs() fails. Return\nearly from virtio_vsock_vqs_del() when vqs[] is empty: the detach\nloops would pass NULL to virtqueue_detach_unused_buf(), and a second\ndel_vqs() would free virtio-mmio's IRQ again, which only WARNs in\nfree_irq() (\"Trying to free already-free IRQ\").\n\nFound with the help of Anthropic's Claude and reproduced on virtio-pci\nand virtio-mmio by failing the restore with failslab, without other\nkernel changes; the virtio-mmio WARN was found by the netdev Sashiko\nreview and reproduced with v1 of this patch. With this patch neither\nreport appears on virtio-pci or virtio-mmio guests, and the vsock\nvmtest.sh single-VM tests pass. A find_vqs() failure after some\nvirtqueues were set up was not exercised.","publishedAt":"2026-12-03T09:19:56.617Z","updatedAt":"2026-12-03T09:19:56.617Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bd50c5dc182b0a52599f87b429f9a5a9cbfc9b1c","status":"affected","lessThan":"d2d266c25e302678417d87e06d4dccb9b7694d68","versionType":"git"},{"version":"bd50c5dc182b0a52599f87b429f9a5a9cbfc9b1c","status":"affected","lessThan":"4e37ef5254588f0263e980da944da106c178a969","versionType":"git"},{"version":"bd50c5dc182b0a52599f87b429f9a5a9cbfc9b1c","status":"affected","lessThan":"6c0f02fb47cc5c6471d99623f625e3fa146b07ad","versionType":"git"},{"version":"bd50c5dc182b0a52599f87b429f9a5a9cbfc9b1c","status":"affected","lessThan":"2a24ba1694f14299fbde3fa107e5d56629f2f8b6","versionType":"git"},{"version":"762c251c7f5c4ee5bef71460c6e822ed293fd69f","status":"affected","versionType":"git"},{"version":"5.15.138","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/vmw_vsock/virtio_transport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","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.c"]}],"references":["https://git.kernel.org/stable/c/d2d266c25e302678417d87e06d4dccb9b7694d68","https://git.kernel.org/stable/c/4e37ef5254588f0263e980da944da106c178a969","https://git.kernel.org/stable/c/6c0f02fb47cc5c6471d99623f625e3fa146b07ad","https://git.kernel.org/stable/c/2a24ba1694f14299fbde3fa107e5d56629f2f8b6"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143155.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143155","state":"PUBLISHED","datePublished":"2026-12-03T09:19:56.617Z","dateUpdated":"2026-12-03T09:19:56.617Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.355Z"},"containers":{"cna":{"title":"vsock/virtio: clear vqs[] to avoid a UAF on a failed PM restore","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock/virtio: clear vqs[] to avoid a UAF on a failed PM restore\n\nvirtio_vsock_vqs_del() frees the virtqueues but leaves vsock->vqs[]\npointing at them. If virtio_vsock_restore() then fails, the driver\nstays bound with a dangling vqs[], and the next freeze or unbind\npasses a freed virtqueue to virtqueue_detach_unused_buf():\n\n  BUG: KASAN: slab-use-after-free in virtqueue_detach_unused_buf\n   virtio_vsock_vqs_del (net/vmw_vsock/virtio_transport.c:785)\n   virtio_vsock_remove\n  Freed by task ...:\n   vp_del_vqs\n   virtio_vsock_freeze\n\nClear vqs[] after del_vqs() and when virtio_find_vqs() fails. Return\nearly from virtio_vsock_vqs_del() when vqs[] is empty: the detach\nloops would pass NULL to virtqueue_detach_unused_buf(), and a second\ndel_vqs() would free virtio-mmio's IRQ again, which only WARNs in\nfree_irq() (\"Trying to free already-free IRQ\").\n\nFound with the help of Anthropic's Claude and reproduced on virtio-pci\nand virtio-mmio by failing the restore with failslab, without other\nkernel changes; the virtio-mmio WARN was found by the netdev Sashiko\nreview and reproduced with v1 of this patch. With this patch neither\nreport appears on virtio-pci or virtio-mmio guests, and the vsock\nvmtest.sh single-VM tests pass. A find_vqs() failure after some\nvirtqueues were set up was not exercised."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bd50c5dc182b0a52599f87b429f9a5a9cbfc9b1c","status":"affected","lessThan":"d2d266c25e302678417d87e06d4dccb9b7694d68","versionType":"git"},{"version":"bd50c5dc182b0a52599f87b429f9a5a9cbfc9b1c","status":"affected","lessThan":"4e37ef5254588f0263e980da944da106c178a969","versionType":"git"},{"version":"bd50c5dc182b0a52599f87b429f9a5a9cbfc9b1c","status":"affected","lessThan":"6c0f02fb47cc5c6471d99623f625e3fa146b07ad","versionType":"git"},{"version":"bd50c5dc182b0a52599f87b429f9a5a9cbfc9b1c","status":"affected","lessThan":"2a24ba1694f14299fbde3fa107e5d56629f2f8b6","versionType":"git"},{"version":"762c251c7f5c4ee5bef71460c6e822ed293fd69f","status":"affected","versionType":"git"},{"version":"5.15.138","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/vmw_vsock/virtio_transport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","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.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d2d266c25e302678417d87e06d4dccb9b7694d68"},{"url":"https://git.kernel.org/stable/c/4e37ef5254588f0263e980da944da106c178a969"},{"url":"https://git.kernel.org/stable/c/6c0f02fb47cc5c6471d99623f625e3fa146b07ad"},{"url":"https://git.kernel.org/stable/c/2a24ba1694f14299fbde3fa107e5d56629f2f8b6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:56.617Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.138"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}