CVE-2026-97995

virtio_console: do not free control-out buffers on remove

No CVSS score yet EPSS 0.22%

Published 25 Sep 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2026-97995

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-97995 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.26% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, before b1f39c2a676698cc64c8e105e08b25111a112ec6
affected from a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, before e03522a990cd2e0f1a736eaa349a9df9ab8541c3
affected from a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, before 8f6cfc3eca79b8e108d0823756101e2f4f9d811f
affected from a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, before 2e40c69b9c3448b9c6609cd02013da593b2e123b
affected from a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, before 177ee901aa2bab02e7f1f8edbb814fd5e386ed62
affected from a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, before a80c33488e0bbe642ed803b13a4ac8078a70b507
affected from a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, before f620c40ea6862feed84deb105568b21ec53a7830
affected from a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, before 894f98e73983f37354214a89a3a7fd35bf9e3072
affected f92b16b815efe8207090a9b5a767618fd89542ca
affected d2bbfac82b7942afc5d8e564d7087835280df495
affected a88e13d9a092fbb772d380944b44eb549ef131fe
affected dd807a784fd36f4136516d5858efb6473dda422c
affected 47cb14192bcbba3f15b1c3561e05e084e56fdef6
affected 6b1c41a0f7183702abb7a104c6c7e196ad69a6b3
affected 9037306163a6ba5587e4b5ca511ac7be4fb7295b
affected from 3.16.60, before 3.17
affected from 3.18.108, before 3.19
affected from 4.1.52, before 4.2
affected from 4.4.131, before 4.5
affected from 4.9.98, before 4.10
affected from 4.14.39, before 4.15
affected from 4.16.7, before 4.17
Other versions: unaffected
Linux
affected 4.17
unaffected before 4.17
unaffected from 5.10.271 up to and including 5.10.*
unaffected from 5.15.222 up to and including 5.15.*
unaffected from 6.1.189 up to and including 6.1.*
unaffected from 6.6.158 up to and including 6.6.*
unaffected from 6.12.111 up to and including 6.12.*
unaffected from 6.18.53 up to and including 6.18.*
unaffected from 7.2.7 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-97995 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-97995

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-97995
trivy image --scanners vuln IMAGE | grep CVE-2026-97995

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-97995 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.