# CVE-2024-58081: clk: mmp2: call pm_genpd_init() only after genpd.name is set

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-03-06T16:13:44.176Z
- Modified: 2026-06-17T08:14:35.453Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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().

(As written by CVE List.)

## Affected

- Linux Linux: from 899f44531fe6cac4b024710fec647ecc127724b8 before eca01d5911fb34218d10a58d8d9534b758c8fd0a; from 899f44531fe6cac4b024710fec647ecc127724b8 before 763517124e27b07fa300b486d7d13c5d563a215e; from 899f44531fe6cac4b024710fec647ecc127724b8 before e24b15d4704dcb73920c3d18a6157abd18df08c1; 94a03c0400c9696735184c7d76630b818d0f5cca; from 6.11.10 before 6.12; 6.12 (not affected: before 6.12; from 6.12.14 up to 6.12.*; from 6.13.3 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.11.10 before 6.12.14; from 6.13 before 6.13.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/eca01d5911fb34218d10a58d8d9534b758c8fd0a> (patch)
- <https://git.kernel.org/stable/c/763517124e27b07fa300b486d7d13c5d563a215e> (patch)
- <https://git.kernel.org/stable/c/e24b15d4704dcb73920c3d18a6157abd18df08c1> (patch)

## Sources

- CVE List: [CVE-2024-58081](https://www.cve.org/CVERecord?id=CVE-2024-58081), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-58081](https://nvd.nist.gov/vuln/detail/CVE-2024-58081), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-58081 · Whole record: https://cve.day/CVE-2024-58081.json · Rebuilt by cve.day 2026-11-25T22:58:52.222Z
