{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "156ec4731cb22b06c08e27debc1ef9f16f4bbb5e"
            },
            {
              "fixed": "5c165afce641c5f5621ea61f46d5f72b8a81cdd0"
            },
            {
              "fixed": "3933c18b616acfb790e4dd3157c6aee6fe4d83ec"
            },
            {
              "fixed": "d7d78fc750c15b23864848c0f06b038e825c5584"
            },
            {
              "fixed": "c9ba86f5411730ebd333d94b9e1aa8f652dc743f"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139417.json"
  },
  "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.",
  "id": "CVE-2026-139417",
  "modified": "2026-11-30T14:45:36.637996599Z",
  "published": "2026-11-30T13:34:33.753Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3933c18b616acfb790e4dd3157c6aee6fe4d83ec"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5c165afce641c5f5621ea61f46d5f72b8a81cdd0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c9ba86f5411730ebd333d94b9e1aa8f652dc743f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d7d78fc750c15b23864848c0f06b038e825c5584"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139417.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139417"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse"
}