{"id":"CVE-2024-35940","aliases":["CVE-2024-35940"],"related":[],"kind":"vulnerability","state":"published","title":"pstore/zone: Add a null pointer check to the psz_kmsg_read","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: pstore/zone: agregue una verificación de puntero null a psz_kmsg_read kasprintf() devuelve un puntero a la memoria asignada dinámicamente que puede ser NULL en caso de falla. Asegúrese de que la asignación haya sido exitosa verificando la validez del puntero.","source":"nvd"}],"published":"2024-05-19T10:10:45.582Z","modified":"2026-10-15T01:17:54.413Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"d26c3321fe18dc74517dc1f518d584aa33b0a851","fixed":"98e2b97acb875d65bdfc75fc408e67975cef3041","status":"affected"},{"type":"git","introduced":"d26c3321fe18dc74517dc1f518d584aa33b0a851","fixed":"0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb","status":"affected"},{"type":"git","introduced":"d26c3321fe18dc74517dc1f518d584aa33b0a851","fixed":"635594cca59f9d7a8e96187600c34facb8bc0682","status":"affected"},{"type":"git","introduced":"d26c3321fe18dc74517dc1f518d584aa33b0a851","fixed":"ec7256887d072f98c42cdbef4dcc80ddf84c7a70","status":"affected"},{"type":"git","introduced":"d26c3321fe18dc74517dc1f518d584aa33b0a851","fixed":"6f9f2e498eae7897ba5d3e33908917f68ff4abcc","status":"affected"},{"type":"git","introduced":"d26c3321fe18dc74517dc1f518d584aa33b0a851","fixed":"98bc7e26e14fbb26a6abf97603d59532475e97f8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.215","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.155","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.86","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.27","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.6","lastAffected":"6.8.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.9","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.10.215"},{"status":"affected","introduced":"5.11","fixed":"5.15.155"},{"status":"affected","introduced":"5.16","fixed":"6.1.86"},{"status":"affected","introduced":"6.2","fixed":"6.6.27"},{"status":"affected","introduced":"6.7","fixed":"6.8.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/98e2b97acb875d65bdfc75fc408e67975cef3041","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/635594cca59f9d7a8e96187600c34facb8bc0682","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec7256887d072f98c42cdbef4dcc80ddf84c7a70","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6f9f2e498eae7897ba5d3e33908917f68ff4abcc","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98bc7e26e14fbb26a6abf97603d59532475e97f8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-20T15:01:33.845Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35940","url":"https://www.cve.org/CVERecord?id=CVE-2024-35940","licence":"CVE Terms of Use","modified":"2026-10-15T00:41:36.335Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35940","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35940","licence":"Public domain","modified":"2026-10-15T01:17:54.413Z"}],"updatedAt":"2026-11-25T22:58:40.614Z","epss":{"score":0.00212,"percentile":0.12231,"date":"2026-12-01T12:00:22.000Z"}}