CVE Catalog

CVE-2024-35940

MediumCVSS 5.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.21%

11th percentile - higher than 11% of all known CVEs

Summary

In the Linux kernel, the psz_kmsg_read function in the pstore/zone module lacked a check for the pointer returned by kasprintf(). On allocation failure the function could return NULL, leading to a bug. A pointer validity check was added.

Risk Assessment

The flaw may cause a kernel panic or system instability when memory allocation fails. It primarily affects system stability and availability.

Recommendation

Update the Linux kernel to a version containing the fix for this CVE. If updating is not possible, consider restricting access to the pstore mechanism.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS