{"id":"CVE-2026-139419","state":"PUBLISHED","title":"platform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id()","description":"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.","publishedAt":"2026-11-30T13:34:34.843Z","updatedAt":"2026-11-30T13:34:34.843Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e37be5d85c602e07c1e2930c2cc98ebd46f9ecf7","status":"affected","lessThan":"bd7b3773071ff56a38e9a94c34e23f413c07f61b","versionType":"git"},{"version":"e37be5d85c602e07c1e2930c2cc98ebd46f9ecf7","status":"affected","lessThan":"dac5e1ae5ea88dae3f0bfca9bd5a24a02bcb25d0","versionType":"git"},{"version":"e37be5d85c602e07c1e2930c2cc98ebd46f9ecf7","status":"affected","lessThan":"e7aa0a21a38afd3063fd9b4bf31025a882537d95","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/intel/tpmi_power_domains.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/intel/tpmi_power_domains.c"]}],"references":["https://git.kernel.org/stable/c/bd7b3773071ff56a38e9a94c34e23f413c07f61b","https://git.kernel.org/stable/c/dac5e1ae5ea88dae3f0bfca9bd5a24a02bcb25d0","https://git.kernel.org/stable/c/e7aa0a21a38afd3063fd9b4bf31025a882537d95"],"weaknesses":[],"ingestedAt":"2026-11-30T13:48:04.491Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139419.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139419","state":"PUBLISHED","datePublished":"2026-11-30T13:34:34.843Z","dateUpdated":"2026-11-30T13:34:34.843Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.932Z"},"containers":{"cna":{"title":"platform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e37be5d85c602e07c1e2930c2cc98ebd46f9ecf7","status":"affected","lessThan":"bd7b3773071ff56a38e9a94c34e23f413c07f61b","versionType":"git"},{"version":"e37be5d85c602e07c1e2930c2cc98ebd46f9ecf7","status":"affected","lessThan":"dac5e1ae5ea88dae3f0bfca9bd5a24a02bcb25d0","versionType":"git"},{"version":"e37be5d85c602e07c1e2930c2cc98ebd46f9ecf7","status":"affected","lessThan":"e7aa0a21a38afd3063fd9b4bf31025a882537d95","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/intel/tpmi_power_domains.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/intel/tpmi_power_domains.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/bd7b3773071ff56a38e9a94c34e23f413c07f61b"},{"url":"https://git.kernel.org/stable/c/dac5e1ae5ea88dae3f0bfca9bd5a24a02bcb25d0"},{"url":"https://git.kernel.org/stable/c/e7aa0a21a38afd3063fd9b4bf31025a882537d95"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:34.843Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}