{"id":"CVE-2026-97995","published":"2026-09-25T10:23:26Z","modified":"2026-10-19T09:12:02Z","title":"virtio_console: do not free control-out buffers on remove","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio_console: do not free control-out buffers on remove\n\n__send_control_msg() publishes &portdev->cpkt as the control-out\nvirtqueue cookie. remove_vqs() walks every virtqueue and passes leftover\ncookies to free_buf(), which treats them as struct port_buffer and\nreads sgpages.\n\nIf a control message is still on c_ovq when the device is unbound,\nfree_buf() reads past the ports_device object.\n\nKASAN reported slab-out-of-bounds in free_buf():\n\n\tfree_buf\n\tremove_vqs\n\tvirtcons_remove\n\tunbind_store\n\nThe object was the ports_device allocated in virtcons_probe().\n\nDrain c_ovq without freeing. The packet lives in portdev and is released\nwith it.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00177,"percentile":0.07145,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/b1f39c2a676698cc64c8e105e08b25111a112ec6","tags":[]},{"url":"https://git.kernel.org/stable/c/e03522a990cd2e0f1a736eaa349a9df9ab8541c3","tags":[]},{"url":"https://git.kernel.org/stable/c/8f6cfc3eca79b8e108d0823756101e2f4f9d811f","tags":[]},{"url":"https://git.kernel.org/stable/c/2e40c69b9c3448b9c6609cd02013da593b2e123b","tags":[]},{"url":"https://git.kernel.org/stable/c/177ee901aa2bab02e7f1f8edbb814fd5e386ed62","tags":[]},{"url":"https://git.kernel.org/stable/c/a80c33488e0bbe642ed803b13a4ac8078a70b507","tags":[]},{"url":"https://git.kernel.org/stable/c/f620c40ea6862feed84deb105568b21ec53a7830","tags":[]},{"url":"https://git.kernel.org/stable/c/894f98e73983f37354214a89a3a7fd35bf9e3072","tags":[]}],"priority":{"score":1.4,"factors":[{"name":"EPSS percentile","points":1.43}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, < b1f39c2a676698cc64c8e105e08b25111a112ec6",">= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, < e03522a990cd2e0f1a736eaa349a9df9ab8541c3",">= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, < 8f6cfc3eca79b8e108d0823756101e2f4f9d811f",">= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, < 2e40c69b9c3448b9c6609cd02013da593b2e123b",">= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, < 177ee901aa2bab02e7f1f8edbb814fd5e386ed62",">= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, < a80c33488e0bbe642ed803b13a4ac8078a70b507",">= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, < f620c40ea6862feed84deb105568b21ec53a7830",">= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, < 894f98e73983f37354214a89a3a7fd35bf9e3072","f92b16b815efe8207090a9b5a767618fd89542ca","d2bbfac82b7942afc5d8e564d7087835280df495"]},{"vendor":"Linux","product":"Linux","versions":["4.17"]}],"euvd":{"id":"EUVD-2026-86649","exploited":false,"provenance":"source"}}