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-98343 Overview
CVE-2026-98343 is a use-after-free vulnerability in the Linux kernel's dmaengine subsystem. The flaw occurs in dma_chan_put() and dma_release_channel() when the last reference on chan->device->ref is dropped. The dma_device_release() function then frees the dma_device structure along with its channels, but dma_chan_put() still dereferences chan->device->owner through dma_chan_to_owner() for the trailing module_put() call. KASAN flagged the issue as a slab-use-after-free read of eight bytes.
Critical Impact
Local triggering of the use-after-free can lead to kernel memory corruption, information disclosure, or denial of service on systems using DMA engine drivers.
Affected Products
- Linux kernel versions containing the dmaengine channel reference-counting code prior to the referenced fix commits
- Distributions shipping the vulnerable kernel without the backported patches
- Systems loading or unloading DMA engine driver modules
Discovery Timeline
- 2026-10-06 - CVE-2026-98343 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98343
Vulnerability Analysis
The Linux kernel dmaengine subsystem manages reference-counted DMA device and channel objects. When dma_device_put() releases the final reference on chan->device->ref, the kernel invokes dma_device_release(), which frees the parent dma_device and its associated channels via kfree(). The caller in dma_chan_put() then proceeds to execute module_put() using the module owner pointer accessed through dma_chan_to_owner(), which reads chan->device->owner. Because the backing allocation has already been freed, this read operates on reclaimed slab memory [CWE-416].
KASAN produced the following report during module unload:
slab-use-after-free in dma_chan_put+0x3e6/0x4c0
Read of size 8 by task insmod/6319
Freed by task 6319:
kfree+0x225/0x470
dma_chan_put+0x395/0x4c0
dmaengine_put+0xf8/0x160
Root Cause
The ordering of operations in dma_chan_put() releases the device reference before the module reference. The function later reads back fields from the freed dma_device structure to complete module_put(). The fix caches the module owner pointer in a local variable before dropping the device reference, removing the dependency on chan->device during the trailing module_put().
Attack Vector
The vulnerability requires a local actor with the ability to trigger DMA channel allocation and release cycles, typically through module loading, device probing, or driver interactions that exercise dmaengine_put() and dma_release_channel() code paths. Successful exploitation of the freed slab object could enable kernel memory corruption or targeted information disclosure. The condition manifests at the exact moment a channel's parent device reaches zero references.
See the upstream fix in Kernel Git Commit 02bd02c5852 for the authoritative source change.
Detection Methods for CVE-2026-98343
Indicators of Compromise
- KASAN reports citing slab-use-after-free in dma_chan_put or dma_release_channel in kernel logs.
- Unexpected kernel oops or panic traces referencing dma_chan_to_owner, dmaengine_put, or module_put during driver unload.
- Repeated module load/unload activity against DMA engine drivers from unprivileged or unexpected sources.
Detection Strategies
- Enable KASAN on test and pre-production kernels to surface use-after-free conditions in DMA code paths.
- Monitor dmesg and persistent kernel logs for stack traces that include dma_chan_put, dma_release_channel, or dmaengine_put.
- Correlate kernel crash telemetry with recent insmod/rmmod events against DMA engine modules.
Monitoring Recommendations
- Collect kernel ring buffer output centrally and alert on KASAN or slab allocator warnings.
- Track installed kernel package versions across the fleet and flag hosts missing the fix commits listed in the references.
- Review audit logs for module management syscalls (init_module, finit_module, delete_module) tied to DMA drivers.
How to Mitigate CVE-2026-98343
Immediate Actions Required
- Apply the upstream kernel fixes referenced below and reboot affected systems.
- Restrict module loading privileges to trusted administrators by enforcing CAP_SYS_MODULE controls.
- Prioritize patching on systems with third-party DMA engine drivers that frequently cycle references.
Patch Information
The fix caches chan->device->owner in a local variable within dma_chan_put() before dropping the device reference, so the trailing module_put() no longer dereferences freed memory. Backports and mainline commits are available at the following references:
- Kernel Git Commit 02bd02c5852
- Kernel Git Commit 07eb075b60d5
- Kernel Git Commit 6cf31716b77a
- Kernel Git Commit 855187a88bdf
- Kernel Git Commit 9319dd64d5cd
- Kernel Git Commit b92c50259533
- Kernel Git Commit c9780b601438
- Kernel Git Commit e873c74132f0
Workarounds
- Avoid loading or unloading DMA engine driver modules at runtime on unpatched systems.
- Blocklist unused DMA engine drivers via /etc/modprobe.d/ to reduce exposed code paths.
- Enforce least-privilege policies that prevent non-administrative accounts from invoking module management.
# Verify running kernel and confirm patch presence
uname -r
# Example: blocklist an unused DMA engine driver until patched
echo 'blacklist <dma_driver_name>' | sudo tee /etc/modprobe.d/disable-dma.conf
sudo update-initramfs -u
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

