CVE-2026-139419: platform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id()
In the Linux kernel, the following vulnerability has been resolved:
platform/x86/intel: power-domains: Handle failed init in tpmigetlinuxdieid()
tpmiinit() returns early with -ENODEV on CPU models that are not in tpmicpuids, before domaindiemap is allocated. When the driver is built in, tpmigetlinuxdieid() remains callable after the failed init and dereferences the NULL domaindiemap.
This is reachable from user space: uncore-frequency-tpmi calls tpmigetlinuxdieid() from the show function of the world-readable dieid sysfs attribute. The attribute is created on multi-die packages for clusters with the core agent type, so reading it on such a CPU that is missing from tpmicpuids oopses.
Likewise, if cpuhpsetupstate() fails, the error path frees domaindiemap but leaves the pointer set, so a later call would read freed memory.
Return -ENODEV when the map was not allocated, and clear the pointer wherever it is freed.
tpmigetlinuxcpunumber(), tpmigetpunitcorenumber() and tpmigetpowerdomainid() read only the static per-CPU data and hash table, so they are safe after a failed init. tpmigetpowerdomainmask() has the same problem as this helper but no callers, so it is handled separately.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to the user-space crash path?
The described path requires a multi-die package with clusters using the core agent type, where the die_id sysfs attribute is created. It also requires a CPU model absent from tpmi_cpu_ids and the TPMI driver to be built in, so tpmi_get_linux_die_id() remains callable after TPMI initialization fails.
What does an attacker or local user need to do to trigger the issue?
A local user can read the world-readable die_id sysfs attribute exposed by uncore-frequency-tpmi. On an affected system, that read can cause a NULL domain_die_map dereference and an oops.
Is there another failure mode besides an unsupported CPU model?
Yes. If cpuhp_setup_state() fails, the error path frees domain_die_map without clearing its pointer; a later call can then read freed memory.
What can be checked to determine whether the exposed sysfs path is present?
Check whether uncore-frequency-tpmi exposes a world-readable die_id sysfs attribute. The described crash condition applies when that attribute exists on a multi-die, core-agent system whose CPU is not included in tpmi_cpu_ids.