Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97997 Overview
CVE-2026-97997 affects the Linux kernel's virtio_ring subsystem, specifically the packed ring implementation introduced in commit 1ce9e6055fa0. The flaw involves stale descriptor flags left behind when virtqueue_add_packed() fails partway through mapping a scatter-gather chain. When vring_map_one_sg() fails, the unmap path restores avail_used_flags but does not clear the AVAIL and USED bits already written into descriptor entries. Subsequent commands reusing those slots can trigger the device to consume stale descriptors, blocking the virtqueue.
Critical Impact
A failed descriptor add on a packed virtqueue can stall I/O processing, causing command abortions and queue hangs under memory pressure in swiotlb configurations.
Affected Products
- Linux kernel versions containing commit 1ce9e6055fa0 ("virtio_ring: introduce packed ring support")
- Virtualized guests using virtio devices with packed ring support
- Systems using swiotlb bounce buffers under memory pressure
Discovery Timeline
- 2026-09-25 - CVE-2026-97997 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97997
Vulnerability Analysis
In a packed virtqueue, the AVAIL and USED bits reside inside the descriptor itself. Writing those bits makes a descriptor available to the device. The bit meanings invert each time the ring wraps, tracked by a wrap counter. Making a descriptor available or invalid requires flipping both bits.
The virtqueue_add_packed() function marks every descriptor in a chain available as it maps the scatter-gather list, writing the head descriptor last. The device consumes the ring in order and stops at a head that is not yet available. When vring_map_one_sg() fails mid-chain, the unmap_release path restores avail_used_flags but leaves the already-written descriptors flagged with the current wrap counter's AVAIL and USED bits.
The head descriptor serves as the only guard preventing the device from consuming these stale entries. When the driver issues a shorter subsequent command that reuses the same head, the trailing stale entries from the aborted command remain marked available. The device interprets them as a continuation of the new command, blocking the queue.
Root Cause
The root cause is incomplete rollback logic in the packed ring failure path. The unmap_release sequence restores driver-side bookkeeping but does not invalidate the AVAIL and USED bits in descriptors already written during the failed add. This leaves ring state inconsistent between the driver and the device.
Attack Vector
This is a reliability and denial-of-service defect rather than a remotely exploitable code execution issue. The condition typically triggers in swiotlb configurations under memory pressure, when vring_map_one_sg() fails on larger I/O requests. The result is command abortions and a stalled virtqueue requiring reset or guest restart to recover.
No exploitation code is applicable. The fix rewrites descriptor flags for the previous wrap counter when any add fails, invalidating all added descriptors on failure. See Linux Kernel Commit 75d276e and Linux Kernel Commit d595358 for the upstream patches.
Detection Methods for CVE-2026-97997
Indicators of Compromise
- Repeated virtio I/O command abortions logged by guest kernel under memory pressure
- Stalled virtio block or network queues that fail to make forward progress after a failed descriptor add
- swiotlb buffer exhaustion messages correlated with virtqueue hangs
Detection Strategies
- Monitor guest dmesg for virtio timeout messages and queue reset events
- Audit running kernel versions against patched commits 75d276e5bb68 and d595358276b6
- Correlate I/O stalls with swiotlb pressure in virtualized workloads using packed ring
Monitoring Recommendations
- Track virtio queue depth and completion latency metrics in guest VMs
- Alert on sustained virtio request timeouts or device resets
- Baseline swiotlb usage and alert on near-exhaustion conditions that correlate with queue hangs
How to Mitigate CVE-2026-97997
Immediate Actions Required
- Apply the upstream kernel patches referenced in commits 75d276e5bb68778b2916f98a2bc30f142ebadc64 and d595358276b60e5df4d3930bc94033249b1d5adc
- Update to a stable Linux kernel release that includes the virtio_ring fix
- Audit virtualized workloads for packed ring usage and swiotlb pressure
Patch Information
Two upstream fixes are available in the Linux stable tree. Both implement the second remediation option described in the commit message: rewriting descriptor flags for the previous wrap counter so that all added descriptors are invalidated when any add fails. Refer to Linux Kernel Commit 75d276e and Linux Kernel Commit d595358 for distribution backporting.
Workarounds
- Increase swiotlb buffer size at boot (for example, swiotlb=65536) to reduce the likelihood of vring_map_one_sg() failures
- Where supported, disable packed ring and fall back to split ring for affected virtio devices until patches are applied
- Reduce guest memory pressure and limit large I/O request sizes on affected hosts
# Configuration example: increase swiotlb buffer at guest boot
# Edit /etc/default/grub and append to GRUB_CMDLINE_LINUX:
GRUB_CMDLINE_LINUX="... swiotlb=65536,force"
# Regenerate GRUB config and reboot
sudo update-grub
sudo reboot
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

