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. ]
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Kernel crash leading to system-wide denial of service
Action: Immediate Patch
AI Analysis

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.

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

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

No advisories yet.

History

Thu, 01 Oct 2026 09:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-457

Wed, 30 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Fri, 25 Sep 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-457
CWE-476

Fri, 25 Sep 2026 10:30:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:11:13.582Z

Reserved: 2026-09-25T10:18:58.204Z

Link: CVE-2026-97947

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:22.213

Modified: 2026-10-19T10:17:45.937

Link: CVE-2026-97947

cve-icon Redhat

Severity : Low

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-97947 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T11:15:05Z

Weaknesses