CVE-2024-58081·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: clk: mmp2: call pm_genpd_init() only after genpd.name is set Setting the genpd's struct device's name with dev_set_name() is happening within pm_genpd_init(). If it remains NULL, things can blow up later, such as when crafting the devfs hierarchy for the power domain: Unable to handle kernel NULL pointer dereference at virtual address 00000000 when read ... Call trace: strlen from start_creating+0x90/0x138 start_creating from debugfs_create_dir+0x20/0x178 debugfs_create_dir from genpd_debug_add.part.0+0x4c/0x144 genpd_debug_add.part.0 from genpd_debug_init+0x74/0x90 genpd_debug_init from do_one_initcall+0x5c/0x244 do_one_initcall from kernel_init_freeable+0x19c/0x1f4 kernel_init_freeable from kernel_init+0x1c/0x12c kernel_init from ret_from_fork+0x14/0x28 Bisecting tracks this crash back to commit 899f44531fe6 ("pmdomain: core: Add GENPD_FLAG_DEV_NAME_FW flag"), which exchanges use of genpd->name with dev_name(&genpd->dev) in genpd_debug_add.part().
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.13.3
- Published
- 2025-03-06
Affected versions
From: 6.13
Until: 6.13.3
Fixed in: 6.13.3
How to fix this CVE
Update your Linux kernel to version 6.13.3 or later to resolve a critical NULL pointer dereference in the MMP2 clock driver's power domain initialization. The vulnerability occurs when the generic power domain structure is initialized before its device name is properly set, causing kernel panics during debugfs operations. Apply this patch immediately to systems running kernel versions 6.13 through 6.13.2.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version with: uname -r — compare against the affected range (6.13.0 to 6.13.2)
- Verify if the MMP2 clock driver is compiled: grep -i mmp2 /boot/config-$(uname -r) — look for CONFIG_CLK_MMP2=y or =m
- Search kernel logs for the crash signature: sudo journalctl -b | grep -i 'unable to handle kernel NULL pointer' or dmesg | grep -i 'genpd_debug'
- Confirm the patch is applied by checking: cat /proc/version — version should show 6.13.3 or later, or use grep 'e24b15d4704dcb73' /boot/System.map-$(uname -r) to verify commit presence
FAQ
What is CVE-2024-58081?
CVE-2024-58081 is a kernel vulnerability in the MMP2 clock framework where the generic power domain device structure is initialized before its name is set, leading to NULL pointer dereferences when the kernel attempts to create debugfs entries for the power domain hierarchy.
Is CVE-2024-58081 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, it can cause denial of service through kernel panic if triggered.
What versions of Kernel are affected by CVE-2024-58081?
Linux kernel versions 6.13.0 through 6.13.2 are affected. The vulnerability was fixed in kernel 6.13.3.
How do I check if my server is vulnerable to CVE-2024-58081?
Run uname -r to check your kernel version. If it reports 6.13.0, 6.13.1, or 6.13.2, your system is vulnerable. Additionally, verify CONFIG_CLK_MMP2 is enabled with grep CLK_MMP2 /boot/config-$(uname -r).
Does Defensia detect CVE-2024-58081?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server and is running a vulnerable version, CVE-2024-58081 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-58081. Free for 1 server.
Get started free