CVE-2024-38573·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: cppc_cpufreq: Fix possible null pointer dereference cppc_cpufreq_get_rate() and hisi_cppc_cpufreq_get_rate() can be called from different places with various parameters. So cpufreq_cpu_get() can return null as 'policy' in some circumstances. Fix this bug by adding null return check. Found by Linux Verification Center (linuxtesting.org) with SVACE.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.3
- Published
- 2024-06-19
Affected versions
From: 6.9
Until: 6.9.3
Fixed in: 6.9.3
How to fix this CVE
Update your Linux kernel to version 6.9.3 or later to resolve a null pointer dereference vulnerability in the CPPC CPU frequency scaling driver. This vulnerability can cause system denial of service when the CPU frequency driver attempts to access rate information without proper null checks. Ensure your system receives the kernel update through your distribution's package manager and reboot to apply the patch.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and compare against affected range 6.9 through 6.9.3
- Step 2: Verify CPPC cpufreq driver is enabled by running `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver` and confirming it shows 'cppc-cpufreq' or 'hisi_cppc_cpufreq'
- Step 3: Search kernel logs for null pointer dereference errors related to cppc_cpufreq with `dmesg | grep -i 'cppc\|null pointer'` or `sudo journalctl -u kernel | grep -i 'cppc\|null pointer'`
- Step 4: After patching, confirm the new kernel version with `uname -r` and verify it is 6.9.3 or later
FAQ
What is CVE-2024-38573?
CVE-2024-38573 is a null pointer dereference flaw in the Linux kernel's CPPC CPU frequency scaling driver that occurs when the driver attempts to retrieve CPU frequency information without validating that a required policy object exists, potentially leading to kernel crash and denial of service.
Is CVE-2024-38573 being actively exploited?
No, according to CISA's Known Exploited Vulnerabilities (KEV) catalog, CVE-2024-38573 is not currently being actively exploited in the wild, and no public exploit code has been released.
What versions of Kernel are affected by CVE-2024-38573?
Linux kernel versions 6.9 through 6.9.3 are affected by this vulnerability. The fix is available in kernel 6.9.3 and later versions.
How do I check if my server is vulnerable to CVE-2024-38573?
Run `uname -r` to determine your kernel version. If it shows 6.9.0, 6.9.1, or 6.9.2, your system is vulnerable. Additionally, confirm CPPC cpufreq is in use with `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver`.
Does Defensia detect CVE-2024-38573?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-38573 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/769c4f355b7962895205b86ad35617873feef9a5
- https://git.kernel.org/stable/c/9a185cc5a79ba408e1c73375706630662304f618
- https://git.kernel.org/stable/c/b18daa4ec727c0266de5bfc78e818d168cc4aedf
- https://git.kernel.org/stable/c/cf7de25878a1f4508c69dc9f6819c21ba177dbfe
- https://git.kernel.org/stable/c/dfec15222529d22b15e5b0d63572a9e39570cab4
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-38573. Free for 1 server.
Get started free