# CVE-2026-97997: virtio\_ring: fix stale descriptor flags after a failed packed add

> 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.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-25T10:23:27.493Z
- **Modified:** 2026-10-21T13:21:18.817Z

## Who should check

- Anyone running Linux \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< 5ad081761a1f0b0d95ab08b61a6008309fba95f9; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< cfe8128ceb78374b0f9cebb608bb48e3928d784a; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< 3e6400e3b8b858cdf0f8d70b20d8b55d703af368; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< d595358276b60e5df4d3930bc94033249b1d5adc; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< 75d276e5bb68778b2916f98a2bc30f142ebadc64
- Anyone running Linux 5.0

## Description

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

virtio\_ring: fix stale descriptor flags after a failed packed add

In a packed ring the AVAIL and USED bits sit in the descriptor itself,
so writing them makes that descriptor available. Those bit combinations
flip meaning on every round of the ring, tracked by a wrap counter, so
invalidating or validating a descriptor means inverting both bits.

Commit 1ce9e6055fa0 ("virtio\_ring: introduce packed ring support") has
virtqueue\_add\_packed() make every descriptor of a chain available as it
maps the chain, and write the head last. The device consumes the ring in
order and stops at a head that is not available yet, so it never reaches
the rest.

When vring\_map\_one\_sg() fails partway, unmap\_release unmaps the segments
and restores avail\_used\_flags, but the descriptors it wrote to in the
ring stay marked with AVAIL and USED bits. The head is now the only
entry that keeps the device from consuming these stale entries.

For example, the ring would look like this now.

  Z - pre-previous command
  A - previous command
  B - aborted command
  C - current command

  \[A1 DONE\] \[A2 DONE\] \<C1 EMPTY\> \[B2\] \[B3\] \[Z1 DONE\]

When the driver now attempts to issue the C command, the next add starts
at the same head as B. If C spans less descriptors than B, there is no
end marker because AVAIL and USED bits were still in place. And that
means the device will start interpreting these stale entries (B2/B3) as
another command entry, which then blocks the queue.

This effect typically happens in swiotlb configurations under memory
pressure, because vring\_map\_one\_sg() can then fail with larger I/O
requests which then leads to command abortions.

There are broadly 2 ways to avoid leaving those flags behind:

  1) Defer those flags too until the chain is complete.
  2) Rewrite those flags for the previous wrap counter.

Implement the second option in both packed add paths. The first option
traverses the chain a second time on every successful add. The second
option invalidates all added descriptors when any add fails.

With this patch applied, a packed virtqueue keeps completing requests
after a failed add.

## Affected and fixed versions

- Linux: \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< 5ad081761a1f0b0d95ab08b61a6008309fba95f9; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< cfe8128ceb78374b0f9cebb608bb48e3928d784a; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< 3e6400e3b8b858cdf0f8d70b20d8b55d703af368; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< d595358276b60e5df4d3930bc94033249b1d5adc; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< 75d276e5bb68778b2916f98a2bc30f142ebadc64 (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- Upgrade Linux to 75d276e5bb68778b2916f98a2bc30f142ebadc64 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-97997.md
Affected: Linux >= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, < 5ad081761a1f0b0d95ab08b61a6008309fba95f9; >= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, < cfe8128ceb78374b0f9cebb608bb48e3928d784a; >= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, < 3e6400e3b8b858cdf0f8d70b20d8b55d703af368; >= 1ce9e6055fa0a9043405c56…
Fixed in: Linux 5ad081761a1f0b0d95ab08b61a6008309fba95f9, Linux 3e6400e3b8b858cdf0f8d70b20d8b55d703af368, Linux 75d276e5bb68778b2916f98a2bc30f142ebadc64

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-97997 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< 5ad081761a1f0b0d95ab08b61a6008309fba95f9; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< cfe8128ceb78374b0f9cebb608bb48e3928d784a; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< 3e6400e3b8b858cdf0f8d70b20d8b55d703af368; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< d595358276b60e5df4d3930bc94033249b1d5adc; \>= 1ce9e6055fa0a9043405c5604cf19169ec5379ff, \< 75d276e5bb68778b2916f98a2bc30f142ebadc64; Linux 5.0.

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

Yes. Fixed in Linux 5ad081761a1f0b0d95ab08b61a6008309fba95f9, Linux 3e6400e3b8b858cdf0f8d70b20d8b55d703af368, Linux 75d276e5bb68778b2916f98a2bc30f142ebadc64. Upgrade Linux to 75d276e5bb68778b2916f98a2bc30f142ebadc64 or later.

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

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/5ad081761a1f0b0d95ab08b61a6008309fba95f9>
- other: <https://git.kernel.org/stable/c/cfe8128ceb78374b0f9cebb608bb48e3928d784a>
- other: <https://git.kernel.org/stable/c/3e6400e3b8b858cdf0f8d70b20d8b55d703af368>
- other: <https://git.kernel.org/stable/c/d595358276b60e5df4d3930bc94033249b1d5adc>
- other: <https://git.kernel.org/stable/c/75d276e5bb68778b2916f98a2bc30f142ebadc64>

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

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