Security mailing lists by PureSourceCode

CVE-2026-139417

not scored yet

platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse

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.

Published
30 Nov 2026
Last modified
30 Nov 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e, < 5c165afce641c5f5621ea61f46d5f72b8a81cdd0; >= 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e, < 3933c18b616acfb790e4dd3157c6aee6fe4d83ec; >= 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e, < d7d78fc750c15b23864848c0f06b038e825c5584; >= 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e, < c9ba86f5411730ebd333d94b9e1aa8f652dc743f 5c165afce641c5f5621ea61f46d5f72b8a81cdd0, 3933c18b616acfb790e4dd3157c6aee6fe4d83ec, d7d78fc750c15b23864848c0f06b038e825c5584, c9ba86f5411730ebd333d94b9e1aa8f652dc743f
CVE List Linux Linux = 5.11

References

History

  • 30 Nov 2026 14:45 UTC · NVD: first stored (published 30 Nov 2026)
  • 30 Nov 2026 13:58 UTC · CVE List: first stored (published 30 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.