CVE-2024-35940: pstore/zone: Add a null pointer check to the psz_kmsg_read
In the Linux kernel, the following vulnerability has been resolved:
pstore/zone: Add a null pointer check to the psz_kmsg_read
kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure. Ensure the allocation was successful
by checking the pointer validity.
Security readout for executives and security teams
Plain-English summary
CVE-2024-35940 is a Linux kernel null pointer issue in pstore/zone crash-log handling. A local low-privileged user could potentially trigger a kernel availability failure. It is not described as remotely exploitable, and the provided sources do not show active exploitation.
Executive priority
Treat as a moderate operational reliability issue. It should be included in regular kernel patch cycles, with higher priority for shared Linux hosts, managed appliances, and environments where untrusted local users or workloads exist.
Technical view
The bug is CWE-476 in psz_kmsg_read: kasprintf() can return NULL on allocation failure, and the kernel code did not validate that pointer before use. CVSS 3.1 is 5.5 with local attack vector, low complexity, low privileges, no user interaction, and high availability impact.
Likely exposure
Exposure is most relevant to Linux systems running affected kernel versions or downstream packages, especially multi-user servers, containers hosts, appliances, and industrial products that include vulnerable kernels. Remote-only services with no local code execution path have lower direct exposure.
Exploitation context
The source bundle reports no CISA KEV listing and gives no evidence of active exploitation. The CVSS vector requires local access with low privileges, so this is mainly a local denial-of-service concern rather than a remote compromise issue.
Researcher notes
Evidence supports a local availability impact caused by missing NULL validation after kasprintf(). The bundle does not provide exploit details, affected configuration prerequisites, or proof of active exploitation. Downstream exposure depends on kernel packaging and backports.
Mitigation direction
Update Linux kernels using vendor-supported packages or stable kernel fixes.
Track distro advisories, including Debian LTS, for backported fixed kernels.
Check Siemens guidance for affected industrial products and firmware availability.
Reduce unnecessary local shell or workload access on shared systems.
Prioritize systems where local users can run untrusted code.
Validation and detection
Inventory kernel versions across servers, images, appliances, and embedded systems.
Compare installed kernels against vendor fixed package or advisory status.
Confirm whether pstore/zone functionality is enabled or relevant in deployed kernels.
Review vendor advisories for downstream backport identifiers, not only upstream versions.
Verify patch deployment through normal vulnerability management evidence.
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.