CVE-2024-58065: clk: mmp: pxa1908-apbc: Fix NULL vs IS_ERR() check
In the Linux kernel, the following vulnerability has been resolved:
clk: mmp: pxa1908-apbc: Fix NULL vs IS_ERR() check
The devm_kzalloc() function returns NULL on error, not error pointers.
Fix the check.
Security readout for executives and security teams
Plain-English summary
CVE-2024-58065 is a Linux kernel availability bug in a Marvell/PXA1908 clock driver. A memory allocation failure can be checked incorrectly, potentially leading to a NULL pointer dereference and a crash. The reported impact is denial of service, not data theft or code execution.
Executive priority
Treat as a routine but real availability fix. It is not currently supported as internet-exploited or confidentiality-impacting, but kernel crashes can affect service reliability where affected builds are deployed.
Technical view
The vulnerable code path is in clk: mmp: pxa1908-apbc. devm_kzalloc() returns NULL on allocation failure, but the code checked for error pointers with IS_ERR(). The CVSS vector is local, low complexity, low privileges, no user interaction, and high availability impact.
Likely exposure
Exposure appears limited to Linux kernels containing the affected pxa1908-apbc clock driver code and versions identified in the CVE bundle. Distribution package exposure cannot be confirmed from the provided sources alone, so teams should map their kernel builds through vendor advisories.
Exploitation context
The CVE is not listed as KEV, and the supplied sources do not report active exploitation. The CVSS vector indicates local, low-privileged access is required. Available evidence supports a denial-of-service concern rather than remote compromise.
Researcher notes
The key issue is a NULL versus ERR_PTR API contract mismatch around devm_kzalloc(). Source evidence is concise and does not describe reachable call paths, hardware dependency, or distro backports; avoid broad exposure claims without build-specific verification.
Mitigation direction
Update affected Linux kernels to builds containing the referenced stable fixes.
Check distribution advisories for exact fixed package versions.
Prioritize shared, multi-user, or locally accessible systems first.
Restrict unnecessary local user access while patching is pending.
Validation and detection
Inventory Linux kernel versions across managed systems.
Identify whether affected kernel branches are deployed.
Confirm vendor packages include the referenced stable commits.
Run normal regression testing after kernel updates.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.