{"id":"AZL-117118","summary":"CVE-2026-139417 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse\n\nThe driver stores its state in a single file-scope static struct\namd_pmc_dev, which is reused on every bind. Its regbase, smu_virt_addr,\nstb_virt_addr and fch_virt_addr members are MMIO mappings created with\ndevm_ioremap().\n\nOn unbind the driver core unmaps these mappings, but it does not clear\nthe pointers in the static struct. Since the struct is not freed, the\nmembers keep pointing at the now-unmapped addresses.\n\nOn the next bind, the probe path re-maps a region only when its pointer\nis still NULL, so the stale pointer is reused and the following\nmemcpy_fromio()/ioread32() touches freed MMIO, causing use-after-unmap\ncrash. Clear these pointers in amd_pmc_remove() so the next probe re-maps\nthem instead of reusing stale ones.","modified":"2026-12-01T14:17:41.465467046Z","published":"2026-11-30T14:19:10Z","upstream":["CVE-2026-139417"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139417"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-117118.json"}}],"schema_version":"1.9.2"}