platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse
Summary
| CVE | CVE-2026-139417 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-30 14:19:10 UTC |
| Updated | 2026-11-30 14:19:10 UTC |
| 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. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e 5c165afce641c5f5621ea61f46d5f72b8a81cdd0 git |
Not specified |
| CNA |
Linux |
Linux |
affected 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e 3933c18b616acfb790e4dd3157c6aee6fe4d83ec git |
Not specified |
| CNA |
Linux |
Linux |
affected 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e d7d78fc750c15b23864848c0f06b038e825c5584 git |
Not specified |
| CNA |
Linux |
Linux |
affected 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e c9ba86f5411730ebd333d94b9e1aa8f652dc743f git |
Not specified |
| CNA |
Linux |
Linux |
affected 5.11 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.11 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.119 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.65 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.6 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/d7d78fc750c15b23864848c0f06b038e825c5584 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/c9ba86f5411730ebd333d94b9e1aa8f652dc743f |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/5c165afce641c5f5621ea61f46d5f72b8a81cdd0 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/3933c18b616acfb790e4dd3157c6aee6fe4d83ec |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.