CVE-2024-35940Published May 19, 2024 · May 19Updated Oct 28
pstore/zone: Add a null pointer check to the psz_kmsg_read
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d26c3321fe18dc74517dc1f518d584aa33b0a851 · < 98bc7e26e14fbb26a6abf97603d59532475e97f8| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's pstore/zone psz_kmsg_read function lacked a check for a failed memory allocation, which could result in a null pointer dereference. The input does not specify how an attacker could trigger it or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their installations; affected versions were not provided.