{"id":"CVE-2026-97995","aliases":["CVE-2026-97995"],"related":[],"kind":"vulnerability","state":"published","title":"virtio_console: do not free control-out buffers on remove","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-25T10:23:26.307Z","modified":"2026-10-19T10:17:50.947Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b","fixed":"b1f39c2a676698cc64c8e105e08b25111a112ec6","status":"affected"},{"type":"git","introduced":"a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b","fixed":"e03522a990cd2e0f1a736eaa349a9df9ab8541c3","status":"affected"},{"type":"git","introduced":"a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b","fixed":"8f6cfc3eca79b8e108d0823756101e2f4f9d811f","status":"affected"},{"type":"git","introduced":"a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b","fixed":"2e40c69b9c3448b9c6609cd02013da593b2e123b","status":"affected"},{"type":"git","introduced":"a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b","fixed":"177ee901aa2bab02e7f1f8edbb814fd5e386ed62","status":"affected"},{"type":"git","introduced":"a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b","fixed":"a80c33488e0bbe642ed803b13a4ac8078a70b507","status":"affected"},{"type":"git","introduced":"a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b","fixed":"f620c40ea6862feed84deb105568b21ec53a7830","status":"affected"},{"type":"git","introduced":"a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b","fixed":"894f98e73983f37354214a89a3a7fd35bf9e3072","status":"affected"},{"type":"git","version":"f92b16b815efe8207090a9b5a767618fd89542ca","status":"affected"},{"type":"git","version":"d2bbfac82b7942afc5d8e564d7087835280df495","status":"affected"},{"type":"git","version":"a88e13d9a092fbb772d380944b44eb549ef131fe","status":"affected"},{"type":"git","version":"dd807a784fd36f4136516d5858efb6473dda422c","status":"affected"},{"type":"git","version":"47cb14192bcbba3f15b1c3561e05e084e56fdef6","status":"affected"},{"type":"git","version":"6b1c41a0f7183702abb7a104c6c7e196ad69a6b3","status":"affected"},{"type":"git","version":"9037306163a6ba5587e4b5ca511ac7be4fb7295b","status":"affected"},{"type":"semver","introduced":"3.16.60","fixed":"3.17","status":"affected"},{"type":"semver","introduced":"3.18.108","fixed":"3.19","status":"affected"},{"type":"semver","introduced":"4.1.52","fixed":"4.2","status":"affected"},{"type":"semver","introduced":"4.4.131","fixed":"4.5","status":"affected"},{"type":"semver","introduced":"4.9.98","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.39","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.16.7","fixed":"4.17","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b1f39c2a676698cc64c8e105e08b25111a112ec6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e03522a990cd2e0f1a736eaa349a9df9ab8541c3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f6cfc3eca79b8e108d0823756101e2f4f9d811f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e40c69b9c3448b9c6609cd02013da593b2e123b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/177ee901aa2bab02e7f1f8edbb814fd5e386ed62","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a80c33488e0bbe642ed803b13a4ac8078a70b507","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f620c40ea6862feed84deb105568b21ec53a7830","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/894f98e73983f37354214a89a3a7fd35bf9e3072","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97995","url":"https://www.cve.org/CVERecord?id=CVE-2026-97995","licence":"CVE Terms of Use","modified":"2026-10-19T09:12:02.162Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97995","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97995","licence":"Public domain","modified":"2026-10-19T10:17:50.947Z"}],"updatedAt":"2026-11-25T22:59:41.016Z","epss":{"score":0.00177,"percentile":0.07547,"date":"2026-12-01T12:00:22.000Z"}}