CVE-2026-139417

Source
https://cve.org/CVERecord?id=CVE-2026-139417
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139417.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139417
Downstream
Published
2026-11-30T13:34:33Z
Modified
2026-11-30T15:02:28Z
Summary
platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139417.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
156ec4731cb22b06c08e27debc1ef9f16f4bbb5e
Fixed
5c165afce641c5f5621ea61f46d5f72b8a81cdd0
Fixed
3933c18b616acfb790e4dd3157c6aee6fe4d83ec
Fixed
d7d78fc750c15b23864848c0f06b038e825c5584
Fixed
c9ba86f5411730ebd333d94b9e1aa8f652dc743f

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139417.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139417.json"