# CVE-2024-58081: clk: mmp2: call pm\_genpd\_init() only after genpd.name is set

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2025-03-06T16:13:44.176Z
- **Modified:** 2026-06-17T08:14:35.453Z

## Who should check

- Anyone running Linux \>= 899f44531fe6cac4b024710fec647ecc127724b8, \< eca01d5911fb34218d10a58d8d9534b758c8fd0a; \>= 899f44531fe6cac4b024710fec647ecc127724b8, \< 763517124e27b07fa300b486d7d13c5d563a215e; \>= 899f44531fe6cac4b024710fec647ecc127724b8, \< e24b15d4704dcb73920c3d18a6157abd18df08c1; 94a03c0400c9696735184c7d76630b818d0f5cca; \>= 6.11.10, \< 6.12
- Anyone running Linux 6.12

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

## Affected and fixed versions

- Linux: \>= 899f44531fe6cac4b024710fec647ecc127724b8, \< eca01d5911fb34218d10a58d8d9534b758c8fd0a; \>= 899f44531fe6cac4b024710fec647ecc127724b8, \< 763517124e27b07fa300b486d7d13c5d563a215e; \>= 899f44531fe6cac4b024710fec647ecc127724b8, \< e24b15d4704dcb73920c3d18a6157abd18df08c1; 94a03c0400c9696735184c7d76630b818d0f5cca; \>= 6.11.10, \< 6.12 (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 6.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-58081. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-58081.md
Affected: Linux >= 899f44531fe6cac4b024710fec647ecc127724b8, < eca01d5911fb34218d10a58d8d9534b758c8fd0a; >= 899f44531fe6cac4b024710fec647ecc127724b8, < 763517124e27b07fa300b486d7d13c5d563a215e; >= 899f44531fe6cac4b024710fec647ecc127724b8, < e24b15d4704dcb73920c3d18a6157abd18df08c1; 94a03c0400c9696735184c7d76…
Fixed in: Linux 763517124e27b07fa300b486d7d13c5d563a215e, Linux 6.12

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-58081 being exploited?

There is no confirmed exploitation: CVE-2024-58081 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-58081?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-58081?

Linux \>= 899f44531fe6cac4b024710fec647ecc127724b8, \< eca01d5911fb34218d10a58d8d9534b758c8fd0a; \>= 899f44531fe6cac4b024710fec647ecc127724b8, \< 763517124e27b07fa300b486d7d13c5d563a215e; \>= 899f44531fe6cac4b024710fec647ecc127724b8, \< e24b15d4704dcb73920c3d18a6157abd18df08c1; 94a03c0400c9696735184c7d76630b818d0f5cca; \>= 6.11.10, \< 6.12; Linux 6.12.

### Is there a fix for CVE-2024-58081?

Yes. Fixed in Linux 763517124e27b07fa300b486d7d13c5d563a215e, Linux 6.12. Upgrade Linux to 6.12 or later.

### How do I check if I'm affected by CVE-2024-58081?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-58081>

HTML: <https://flawdb.com/CVE-2024-58081> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-58081>
