{"id":"CVE-2026-97947","aliases":["CVE-2026-97947"],"related":[],"kind":"vulnerability","state":"published","title":"x86/amd_node: Fix potential NULL pointer dereference","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/amd_node: Fix potential NULL pointer dereference\n\namd_smn_read/write() are exported functions around __amd_smn_rw(), so\nthey are always available even if amd_smn_init() fails. In that case,\n'amd_roots' is NULL and __amd_smn_rw() will access uninitialized memory.\n\nThen, commit:\n\n  83518453074d (\"x86/amd_node: Add SMN offsets to exclusive region access\")\n\nadded the 'smn_exclusive' flag, which indicated the calls to\npci_request_config_region_exclusive() succeeded, to prevent\nconcurrent userspace access.\n\nCommit:\n\n  0a4b61d9c2e4 (\"x86/amd_node: Fix AMD root device caching\")\n\nre-ordered initialization so pci_request_config_region_exclusive() is\ncalled earlier and a failure exits amd_smn_init() before allocating\n'amd_roots'. The setting of 'smn_exclusive' moved to the end of\namd_smn_init(), after 'amd_roots' is allocated. It became redundant\nand can be removed.\n\nReplace 'smn_exclusive' with directly checking 'amd_roots', to fix a\npotential NULL pointer dereference and to simplify the logic.\n\n  [ bp: Reorg commit message, touchup comment. ]\n  [ mingo: Rebase & further touchups. ]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/amd_node: Fix potential NULL pointer dereference\n\namd_smn_read/write() are exported functions around __amd_smn_rw(), so\nthey are always available even if amd_smn_init() fails. In that case,\n'amd_roots' is NULL and __amd_smn_rw() will access uninitialized memory.\n\nThen, commit:\n\n  83518453074d (\"x86/amd_node: Add SMN offsets to exclusive region access\")\n\nadded the 'smn_exclusive' flag, which indicated the calls to\npci_request_config_region_exclusive() succeeded, to prevent\nconcurrent userspace access.\n\nCommit:\n\n  0a4b61d9c2e4 (\"x86/amd_node: Fix AMD root device caching\")\n\nre-ordered initialization so pci_request_config_region_exclusive() is\ncalled earlier and a failure exits amd_smn_init() before allocating\n'amd_roots'. The setting of 'smn_exclusive' moved to the end of\namd_smn_init(), after 'amd_roots' is allocated. It became redundant\nand can be removed.\n\nReplace 'smn_exclusive' with directly checking 'amd_roots', to fix a\npotential NULL pointer dereference and to simplify the logic.\n\n  [ bp: Reorg commit message, touchup comment. ]\n  [ mingo: Rebase & further touchups. ]","source":"cvelist"}],"published":"2026-09-25T10:22:57.163Z","modified":"2026-10-19T10:17:45.937Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"77466b798d59d6761501ff36094cf430d3876549","fixed":"fcd19bc829eca237742a3b123f839ad1c473ec85","status":"affected"},{"type":"git","introduced":"77466b798d59d6761501ff36094cf430d3876549","fixed":"a797a2331e5d2ecdbccbae222ea71c759fdb2c2b","status":"affected"},{"type":"git","introduced":"77466b798d59d6761501ff36094cf430d3876549","fixed":"aefdbd574a362dcf7569bada6d72f64a006b9fb9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/fcd19bc829eca237742a3b123f839ad1c473ec85","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a797a2331e5d2ecdbccbae222ea71c759fdb2c2b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aefdbd574a362dcf7569bada6d72f64a006b9fb9","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97947","url":"https://www.cve.org/CVERecord?id=CVE-2026-97947","licence":"CVE Terms of Use","modified":"2026-10-19T09:11:13.582Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97947","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97947","licence":"Public domain","modified":"2026-10-19T10:17:45.937Z"}],"updatedAt":"2026-11-25T22:59:40.999Z","epss":{"score":0.00198,"percentile":0.10039,"date":"2026-12-01T12:00:22.000Z"}}