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-97412 Overview
CVE-2026-97412 is a use-after-free vulnerability in the Linux kernel's pds_core driver. The pdsc_teardown() function frees Direct Memory Access (DMA) buffers without first disabling bus mastering on the device. The device remains capable of issuing DMA writes to memory regions that the kernel has already released. If the device writes to freed memory, the kernel can experience memory corruption or a use-after-free condition. The upstream fix adds pci_clear_master() to pdsc_teardown() to quiesce DMA before resources are released, and pci_set_master() to pdsc_setup() to re-enable bus mastering for the firmware recovery path.
Critical Impact
The device can perform DMA writes to freed kernel memory after driver teardown, enabling kernel memory corruption and potential privilege escalation on systems using the pds_core driver.
Affected Products
- Linux kernel builds including the pds_core driver prior to the referenced stable commits
- Systems using AMD Pensando Distributed Services (PDS) networking hardware
- Downstream distribution kernels that have not yet backported the fix
Discovery Timeline
- 2026-09-24 - CVE-2026-97412 published to the National Vulnerability Database (NVD)
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97412
Vulnerability Analysis
The pds_core driver manages the AMD Pensando Distributed Services card. During driver teardown, pdsc_teardown() releases DMA-mapped buffers used for device communication. The function previously did not call pci_clear_master(), so the device retained bus master privileges after the buffers were unmapped and freed.
A PCIe device with bus mastering enabled can initiate DMA transactions independently of the CPU. If the device writes to the freed region, the kernel allocator may have already reassigned that memory to another subsystem. The resulting corruption is a classic use-after-free condition triggered by hardware rather than software.
The firmware recovery path invokes teardown and setup in sequence. Because the fix clears the master bit during teardown, the companion change in pdsc_setup() restores it with pci_set_master() so recovery continues to function.
Root Cause
The root cause is missing lifecycle management of the PCI bus master enable bit relative to DMA buffer lifetime. The driver followed an incorrect ordering: free DMA resources, then leave the device able to issue DMA. Correct ordering requires quiescing all device-initiated DMA before releasing the backing memory.
Attack Vector
Triggering the condition requires exercising the teardown path, typically through firmware recovery, driver unload, or device reset. An attacker with the ability to induce these events on a vulnerable system could race device-generated DMA writes against the freed allocation. The CVE record does not list a public exploit, and the attack surface is limited to systems with the affected hardware present.
No verified exploit code is available for CVE-2026-97412. The upstream patches referenced below describe the full remediation. See the kernel.org commit 6443f4f2, commit 9eee6b90, and commit cc8beb70 for the authoritative source changes.
Detection Methods for CVE-2026-97412
Indicators of Compromise
- Unexpected kernel oops or panic messages referencing pds_core, pdsc_teardown, or DMA-related slab corruption
- KASAN (Kernel Address Sanitizer) reports of use-after-free in slabs recently freed by the pds_core driver
- Repeated firmware recovery events in dmesg logs preceding memory corruption traces
Detection Strategies
- Inventory Linux hosts and compare running kernel versions against the fixed stable commits listed in the kernel.org references
- Enable KASAN on test kernels to surface DMA-triggered use-after-free during driver load, unload, and firmware recovery cycles
- Audit systems carrying AMD Pensando DSC adapters, since those hosts are the realistic target population
Monitoring Recommendations
- Forward kernel ring buffer messages and kdump crash artifacts to a central log store for correlation of pds_core faults
- Alert on repeated pds_core driver reset or firmware recovery messages that may indicate exploitation attempts
- Track package and kernel version drift across the Linux fleet to confirm patch coverage over time
How to Mitigate CVE-2026-97412
Immediate Actions Required
- Apply the stable kernel updates that include the pci_clear_master() call in pdsc_teardown() and the matching pci_set_master() in pdsc_setup()
- Prioritize patching on hosts that use AMD Pensando DSC hardware and on systems that routinely exercise firmware recovery
- Reboot after upgrading, since kernel driver changes require a running image swap to take effect
Patch Information
The fix is available in the mainline and stable Linux trees via three commits: 6443f4f20bdae726fe01cf5946fba9742a0ffda6, 9eee6b90bee3df496ed9094d9e76d5e478d72d0a, and cc8beb70e70fc90e54efdbc1128cf7de799e6be4. Consume the patch through your distribution's kernel update channel once backports are published.
Workarounds
- Where patching is not immediately feasible, blacklist the pds_core module on systems that do not require Pensando networking functionality
- Restrict administrative access that could trigger driver reload or firmware recovery sequences
- Avoid unnecessary driver unload or device reset operations on vulnerable hosts until the patch is applied
# Blacklist the pds_core module until the kernel is patched
echo 'blacklist pds_core' | sudo tee /etc/modprobe.d/blacklist-pds_core.conf
sudo update-initramfs -u
# Verify the running kernel version after patching
uname -r
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

