{"id":"CVE-2026-139419","aliases":["CVE-2026-139419"],"related":[],"kind":"vulnerability","state":"published","title":"platform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id()\n\ntpmi_init() returns early with -ENODEV on CPU models that are not in\ntpmi_cpu_ids, before domain_die_map is allocated. When the driver is\nbuilt in, tpmi_get_linux_die_id() remains callable after the failed\ninit and dereferences the NULL domain_die_map.\n\nThis is reachable from user space: uncore-frequency-tpmi calls\ntpmi_get_linux_die_id() from the show function of the world-readable\ndie_id sysfs attribute. The attribute is created on multi-die packages\nfor clusters with the core agent type, so reading it on such a CPU\nthat is missing from tpmi_cpu_ids oopses.\n\nLikewise, if cpuhp_setup_state() fails, the error path frees\ndomain_die_map but leaves the pointer set, so a later call would read\nfreed memory.\n\nReturn -ENODEV when the map was not allocated, and clear the pointer\nwherever it is freed.\n\ntpmi_get_linux_cpu_number(), tpmi_get_punit_core_number() and\ntpmi_get_power_domain_id() read only the static per-CPU data and hash\ntable, so they are safe after a failed init. tpmi_get_power_domain_mask()\nhas the same problem as this helper but no callers, so it is handled\nseparately.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id()\n\ntpmi_init() returns early with -ENODEV on CPU models that are not in\ntpmi_cpu_ids, before domain_die_map is allocated. When the driver is\nbuilt in, tpmi_get_linux_die_id() remains callable after the failed\ninit and dereferences the NULL domain_die_map.\n\nThis is reachable from user space: uncore-frequency-tpmi calls\ntpmi_get_linux_die_id() from the show function of the world-readable\ndie_id sysfs attribute. The attribute is created on multi-die packages\nfor clusters with the core agent type, so reading it on such a CPU\nthat is missing from tpmi_cpu_ids oopses.\n\nLikewise, if cpuhp_setup_state() fails, the error path frees\ndomain_die_map but leaves the pointer set, so a later call would read\nfreed memory.\n\nReturn -ENODEV when the map was not allocated, and clear the pointer\nwherever it is freed.\n\ntpmi_get_linux_cpu_number(), tpmi_get_punit_core_number() and\ntpmi_get_power_domain_id() read only the static per-CPU data and hash\ntable, so they are safe after a failed init. tpmi_get_power_domain_mask()\nhas the same problem as this helper but no callers, so it is handled\nseparately.","source":"cvelist"}],"published":"2026-11-30T13:34:34.843Z","modified":"2026-11-30T14:19:11.007Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e37be5d85c602e07c1e2930c2cc98ebd46f9ecf7","fixed":"bd7b3773071ff56a38e9a94c34e23f413c07f61b","status":"affected"},{"type":"git","introduced":"e37be5d85c602e07c1e2930c2cc98ebd46f9ecf7","fixed":"dac5e1ae5ea88dae3f0bfca9bd5a24a02bcb25d0","status":"affected"},{"type":"git","introduced":"e37be5d85c602e07c1e2930c2cc98ebd46f9ecf7","fixed":"e7aa0a21a38afd3063fd9b4bf31025a882537d95","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bd7b3773071ff56a38e9a94c34e23f413c07f61b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dac5e1ae5ea88dae3f0bfca9bd5a24a02bcb25d0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e7aa0a21a38afd3063fd9b4bf31025a882537d95","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139419","url":"https://www.cve.org/CVERecord?id=CVE-2026-139419","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:34.843Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139419","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139419","licence":"Public domain","modified":"2026-11-30T14:19:11.007Z"}],"updatedAt":"2026-11-30T14:33:07.373Z","epss":{"score":0.00198,"percentile":0.10126,"date":"2026-12-01T12:00:22.000Z"}}