CVE-2024-58022: mailbox: th1520: Fix a NULL vs IS_ERR() bug
In the Linux kernel, the following vulnerability has been resolved:
mailbox: th1520: Fix a NULL vs IS_ERR() bug
The devm_ioremap() function doesn't return error pointers, it returns
NULL. Update the error checking to match.
Security readout for executives and security teams
Plain-English summary
CVE-2024-58022 is a Linux kernel availability bug in the TH1520 mailbox driver. A failed memory mapping can be checked incorrectly, leading to a NULL pointer condition and potential crash. It is rated medium because impact is availability-only and requires local access with low privileges.
Executive priority
Treat this as a moderate patching item, not an emergency. Prioritize embedded or specialized Linux environments using TH1520-related kernel support, especially where local users or workloads are untrusted.
Technical view
The TH1520 mailbox driver used IS_ERR() after devm_ioremap(), but that function returns NULL on failure, not an error pointer. The fix changes the error handling to match the API contract. CVSS 3.1 is 5.5: local attack vector, low complexity, low privileges, no user interaction, high availability impact.
Likely exposure
Exposure appears limited to Linux systems running affected kernels where the TH1520 mailbox driver is present or reachable. The bundle identifies Linux as affected and does not name downstream distributions, appliances, or cloud services.
Exploitation context
The CVE is not listed in KEV, and the supplied sources do not claim active exploitation or provide exploit evidence. The CVSS vector indicates local, low-privilege exploitation with availability impact only.
Researcher notes
Evidence supports a narrow NULL pointer dereference class issue in kernel driver error handling. The source bundle does not identify exploit maturity, practical trigger conditions, downstream affected packages, or workarounds beyond the upstream fixes.
Mitigation direction
Apply kernel updates or backports containing the referenced stable fixes.
Check vendor or distribution advisories for package-specific remediation status.
Prioritize systems where the TH1520 mailbox driver is enabled or used.
If no update is available, follow vendor guidance for compensating controls.
Validation and detection
Confirm the running kernel or source tree includes the referenced fix commits.
Inventory whether the TH1520 mailbox driver is built, loaded, or required.
Verify distribution advisories map CVE-2024-58022 to installed kernel packages.
After updating, confirm normal boot and mailbox-dependent functionality.
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.