critical · CVSS v3 7.8
CVE-2026-97995
CVE-2026-97995 is a Linux kernel memory-safety flaw in the virtio_console driver. During device removal, leftover control-out virtqueue cook
Overview
CVE-2026-97995 is a Linux kernel memory-safety flaw in the virtio_console driver. During device removal, leftover control-out virtqueue cookies can be misinterpreted as port buffers, causing an out-of-bounds read of the ports_device object. It matters because virtio-console is used in virtualized Linux environments and the bug can be triggered during device unbind.
Description
In the Linux kernel, the following vulnerability has been resolved: virtio_console: do not free control-out buffers on remove __send_control_msg() publishes &portdev->cpkt as the control-out virtqueue cookie. remove_vqs() walks every virtqueue and passes leftover cookies to free_buf(), which treats them as struct port_buffer and reads sgpages. If a control message is still on c_ovq when the device is unbound, free_buf() reads past the ports_device object. KASAN reported slab-out-of-bounds in free_buf(): free_buf remove_vqs virtcons_remove unbind_store The object was the ports_device allocated in virtcons_probe(). Drain c_ovq without freeing. The packet lives in portdev and is released with it.
Impact
Confidentiality and availability are the primary concerns: an out-of-bounds read may expose kernel memory or cause a crash during virtio-console removal. Integrity impact is not directly established but could be relevant if the read is chained with other kernel bugs. It affects Linux systems that use virtio-console, especially virtual machines or containers where the device can be unbound. Local or guest-adjacent actors with permission to trigger device removal are the most relevant threat model.
Remediation
Apply the kernel fix that drains the control-out virtqueue without freeing the control packet on remove, or update to a patched Linux kernel release. If patching is delayed, restrict local access to virtio-console device management, avoid unbinding virtio-console while control traffic may be pending, and disable unused virtio-console devices. Enable kernel hardening, KASAN/panic monitoring, and alert on virtio_console removal errors.
Risk context
Treat as high priority for affected virtualized Linux deployments because the flaw is critical and can be triggered during normal device removal. CVSS v3 is 7.8 and no EPSS score is provided, so urgency should be driven by exposure of virtio-console and ability to unbind devices.
Affected products
- Linux kernel
- virtio_console driver
- Linux virtual guests using virtio-console
Scores
- Severity
- critical
- CVSS v2
- 9.7
- CVSS v3
- 7.8
- CVSS v4
- —
- EPSS
- —