# CVE-2026-139417

- Bağlantı: https://www.allsafe.com.tr/cve-2026-139417/
- Yayımlanma: 2026-11-30T17:19:10+03:00
- Yazar: Postmaster

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.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-139417)
