# CVE-2026-139417: platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:34:33.753Z
- Modified: 2026-11-30T14:19:10.720Z
- Assigned by: Linux

## Description

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

platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse

The driver stores its state in a single file-scope static struct
amd_pmc_dev, which is reused on every bind. Its regbase, smu_virt_addr,
stb_virt_addr and fch_virt_addr members are MMIO mappings created with
devm_ioremap().

On unbind the driver core unmaps these mappings, but it does not clear
the pointers in the static struct. Since the struct is not freed, the
members keep pointing at the now-unmapped addresses.

On the next bind, the probe path re-maps a region only when its pointer
is still NULL, so the stale pointer is reused and the following
memcpy_fromio()/ioread32() touches freed MMIO, causing use-after-unmap
crash. Clear these pointers in amd_pmc_remove() so the next probe re-maps
them instead of reusing stale ones.

(As written by CVE List.)

## Affected

- Linux Linux: from 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e before 5c165afce641c5f5621ea61f46d5f72b8a81cdd0; from 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e before 3933c18b616acfb790e4dd3157c6aee6fe4d83ec; from 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e before d7d78fc750c15b23864848c0f06b038e825c5584; from 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e before c9ba86f5411730ebd333d94b9e1aa8f652dc743f; 5.11 (not affected: before 5.11; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/5c165afce641c5f5621ea61f46d5f72b8a81cdd0>
- <https://git.kernel.org/stable/c/3933c18b616acfb790e4dd3157c6aee6fe4d83ec>
- <https://git.kernel.org/stable/c/d7d78fc750c15b23864848c0f06b038e825c5584>
- <https://git.kernel.org/stable/c/c9ba86f5411730ebd333d94b9e1aa8f652dc743f>

## Sources

- CVE List: [CVE-2026-139417](https://www.cve.org/CVERecord?id=CVE-2026-139417), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139417](https://nvd.nist.gov/vuln/detail/CVE-2026-139417), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139417 · Whole record: https://cve.day/CVE-2026-139417.json · Rebuilt by cve.day 2026-11-30T14:33:10.876Z
