{"id":"CVE-2024-35940","summary":"pstore/zone: Add a null pointer check to the psz_kmsg_read","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npstore/zone: Add a null pointer check to the psz_kmsg_read\n\nkasprintf() returns a pointer to dynamically allocated memory\nwhich can be NULL upon failure. Ensure the allocation was successful\nby checking the pointer validity.","modified":"2026-04-02T11:53:11.335052Z","published":"2024-05-19T10:10:45.582Z","related":["SUSE-SU-2024:2008-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2135-1","SUSE-SU-2024:2190-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20249-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35940.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/635594cca59f9d7a8e96187600c34facb8bc0682"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6f9f2e498eae7897ba5d3e33908917f68ff4abcc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/98bc7e26e14fbb26a6abf97603d59532475e97f8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/98e2b97acb875d65bdfc75fc408e67975cef3041"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ec7256887d072f98c42cdbef4dcc80ddf84c7a70"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35940.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35940"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d26c3321fe18dc74517dc1f518d584aa33b0a851"},{"fixed":"98e2b97acb875d65bdfc75fc408e67975cef3041"},{"fixed":"0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb"},{"fixed":"635594cca59f9d7a8e96187600c34facb8bc0682"},{"fixed":"ec7256887d072f98c42cdbef4dcc80ddf84c7a70"},{"fixed":"6f9f2e498eae7897ba5d3e33908917f68ff4abcc"},{"fixed":"98bc7e26e14fbb26a6abf97603d59532475e97f8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35940.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}