CVE-2026-97997
Received Received - Intake

Virtio Ring Packed Add Descriptor Flag Corruption

Vulnerability report for CVE-2026-97997, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-25

Last updated on: 2026-09-25

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-25
Last Modified
2026-09-25
Generated
2026-09-25
AI Q&A
2026-09-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a flaw in the virtio_ring implementation for packed rings. When mapping a chain of descriptors fails midway, the driver leaves stale AVAIL and USED bits in the descriptor ring. These bits incorrectly mark descriptors as available or used, causing the device to misinterpret stale entries as new commands. This can block the virtqueue and disrupt I/O operations, particularly under memory pressure in swiotlb configurations.

Detection Guidance

This vulnerability is specific to the Linux kernel's virtio_ring implementation and may not have direct network detection methods. Monitor kernel logs for virtio-related errors or failures during I/O operations, especially under memory pressure. Check for stalled virtio queues or unexpected command processing in logs.

Impact Analysis

This vulnerability can cause I/O operations to fail or hang, especially when the system is under memory pressure. It may lead to data corruption, system instability, or performance degradation in virtualized environments using virtio drivers. Systems relying on swiotlb for DMA operations are particularly affected.

Mitigation Strategies

Apply the kernel patch that fixes the virtio_ring packed add issue. Update to a Linux kernel version that includes the fix for CVE-2026-97997. Monitor systems using virtio for I/O errors or queue stalls, particularly in swiotlb configurations under memory pressure.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-97997. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart