{"id":"CVE-2026-139417","aliases":["CVE-2026-139417"],"related":[],"kind":"vulnerability","state":"published","title":"platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse\n\nThe driver stores its state in a single file-scope static struct\namd_pmc_dev, which is reused on every bind. Its regbase, smu_virt_addr,\nstb_virt_addr and fch_virt_addr members are MMIO mappings created with\ndevm_ioremap().\n\nOn unbind the driver core unmaps these mappings, but it does not clear\nthe pointers in the static struct. Since the struct is not freed, the\nmembers keep pointing at the now-unmapped addresses.\n\nOn the next bind, the probe path re-maps a region only when its pointer\nis still NULL, so the stale pointer is reused and the following\nmemcpy_fromio()/ioread32() touches freed MMIO, causing use-after-unmap\ncrash. Clear these pointers in amd_pmc_remove() so the next probe re-maps\nthem instead of reusing stale ones.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse\n\nThe driver stores its state in a single file-scope static struct\namd_pmc_dev, which is reused on every bind. Its regbase, smu_virt_addr,\nstb_virt_addr and fch_virt_addr members are MMIO mappings created with\ndevm_ioremap().\n\nOn unbind the driver core unmaps these mappings, but it does not clear\nthe pointers in the static struct. Since the struct is not freed, the\nmembers keep pointing at the now-unmapped addresses.\n\nOn the next bind, the probe path re-maps a region only when its pointer\nis still NULL, so the stale pointer is reused and the following\nmemcpy_fromio()/ioread32() touches freed MMIO, causing use-after-unmap\ncrash. Clear these pointers in amd_pmc_remove() so the next probe re-maps\nthem instead of reusing stale ones.","source":"cvelist"}],"published":"2026-11-30T13:34:33.753Z","modified":"2026-11-30T14:19:10.720Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"156ec4731cb22b06c08e27debc1ef9f16f4bbb5e","fixed":"5c165afce641c5f5621ea61f46d5f72b8a81cdd0","status":"affected"},{"type":"git","introduced":"156ec4731cb22b06c08e27debc1ef9f16f4bbb5e","fixed":"3933c18b616acfb790e4dd3157c6aee6fe4d83ec","status":"affected"},{"type":"git","introduced":"156ec4731cb22b06c08e27debc1ef9f16f4bbb5e","fixed":"d7d78fc750c15b23864848c0f06b038e825c5584","status":"affected"},{"type":"git","introduced":"156ec4731cb22b06c08e27debc1ef9f16f4bbb5e","fixed":"c9ba86f5411730ebd333d94b9e1aa8f652dc743f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","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/5c165afce641c5f5621ea61f46d5f72b8a81cdd0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3933c18b616acfb790e4dd3157c6aee6fe4d83ec","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d7d78fc750c15b23864848c0f06b038e825c5584","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c9ba86f5411730ebd333d94b9e1aa8f652dc743f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139417","url":"https://www.cve.org/CVERecord?id=CVE-2026-139417","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:33.753Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139417","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139417","licence":"Public domain","modified":"2026-11-30T14:19:10.720Z"}],"updatedAt":"2026-11-30T14:33:10.876Z","epss":{"score":0.00201,"percentile":0.10471,"date":"2026-12-01T12:00:22.000Z"}}