{"id":"CVE-2026-81015","aliases":["CVE-2026-81015"],"related":[],"kind":"vulnerability","state":"published","title":"platform/x86/amd/pmc: Fix LPS0 and debugfs leaks when STB init fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/amd/pmc: Fix LPS0 and debugfs leaks when STB init fails\n\namd_pmc_probe() registers the LPS0 s2idle handler with\nacpi_register_lps0_dev() and creates the driver's debugfs directory before\ncalling amd_stb_s2d_init(), which is the last step in probe that can fail.\n\nWhen amd_stb_s2d_init() fails (for example the S2D telemetry region cannot\nbe ioremapped on a long-running system, or the SMU rejects the S2D setup)\nthe error path only calls pci_dev_put() and returns.  This leaves\namd_pmc_s2idle_dev_ops on the global lps0_s2idle_devops_head list and leaks\nthe debugfs directory, while the devm-managed resources backing the handler\nare torn down.\n\nReloading the module then walks the corrupted list in\nacpi_register_lps0_dev() and hits:\n\n  list_add corruption. next->prev should be prev, but was NULL.\n  kernel BUG at lib/list_debug.c:29!\n   acpi_register_lps0_dev+0x44/0x80\n   amd_pmc_probe+0x224/0x380 [amd_pmc]\n   platform_probe+0x67/0x90\n\nEven without a reload, the stale registration means the next s2idle\ntransition calls into torn-down driver state.\n\nUnwind the debugfs directory and the LPS0 registration on the\namd_stb_s2d_init() error path.  acpi_unregister_lps0_dev() is safe to call\nunconditionally here: it is guarded on the same conditions as\nacpi_register_lps0_dev(), which is exactly what amd_pmc_remove() already\nrelies on.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/amd/pmc: Fix LPS0 and debugfs leaks when STB init fails\n\namd_pmc_probe() registers the LPS0 s2idle handler with\nacpi_register_lps0_dev() and creates the driver's debugfs directory before\ncalling amd_stb_s2d_init(), which is the last step in probe that can fail.\n\nWhen amd_stb_s2d_init() fails (for example the S2D telemetry region cannot\nbe ioremapped on a long-running system, or the SMU rejects the S2D setup)\nthe error path only calls pci_dev_put() and returns.  This leaves\namd_pmc_s2idle_dev_ops on the global lps0_s2idle_devops_head list and leaks\nthe debugfs directory, while the devm-managed resources backing the handler\nare torn down.\n\nReloading the module then walks the corrupted list in\nacpi_register_lps0_dev() and hits:\n\n  list_add corruption. next->prev should be prev, but was NULL.\n  kernel BUG at lib/list_debug.c:29!\n   acpi_register_lps0_dev+0x44/0x80\n   amd_pmc_probe+0x224/0x380 [amd_pmc]\n   platform_probe+0x67/0x90\n\nEven without a reload, the stale registration means the next s2idle\ntransition calls into torn-down driver state.\n\nUnwind the debugfs directory and the LPS0 registration on the\namd_stb_s2d_init() error path.  acpi_unregister_lps0_dev() is safe to call\nunconditionally here: it is guarded on the same conditions as\nacpi_register_lps0_dev(), which is exactly what amd_pmc_remove() already\nrelies on.","source":"cvelist"}],"published":"2026-09-11T19:43:04.063Z","modified":"2026-10-19T09:17:34.923Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"49de59f69a76f538bfa5d0638a8c98d052546567","fixed":"d201c09c2428a4a8fd3bdcb032ae99f1e016458c","status":"affected"},{"type":"git","introduced":"83ad6974dd3bf34c080b3c08d36d02ebc3bd6da8","fixed":"bc9aa5fe21c3966c80647ed6574b94b863f23c62","status":"affected"},{"type":"git","introduced":"83ad6974dd3bf34c080b3c08d36d02ebc3bd6da8","fixed":"30e5f4d0cd0be655c800f10ae3e530391aa6c1b5","status":"affected"},{"type":"git","introduced":"83ad6974dd3bf34c080b3c08d36d02ebc3bd6da8","fixed":"76f650a76d6a36a4bee79d94db90a0e935a95477","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.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","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/d201c09c2428a4a8fd3bdcb032ae99f1e016458c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc9aa5fe21c3966c80647ed6574b94b863f23c62","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/30e5f4d0cd0be655c800f10ae3e530391aa6c1b5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/76f650a76d6a36a4bee79d94db90a0e935a95477","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-81015","url":"https://www.cve.org/CVERecord?id=CVE-2026-81015","licence":"CVE Terms of Use","modified":"2026-10-19T08:46:40.596Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-81015","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81015","licence":"Public domain","modified":"2026-10-19T09:17:34.923Z"}],"updatedAt":"2026-11-25T22:59:38.015Z","epss":{"score":0.00168,"percentile":0.06398,"date":"2026-12-01T12:00:22.000Z"}}