CVE-2026-97947: x86/amd_node: Fix potential NULL pointer dereference

Published Sep 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

x86/amdnode: Fix potential NULL pointer dereference

amdsmnread/write() are exported functions around amdsmnrw(), so they are always available even if amdsmninit() fails. In that case, 'amdroots' is NULL and amdsmnrw() will access uninitialized memory.

Then, commit:

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

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

Commit:

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

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

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

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

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:22 AM
Data Sourced
via MITRE·10:22 AM
Description
Data Sourced
via NVD·11:17 AM
Description

Frequently Asked Questions

1

When can the NULL pointer dereference occur?

It can occur when amd_smn_init() fails and leaves amd_roots as NULL, but code subsequently calls the exported amd_smn_read() or amd_smn_write() functions. Those functions remain available even when initialization fails.

2

Which systems are most relevant to triage?

Systems using the Linux kernel's x86 AMD node and SMN access functionality are relevant. The failure condition specifically involves unsuccessful AMD SMN initialization followed by an SMN read or write operation.

3

How can I determine whether this condition may have affected a system?

Investigate whether amd_smn_init() failed and whether amd_smn_read() or amd_smn_write() was called afterward. The vulnerable path is characterized by access to SMN functionality while amd_roots has not been allocated.

4

What does the fix change?

The fix checks amd_roots directly before using it, preventing access when initialization did not allocate the structure. It also removes the redundant smn_exclusive state tracking.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203