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-98254 Overview
CVE-2026-98254 is a Linux kernel vulnerability in the software I/O translation lookaside buffer (swiotlb) subsystem. The swiotlb_bounce() function mixes a page frame number derived from the pre-adjusted orig_addr with an offset derived from the post-adjusted address. When a partial sync through dma_sync_single_range_for_*() sets a non-zero tlb_offset that crosses a page boundary, the resulting copy targets the wrong physical page. The flaw affects DMA bounce buffer handling and can corrupt kernel memory or leak device data across page boundaries.
Critical Impact
Local actors with the ability to trigger partial DMA syncs can cause memory corruption, data integrity failures, and potential disclosure of kernel data through incorrect highmem page selection.
Affected Products
- Linux kernel versions containing the vulnerable swiotlb_bounce() highmem branch
- Systems using software I/O TLB bounce buffering for DMA
- Distributions tracking the mainline kernel pending backport of the fix commits
Discovery Timeline
- 2026-10-06 - CVE CVE-2026-98254 published to NVD
- 2026-10-07 - Last updated in NVD database
Technical Details for CVE-2026-98254
Vulnerability Analysis
The vulnerability resides in swiotlb_bounce(), which copies data between a device-visible bounce buffer and the caller's original buffer. The function reads the page frame number from the slot's recorded orig_addr, then advances orig_addr by tlb_offset to reach the address the caller requested. The highmem branch mixes these two values: it computes the intra-page offset from the adjusted address but resolves the page from the pre-adjustment value.
When the adjustment crosses a page boundary, the page-and-offset pair no longer describes a single physical location. For a positive tlb_offset, the copy lands one page below the intended target. For a negative offset, it lands one page above. DMA_FROM_DEVICE operations write device data over the wrong page and leave the intended page stale. DMA_TO_DEVICE operations feed the device from a page the mapping may not cover.
The branch selector exhibits the same defect. A slot recorded in lowmem can be adjusted into highmem, after which the lowmem code path passes a highmem address to phys_to_virt().
Root Cause
The root cause is inconsistent use of orig_addr before and after the tlb_offset adjustment within swiotlb_bounce(). The highmem check and page-frame-number derivation operate on the stale value, while the offset calculation uses the final value. Partial syncs via dma_sync_single_range_for_cpu() and dma_sync_single_range_for_device() are the triggers that make tlb_offset non-zero.
Attack Vector
Exploitation requires local access and the ability to issue DMA operations that invoke partial syncs through bounce buffers. Workloads using drivers that perform partial dma_sync_single_range_for_*() operations on swiotlb-backed mappings can trigger memory corruption. The fix takes both page and offset from orig_addr once it is final and uses PhysHighMem() to test the address directly, mirroring the pattern already used by dma-debug.
Technical details are available in the upstream commits 0219b72, 6e53b4d, aa47098, and b7d7914.
Detection Methods for CVE-2026-98254
Indicators of Compromise
- Unexplained kernel memory corruption or data integrity failures on systems that rely on swiotlb bounce buffering
- Stale page contents following DMA_FROM_DEVICE operations where completed transfers do not appear in the expected buffer
- Kernel oops or panic traces originating from phys_to_virt() called with highmem addresses
Detection Strategies
- Audit running kernel versions against the fixed commits listed in the upstream references
- Enable CONFIG_DMA_API_DEBUG to surface mismatches between recorded mappings and sync operations
- Review driver code for partial dma_sync_single_range_for_*() calls on swiotlb-backed buffers
Monitoring Recommendations
- Collect kernel ring buffer output and crash dumps for anomalies in DMA sync code paths
- Track package versions across Linux fleets to confirm distribution-provided backports are deployed
- Monitor privileged process activity on systems lacking an IOMMU, where swiotlb use is more prevalent
How to Mitigate CVE-2026-98254
Immediate Actions Required
- Apply the upstream fix from kernel commits 0219b72, 6e53b4d, aa47098, or b7d7914 as appropriate for the kernel branch
- Update to a distribution kernel package that incorporates the swiotlb highmem fix
- Restrict local access on systems that cannot be patched immediately
Patch Information
The fix sources both the page and the intra-page offset from orig_addr after the tlb_offset adjustment is applied. It retains the pre-adjustment page frame number only in the branch that needs it, and uses PhysHighMem() to determine the branch directly from the final address. Backports are available in multiple stable trees via the referenced commits.
Workarounds
- Where supported hardware allows, enable an IOMMU to avoid swiotlb bounce buffer paths
- Reduce reliance on drivers that issue partial dma_sync_single_range_for_*() operations on swiotlb-backed mappings
- Limit untrusted local workloads on affected hosts until the kernel is updated
# Confirm the running kernel and check for the fix
uname -r
# Example: query the package manager for an updated kernel
# Debian/Ubuntu
apt list --upgradable | grep linux-image
# RHEL/CentOS/Fedora
dnf check-update kernel
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

