CVE-2025-37831 cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate()

Medium 5.5 Published Updated

A missing null check in the Apple SoC cpufreq driver causes a kernel crash when querying rates for absent CPUs, leading to denial of service.

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-2025-37831?

CVE-2025-37831 is a medium-severity vulnerability in Linux kernel, published on 8 May 2025. 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:

cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate()

cpufreq_cpu_get_raw() can return NULL when the target CPU is not present in the policy->cpus mask. apple_soc_cpufreq_get_rate() does not check for this case, which results in a NULL pointer dereference.

Weakness: CWE-476

Which versions are affected by CVE-2025-37831?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-37831?

Apply the vendor's patch.

Is CVE-2025-37831 being exploited?

There is no known exploitation of CVE-2025-37831 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-37831, DEBIAN-CVE-2025-37831, GHSA-p285-vxm3-73m7, ROOT-OS-UBUNTU-2404-CVE-2025-37831, UBUNTU-CVE-2025-37831.

Is CVE-2025-37831 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free