CVE-2024-26975 powercap: intel_rapl: Fix a NULL pointer dereference
A NULL pointer dereference in the Linux kernel's Intel RAPL driver can cause a system crash when probing unsupported CPU models.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-26975?
CVE-2024-26975 is a medium-severity vulnerability in Linux kernel, published on 1 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
powercap: intel_rapl: Fix a NULL pointer dereference
A NULL pointer dereference is triggered when probing the MMIO RAPL driver on platforms with CPU ID not listed in intel_rapl_common CPU model list.
This is because the intel_rapl_common module still probes on such platforms even if 'defaults_msr' is not set after commit 1488ac990ac8 ("powercap: intel_rapl: Allow probing without CPUID match"). Thus the MMIO RAPL rp->priv->defaults is NULL when registering to RAPL framework.
Fix the problem by adding sanity check to ensure rp->priv->rapl_defaults is always valid.
Weakness: CWE-476
Which versions are affected by CVE-2024-26975?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-26975?
Apply the vendor's patch.
Is CVE-2024-26975 being exploited?
There is no known exploitation of CVE-2024-26975 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-26975, DEBIAN-CVE-2024-26975, GHSA-2jv6-v65m-qjx7, UBUNTU-CVE-2024-26975.