CVE-2024-35940

published 19 May 2024 · updated 15 Oct 2026

pstore/zone: Add a null pointer check to the psz_kmsg_read

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb, Kernel 635594cca59f9d7a8e96187600c34facb8bc0682, Kernel 6f9f2e498eae7897ba5d3e33908917f68ff4abcc and 3 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.8, >=d26c3321fe18dc74517dc1f518d584aa33b0a851 <0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb, >=d26c3321fe18dc74517dc1f518d584aa33b0a851 <635594cca59f9d7a8e96187600c34facb8bc0682, >=d26c3321fe18dc74517dc1f518d584aa33b0a851 <6f9f2e498eae7897ba5d3e33908917f68ff4abcc, >=d26c3321fe18dc74517dc1f518d584aa33b0a851 <98bc7e26e14fbb26a6abf97603d59532475e97f8, >=d26c3321fe18dc74517dc1f518d584aa33b0a851 <98e2b97acb875d65bdfc75fc408e67975cef3041, >=d26c3321fe18dc74517dc1f518d584aa33b0a851 <ec7256887d072f98c42cdbef4dcc80ddf84c7a700ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb, 635594cca59f9d7a8e96187600c34facb8bc0682, 6f9f2e498eae7897ba5d3e33908917f68ff4abcc, 98bc7e26e14fbb26a6abf97603d59532475e97f8, 98e2b97acb875d65bdfc75fc408e67975cef3041, ec7256887d072f98c42cdbef4dcc80ddf84c7a70

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-35940 severity on Zeptric[![CVE-2024-35940](https://zeptric.io/badge/cve/CVE-2024-35940.svg)](https://zeptric.io/cve/CVE-2024-35940)