AZL-117118: CVE-2026-139417 affecting package kernel 6.6.161.1-1
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 amdpmcdev, which is reused on every bind. Its regbase, smuvirtaddr, stbvirtaddr and fchvirtaddr members are MMIO mappings created with devmioremap().
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 memcpyfromio()/ioread32() touches freed MMIO, causing use-after-unmap crash. Clear these pointers in amdpmcremove() so the next probe re-maps them instead of reusing stale ones.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel AMD PMC driver, clear the devm-managed MMIO mapping pointers in amd_pmc_remove() (including regbase, smu_virt_addr, stb_virt_addr, and fch_virt_addr) so the next probe remaps them.
Event History
Frequently Asked Questions
When can this issue be triggered?
The vulnerable path requires the AMD PMC driver to be unbound and then bound again. During the subsequent probe, stale MMIO pointers can be reused, leading to accesses to mappings that were removed.
What is the likely impact of successful triggering?
The described outcome is a use-after-unmap access to MMIO that can cause a system crash. The provided information does not describe privilege escalation, information disclosure, or remote exploitation.
What should be done if the package cannot be updated immediately?
Avoid unbinding and rebinding the affected AMD PMC driver, since that lifecycle sequence triggers stale pointer reuse. The data does not provide another mitigation or configuration workaround.