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

Published Updated

CVSS score

Not scored

No CVSS score published yet
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
See affected versions
Attack path
Not stated

What is CVE-2026-139417?

CVE-2026-139417 is a vulnerability in Linux, published on 30 Nov 2026.

Official 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.

Which versions are affected by CVE-2026-139417?

How do I fix CVE-2026-139417?

Upgrade to a fixed version.

Is CVE-2026-139417 being exploited?

There is no known exploitation of CVE-2026-139417 in the wild and no public exploit code.

Sources

Also known as AZL-117118, BELL-CVE-2026-139417, DEBIAN-CVE-2026-139417, GHSA-8hj7-xh8w-w6mf, UBUNTU-CVE-2026-139417.

Is CVE-2026-139417 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free