CVE-2026-97947

x86/amd_node: Fix potential NULL pointer dereference

Published Sep 25, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

x86/amd_node: Fix potential NULL pointer dereference

amd_smn_read/write() are exported functions around __amd_smn_rw(), so
they are always available even if amd_smn_init() fails. In that case,
'amd_roots' is NULL and __amd_smn_rw() will access uninitialized memory.

Then, commit:

83518453074d ("x86/amd_node: Add SMN offsets to exclusive region access")

added the 'smn_exclusive' flag, which indicated the calls to
pci_request_config_region_exclusive() succeeded, to prevent
concurrent userspace access.

Commit:

0a4b61d9c2e4 ("x86/amd_node: Fix AMD root device caching")

re-ordered initialization so pci_request_config_region_exclusive() is
called earlier and a failure exits amd_smn_init() before allocating
'amd_roots'. The setting of 'smn_exclusive' moved to the end of
amd_smn_init(), after 'amd_roots' is allocated. It became redundant
and can be removed.

Replace 'smn_exclusive' with directly checking 'amd_roots', to fix a
potential NULL pointer dereference and to simplify the logic.

[ bp: Reorg commit message, touchup comment. ]
[ mingo: Rebase & further touchups. ]

Analysis

AI-generated

Technical impact

The vulnerability resides in the AMD node subsystem of the Linux kernel where exported functions amd_smn_read and amd_smn_write call an internal helper that accesses the global amd_roots pointer without ensuring it has been allocated. If amd_smn_init fails, amd_roots remains NULL while the functions are still reachable; a subsequent call dereferences the null pointer, causing a kernel fault that results in a system crash. This constitutes a null pointer dereference classified as CWE-476. The crash leads to denial of service affecting all users on the host.

Affected Systems

All Linux kernel implementations for the x86 architecture that include the x86/amd_node module are potentially affected. The flaw manifests when amd_smn_init fails, leaving amd_roots NULL while exported functions remain available. Any kernel without the patch commit 0a4b61d9c2e4 or later can expose this vulnerability.

Risk and Exploitability

The CVSS score of 5.5 describes a medium severity primarily because the impact is a kernel crash. The EPSS score of < 1% indicates that widespread exploitation is unlikely. The flaw is not listed in CISA KEV. Based on the description, it is inferred that the attack vector is local, requiring an attacker to invoke the vulnerable exported functions after an initialization failure, which would typically need privilege or local access. Successful exploitation deterministically leads to a system crash, but no remote execution is provided.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that incorporates commit 0a4b61d9c2e4 or later, ensuring amd_roots is allocated before any exported function may be invoked.
  • If a kernel update is not possible, configure or rebuild the system such that the x86/amd_node module is disabled or unloaded, preventing the vulnerable functions from being called.
  • When the module cannot be disabled, add a runtime check before calling amd_smn_read or amd_smn_write to verify that amd_roots is non‑null, or patch the kernel to add this null check within the helper function.

Generated by OpenCVE AI on October 1, 2026 at 11:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-457
Type Values Removed Values Added
Weaknesses CWE-457
CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: x86/amd_node: Fix potential NULL pointer dereference amd_smn_read/write() are exported functions around __amd_smn_rw(), so they are always available even if amd_smn_init() fails. In that case, 'amd_roots' is NULL and __amd_smn_rw() will access uninitialized memory. Then, commit: 83518453074d ("x86/amd_node: Add SMN offsets to exclusive region access") added the 'smn_exclusive' flag, which indicated the calls to pci_request_config_region_exclusive() succeeded, to prevent concurrent userspace access. Commit: 0a4b61d9c2e4 ("x86/amd_node: Fix AMD root device caching") re-ordered initialization so pci_request_config_region_exclusive() is called earlier and a failure exits amd_smn_init() before allocating 'amd_roots'. The setting of 'smn_exclusive' moved to the end of amd_smn_init(), after 'amd_roots' is allocated. It became redundant and can be removed. Replace 'smn_exclusive' with directly checking 'amd_roots', to fix a potential NULL pointer dereference and to simplify the logic. [ bp: Reorg commit message, touchup comment. ] [ mingo: Rebase & further touchups. ]
Title x86/amd_node: Fix potential NULL pointer dereference
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:11 AM
Reserved
Sep 25, 2026, 10:18 AM
Status
Received
Published
Sep 25, 2026, 11:17 AM
Modified
Oct 19, 2026, 10:17 AM
Severity
Low
Public date
Sep 25, 2026, 12:00 AM