CVE-2024-35940: Linux kernel · pstore/zone: Add a null pointer check to the psz_kmsg_read
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 5.15.0-1065.71~20.04.1 : update Linux kernel when convenient.
Data as of 12 Nov 2026, 19:04 UTC
- Patch
- Available – fixed in 5.15.0-1065.71~20.04.1, 5.15.0-1068.77~20.04.1, 5.15.0-1065.73~20.04.1 +45
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 12 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-6893-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6898-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6898-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6898-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6898-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-6917-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6919-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6918-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6927-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7019-1 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gkepkg:deb/ubuntu/linux-gke?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-ibmpkg:deb/ubuntu/linux-ibm?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-35940 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-35940 (opens in a new tab)
- git.kernel.org/linus/98bc7e26e14fbb26a6abf97603d59532475e97f8 (opens in a new tab)
- git.kernel.org/stable/c/98e2b97acb875d65bdfc75fc408e67975cef3041 (opens in a new tab)
- git.kernel.org/stable/c/0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb (opens in a new tab)
- git.kernel.org/stable/c/635594cca59f9d7a8e96187600c34facb8bc0682 (opens in a new tab)
- git.kernel.org/stable/c/ec7256887d072f98c42cdbef4dcc80ddf84c7a70 (opens in a new tab)
- git.kernel.org/stable/c/6f9f2e498eae7897ba5d3e33908917f68ff4abcc (opens in a new tab)
- git.kernel.org/stable/c/98bc7e26e14fbb26a6abf97603d59532475e97f8 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6898-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6898-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6898-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6898-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-6917-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6919-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6918-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6927-1 (opens in a new tab)