# CVE-2026-97995: virtio\_console: do not free control-out buffers on remove

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-09-25T10:23:26.307Z
- **Modified:** 2026-10-19T10:17:50.947Z

## Who should check

- Anyone running Linux \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< b1f39c2a676698cc64c8e105e08b25111a112ec6; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< e03522a990cd2e0f1a736eaa349a9df9ab8541c3; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 8f6cfc3eca79b8e108d0823756101e2f4f9d811f; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 2e40c69b9c3448b9c6609cd02013da593b2e123b; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 177ee901aa2bab02e7f1f8edbb814fd5e386ed62; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< a80c33488e0bbe642ed803b13a4ac8078a70b507; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< f620c40ea6862feed84deb105568b21ec53a7830; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 894f98e73983f37354214a89a3a7fd35bf9e3072; f92b16b815efe8207090a9b5a767618fd89542ca; d2bbfac82b7942afc5d8e564d7087835280df495; …
- Anyone running Linux 4.17

## 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.

## Affected and fixed versions

- Linux: \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< b1f39c2a676698cc64c8e105e08b25111a112ec6; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< e03522a990cd2e0f1a736eaa349a9df9ab8541c3; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 8f6cfc3eca79b8e108d0823756101e2f4f9d811f; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 2e40c69b9c3448b9c6609cd02013da593b2e123b; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 177ee901aa2bab02e7f1f8edbb814fd5e386ed62; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< a80c33488e0bbe642ed803b13a4ac8078a70b507; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< f620c40ea6862feed84deb105568b21ec53a7830; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 894f98e73983f37354214a89a3a7fd35bf9e3072; f92b16b815efe8207090a9b5a767618fd89542ca; d2bbfac82b7942afc5d8e564d7087835280df495; … (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-97995. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97995.md
Affected: Linux >= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, < b1f39c2a676698cc64c8e105e08b25111a112ec6; >= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, < e03522a990cd2e0f1a736eaa349a9df9ab8541c3; >= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, < 8f6cfc3eca79b8e108d0823756101e2f4f9d811f; >= a7a69ec0d8e4a58be7db88d…
Fixed in: Linux 8f6cfc3eca79b8e108d0823756101e2f4f9d811f, Linux 2e40c69b9c3448b9c6609cd02013da593b2e123b, Linux 177ee901aa2bab02e7f1f8edbb814fd5e386ed62, Linux 894f98e73983f37354214a89a3a7fd35bf9e3072

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-97995 being exploited?

There is no confirmed exploitation: CVE-2026-97995 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-97995?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-97995?

Linux \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< b1f39c2a676698cc64c8e105e08b25111a112ec6; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< e03522a990cd2e0f1a736eaa349a9df9ab8541c3; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 8f6cfc3eca79b8e108d0823756101e2f4f9d811f; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 2e40c69b9c3448b9c6609cd02013da593b2e123b; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 177ee901aa2bab02e7f1f8edbb814fd5e386ed62; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< a80c33488e0bbe642ed803b13a4ac8078a70b507; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< f620c40ea6862feed84deb105568b21ec53a7830; \>= a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b, \< 894f98e73983f37354214a89a3a7fd35bf9e3072; f92b16b815efe8207090a9b5a767618fd89542ca; d2bbfac82b7942afc5d8e564d7087835280df495; …; Linux 4.17.

### Is there a fix for CVE-2026-97995?

Yes. Fixed in Linux 8f6cfc3eca79b8e108d0823756101e2f4f9d811f, Linux 2e40c69b9c3448b9c6609cd02013da593b2e123b, Linux 177ee901aa2bab02e7f1f8edbb814fd5e386ed62, Linux 894f98e73983f37354214a89a3a7fd35bf9e3072. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-97995?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/b1f39c2a676698cc64c8e105e08b25111a112ec6>
- other: <https://git.kernel.org/stable/c/e03522a990cd2e0f1a736eaa349a9df9ab8541c3>
- other: <https://git.kernel.org/stable/c/8f6cfc3eca79b8e108d0823756101e2f4f9d811f>
- other: <https://git.kernel.org/stable/c/2e40c69b9c3448b9c6609cd02013da593b2e123b>
- other: <https://git.kernel.org/stable/c/177ee901aa2bab02e7f1f8edbb814fd5e386ed62>
- other: <https://git.kernel.org/stable/c/a80c33488e0bbe642ed803b13a4ac8078a70b507>
- other: <https://git.kernel.org/stable/c/f620c40ea6862feed84deb105568b21ec53a7830>
- other: <https://git.kernel.org/stable/c/894f98e73983f37354214a89a3a7fd35bf9e3072>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-97995>

HTML: <https://flawdb.com/CVE-2026-97995> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-97995>
