{"id":"CVE-2026-143155","summary":"vsock/virtio: clear vqs[] to avoid a UAF on a failed PM restore","details":"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-\u003evqs[]\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.","modified":"2026-12-03T11:01:26.323534540Z","published":"2026-12-03T09:19:56.617Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143155.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2a24ba1694f14299fbde3fa107e5d56629f2f8b6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4e37ef5254588f0263e980da944da106c178a969"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6c0f02fb47cc5c6471d99623f625e3fa146b07ad"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d2d266c25e302678417d87e06d4dccb9b7694d68"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143155.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143155"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bd50c5dc182b0a52599f87b429f9a5a9cbfc9b1c"},{"fixed":"d2d266c25e302678417d87e06d4dccb9b7694d68"},{"fixed":"4e37ef5254588f0263e980da944da106c178a969"},{"fixed":"6c0f02fb47cc5c6471d99623f625e3fa146b07ad"},{"fixed":"2a24ba1694f14299fbde3fa107e5d56629f2f8b6"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"762c251c7f5c4ee5bef71460c6e822ed293fd69f"}]}],"versions":["v5.15.227","v5.15.226","v5.15.225","v5.15.224","v5.15.223","v5.15.222","v5.15.221","v5.15.220","v5.15.219","v5.15.218","v5.15.217","v5.15.216","v5.15.215","v5.15.214","v5.15.213","v5.15.212","v5.15.211","v5.15.210","v5.15.209","v5.15.208","v5.15.207","v5.15.206","v5.15.205","v5.15.204","v5.15.203","v5.15.202","v5.15.201","v5.15.200","v5.15.199","v5.15.198","v5.15.197","v5.15.196","v5.15.195","v5.15.194","v5.15.193","v5.15.192","v5.15.191","v5.15.190","v5.15.189","v5.15.188","v5.15.187","v5.15.186","v5.15.185","v5.15.184","v5.15.183","v5.15.182","v5.15.181","v5.15.180","v5.15.179","v5.15.178","v5.15.177","v5.15.176","v5.15.175","v5.15.174","v5.15.173","v5.15.172","v5.15.171","v5.15.170","v5.15.169","v5.15.168","v5.15.167","v5.15.166","v5.15.165","v5.15.164","v5.15.163","v5.15.162","v5.15.161","v5.15.160","v5.15.159","v5.15.158","v5.15.157","v5.15.156","v5.15.155","v5.15.154","v5.15.153","v5.15.152","v5.15.151","v5.15.150","v5.15.149","v5.15.148","v5.15.147","v5.15.146","v5.15.145","v5.15.144","v5.15.143","v5.15.142","v5.15.141","v5.15.140","v5.15.139","v5.15.138"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143155.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.138"},{"fixed":"5.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143155.json"}}],"schema_version":"1.9.2"}