CVE-2024-35940 pstore/zone: Add a null pointer check to the psz_kmsg_read
A missing null pointer check in the Linux kernel pstore zone driver can cause a crash when memory allocation fails, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-35940?
CVE-2024-35940 is a medium-severity vulnerability in Debian Debian Linux, published on 19 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-476
Which versions are affected by CVE-2024-35940?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2024-35940?
Apply the vendor's patch.
Is CVE-2024-35940 being exploited?
There is no known exploitation of CVE-2024-35940 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2024-35940, DEBIAN-CVE-2024-35940, GHSA-v86r-5x9g-5q8j, UBUNTU-CVE-2024-35940.