CVE-2026-139419

platform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id()

Published Nov 30, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

platform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id()

tpmi_init() returns early with -ENODEV on CPU models that are not in
tpmi_cpu_ids, before domain_die_map is allocated. When the driver is
built in, tpmi_get_linux_die_id() remains callable after the failed
init and dereferences the NULL domain_die_map.

This is reachable from user space: uncore-frequency-tpmi calls
tpmi_get_linux_die_id() from the show function of the world-readable
die_id 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 tpmi_cpu_ids oopses.

Likewise, if cpuhp_setup_state() fails, the error path frees
domain_die_map 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.

tpmi_get_linux_cpu_number(), tpmi_get_punit_core_number() and
tpmi_get_power_domain_id() read only the static per-CPU data and hash
table, so they are safe after a failed init. tpmi_get_power_domain_mask()
has the same problem as this helper but no callers, so it is handled
separately.

Analysis

AI-generated

Technical impact

The vulnerability occurs when the platform's TPM initialization routine exits with an error before allocating the domain_die_map structure. Subsequent calls to a publicly exposed sysfs attribute dereference this uninitialized pointer, causing the kernel to oops. This results in a system crash or reboot, effectively providing a denial‑of‑service condition.

Affected Systems

The fault path is triggered via the world‑readable die_id sysfs file created for multi‑die Intel CPUs. Any user with read access to that attribute can exercise the bug. The issue is present in the Linux kernel on x86 platforms with the TPMS driver built in, regardless of the CPU model. No specific kernel version is listed, so all kernels that compile the tpmi drivers before the patch are potentially affected.

Risk and Exploitability

The bug is a classic NULL pointer dereference leading to a kernel panic. No CVSS score is provided. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Because the exploit is local and does not require elevated privileges, an unprivileged user can trigger a DoS. As no public exploit is documented, the likelihood of a targeted attack remains low, but the high impact of a crash warrants immediate remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version where tpmi_get_linux_die_id() performs a NULL check and clears the pointer when domain_die_map is freed.
  • If an updated kernel is not available, rebuild your kernel with TPMS support disabled (CONFIG_TPMS=y set to n) and recompile; this removes the vulnerable code path.
  • As a temporary measure, change the permissions of the /sys/.../die_id sysfs file to root‑only (chmod 0 /sys/.../die_id) to prevent ordinary users from reading it and triggering the fault.

Generated by OpenCVE AI on December 1, 2026 at 04:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: platform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id() tpmi_init() returns early with -ENODEV on CPU models that are not in tpmi_cpu_ids, before domain_die_map is allocated. When the driver is built in, tpmi_get_linux_die_id() remains callable after the failed init and dereferences the NULL domain_die_map. This is reachable from user space: uncore-frequency-tpmi calls tpmi_get_linux_die_id() from the show function of the world-readable die_id 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 tpmi_cpu_ids oopses. Likewise, if cpuhp_setup_state() fails, the error path frees domain_die_map 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. tpmi_get_linux_cpu_number(), tpmi_get_punit_core_number() and tpmi_get_power_domain_id() read only the static per-CPU data and hash table, so they are safe after a failed init. tpmi_get_power_domain_mask() has the same problem as this helper but no callers, so it is handled separately.
Title platform/x86/intel: power-domains: Handle failed init in tpmi_get_linux_die_id()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM