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-97947 Overview
CVE-2026-97947 affects the Linux kernel's x86/amd_node subsystem. The exported functions amd_smn_read() and amd_smn_write() wrap __amd_smn_rw() and remain callable even when amd_smn_init() fails. In that failure path, the amd_roots pointer stays NULL and the underlying read/write routine accesses uninitialized memory. The flaw was addressed by replacing the stale smn_exclusive flag with a direct NULL check against amd_roots.
Critical Impact
A NULL pointer dereference in kernel space can crash the system and lead to denial of service on affected AMD-based Linux hosts.
Affected Products
- Linux kernel (upstream x86/amd_node subsystem)
- AMD platforms using System Management Network (SMN) access paths
- Stable kernel branches referenced in the fix commits
Discovery Timeline
- 2026-09-25 - CVE-2026-97947 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97947
Vulnerability Analysis
The Linux kernel exposes amd_smn_read() and amd_smn_write() as exported symbols that forward to the internal __amd_smn_rw() helper. These wrappers remain available to callers regardless of whether amd_smn_init() completed successfully. When initialization fails, amd_roots is never allocated and any subsequent SMN access dereferences a NULL pointer inside kernel context [CWE-476].
Commit 83518453074d introduced the smn_exclusive flag to track successful calls to pci_request_config_region_exclusive() and prevent concurrent userspace access. A later commit, 0a4b61d9c2e4 ("x86/amd_node: Fix AMD root device caching"), re-ordered initialization so that pci_request_config_region_exclusive() runs earlier and a failure exits amd_smn_init() before allocating amd_roots. The smn_exclusive assignment moved to the end of initialization, after allocation, making it redundant as a safety signal.
Root Cause
The guard logic drifted out of sync with the initialization order. Code paths that relied on smn_exclusive to determine whether SMN access was safe no longer reflected the state of amd_roots. If amd_smn_init() aborted before allocating amd_roots, calls through the exported wrappers reached __amd_smn_rw() with a NULL root pointer.
Attack Vector
The vulnerability is triggered through kernel code paths that invoke the SMN read/write wrappers on systems where amd_smn_init() failed during boot. The patch replaces reliance on smn_exclusive with a direct check of amd_roots, ensuring __amd_smn_rw() bails out before dereferencing an unallocated pointer. See the upstream commits for the exact code change: a797a2331e5d, aefdbd574a36, and fcd19bc829ec.
Detection Methods for CVE-2026-97947
Indicators of Compromise
- Kernel oops or panic messages referencing __amd_smn_rw, amd_smn_read, or amd_smn_write in dmesg or /var/log/kern.log.
- Boot-time log entries indicating that amd_smn_init() failed on AMD platforms.
- Unexpected system crashes on AMD hosts correlated with drivers or tooling that call SMN access functions.
Detection Strategies
- Audit running kernel versions against the fixed commits listed in the upstream references.
- Monitor kernel ring buffer output for NULL pointer dereference traces originating in the x86/amd_node subsystem.
- Inventory AMD-based Linux systems and flag hosts running unpatched stable branches.
Monitoring Recommendations
- Forward kernel logs to a centralized logging platform and alert on oops signatures containing amd_smn_.
- Track kernel package versions through configuration management and compare against vendor advisories.
- Correlate crash telemetry with recent driver loads or firmware updates that exercise SMN paths.
How to Mitigate CVE-2026-97947
Immediate Actions Required
- Apply the stable kernel updates containing commits a797a2331e5d, aefdbd574a36, and fcd19bc829ec.
- Reboot affected AMD systems after installing the patched kernel package.
- Prioritize AMD-based servers and workstations where third-party drivers invoke SMN access functions.
Patch Information
The fix replaces the smn_exclusive flag with a direct NULL check of amd_roots inside __amd_smn_rw(). Patched kernels are available through the upstream stable tree. Refer to the Linux kernel stable commits for the full change and backport information, then install the corresponding kernel package from your distribution vendor.
Workarounds
- No supported workaround replaces the kernel patch; apply the vendor-supplied update.
- Where patching is delayed, restrict loading of drivers and userspace tooling that invoke amd_smn_read() or amd_smn_write().
- Monitor kernel logs for amd_smn_init() failure messages and avoid exercising SMN paths on hosts reporting initialization errors.
# Verify running kernel and check for the fix commit in the changelog
uname -r
rpm -q --changelog kernel | grep -i amd_smn # RHEL/Fedora
apt-get changelog linux-image-$(uname -r) | grep -i amd_smn # Debian/Ubuntu
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

