CVE-2026-97995: virtio_console: do not free control-out buffers on remove

Published Sep 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

virtioconsole: do not free control-out buffers on remove

sendcontrolmsg() publishes &portdev->cpkt as the control-out virtqueue cookie. removevqs() walks every virtqueue and passes leftover cookies to freebuf(), which treats them as struct portbuffer and reads sgpages.

If a control message is still on covq when the device is unbound, freebuf() reads past the portsdevice object.

KASAN reported slab-out-of-bounds in freebuf():

freebuf removevqs virtconsremove unbindstore

The object was the portsdevice allocated in virtconsprobe().

Drain covq without freeing. The packet lives in portdev and is released with it.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    When unbinding or removing a virtio_console device, drain c_ovq without freeing the control-out buffers.

Event History

Sep 25, 2026
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
Description

Frequently Asked Questions

1

When can this issue be triggered?

It can be triggered when a virtio-console device is unbound while a control message remains pending on the control-out virtqueue (c_ovq). During virtqueue removal, the leftover control-message cookie is incorrectly handled as a port buffer.

2

What evidence indicates that a system may have encountered this bug?

KASAN can report a slab-out-of-bounds read in free_buf(), with a call path involving remove_vqs(), virtcons_remove(), and unbind_store. The out-of-bounds access involves a ports_device object allocated by virtcons_probe().

3

What is the relevant mitigation if the corrected kernel is not yet available?

Avoid unbinding virtio-console devices while control messages may still be pending on c_ovq. The resolved behavior drains c_ovq without passing its control-out packet to free_buf().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203