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-98324 Overview
CVE-2026-98324 is a Linux kernel vulnerability in the dmaengine PXA driver. The flaw involves double counting of hardware descriptors in pxad_alloc_desc() after it was converted to use kzalloc_flex(). The __counted_by() counter sw_desc->nb_desc is set automatically by the allocator when the compiler supports __builtin_counted_by_ref() (gcc 15.1 or clang 22.1 and later), while an existing loop continues to increment the same counter. The resulting mismatch affects both pxad_free_desc() iteration and set_updater_desc() indexing, leading to memory corruption on free paths.
Critical Impact
A local attacker with low privileges can trigger memory corruption through the PXA DMA engine, potentially leading to privilege escalation or system compromise on affected Linux kernel builds.
Affected Products
- Linux kernel builds using the dmaengine PXA driver
- Kernels compiled with gcc 15.1 or later
- Kernels compiled with clang 22.1 or later
Discovery Timeline
- 2026-10-06 - CVE-2026-98324 published to NVD
- 2026-10-07 - Last updated in NVD database
Technical Details for CVE-2026-98324
Vulnerability Analysis
The vulnerability resides in the PXA DMA engine driver's descriptor allocation function pxad_alloc_desc(). The function was refactored from a direct kzalloc(struct_size(sw_desc, hw_desc, nb_hw_desc), GFP_NOWAIT) call to kzalloc_flex(). The newer allocator writes the __counted_by() counter field sw_desc->nb_desc automatically on toolchains that support __builtin_counted_by_ref(). The pre-existing initialization loop continues to increment nb_desc on each iteration. On supported compilers, this produces a counter value that is twice the actual number of allocated hardware descriptors.
Root Cause
The root cause is a logic flaw introduced during the conversion to kzalloc_flex(). The developer did not remove the manual counter increment after the allocator took over that responsibility. pxad_free_desc() uses nb_desc as its iteration bound, and set_updater_desc() uses it as an index. An inflated counter causes free operations to walk past the end of the allocated descriptor array, producing an out-of-bounds free condition. This maps to kernel memory corruption classes similar to [CWE-131] and [CWE-787].
Attack Vector
Exploitation requires local access with low privileges on a system running a vulnerable kernel. An attacker triggers DMA descriptor allocation and release paths through legitimate kernel interfaces that exercise the PXA DMA engine. The corrupted nb_desc counter causes the free path to operate on memory outside the allocated region. The error path is also affected because it does not reduce nb_desc to the number of descriptors actually allocated so far, allowing pxad_free_desc() to free entries that were never allocated.
No verified public exploit code is available. See the upstream commits for the technical fix: Kernel Git Commit Details and Kernel Git Commit Information.
Detection Methods for CVE-2026-98324
Indicators of Compromise
- Kernel panics or oops messages referencing pxad_free_desc or pxad_alloc_desc in system logs.
- SLUB/SLAB allocator warnings such as double-free, invalid free, or out-of-bounds detections tied to DMA descriptor objects.
- Unexpected process termination on workloads that heavily exercise the PXA DMA engine.
Detection Strategies
- Audit kernel build toolchains to identify systems compiled with gcc 15.1+ or clang 22.1+ where the double-count condition manifests.
- Enable CONFIG_KASAN and CONFIG_SLUB_DEBUG in test environments to surface out-of-bounds free events in the DMA engine code paths.
- Correlate dmesg output with monitoring telemetry to detect repeated kernel warnings associated with the dmaengine subsystem.
Monitoring Recommendations
- Forward kernel ring buffer events to a centralized log store and alert on pxad_ symbol references.
- Track kernel package versions across the fleet to identify hosts still running pre-patch builds.
- Monitor for unexpected driver reloads or system restarts on devices that use PXA DMA hardware.
How to Mitigate CVE-2026-98324
Immediate Actions Required
- Apply the upstream kernel patches referenced in the stable tree commits as soon as vendor builds are available.
- Inventory systems running kernels built with gcc 15.1 or clang 22.1 and prioritize patching those first.
- Restrict local access on affected systems until patched kernels are deployed, since exploitation requires local privileges.
Patch Information
The fix sets sw_desc->nb_desc explicitly and removes the redundant increment in the allocation loop. The error path now lowers nb_desc to the number of descriptors actually allocated, preventing pxad_free_desc() from freeing entries that were never allocated. Patches are available in the upstream Linux kernel stable tree: Kernel Git Commit Details and Kernel Git Commit Information.
Workarounds
- Rebuild the kernel using an older toolchain (gcc earlier than 15.1 or clang earlier than 22.1) where __builtin_counted_by_ref() is not available, which avoids the double-count condition.
- Disable or avoid loading the PXA dmaengine driver on systems that do not require it.
- Limit local account provisioning and enforce least-privilege policies on affected hosts until patches are deployed.
# Verify running kernel version and planned patch level
uname -r
# Check whether the pxa dmaengine module is loaded
lsmod | grep -i pxa
# Review recent kernel messages for pxad_ symbol references
dmesg -T | grep -i pxad_
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

