{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-35940","id":"CVE-2024-35940","title":"pstore/zone: Add a null pointer check to the psz_kmsg_read","description":"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.","descriptionLong":"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.","published":"2024-05-19T10:10:45.582Z","updated":"2026-10-28T02:31:10.745267930Z","reserved":"2024-05-17T13:50:33.131Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d26c3321fe18dc74517dc1f518d584aa33b0a851","lessThan":"98e2b97acb875d65bdfc75fc408e67975cef3041","status":"affected","versionType":"git"},{"version":"d26c3321fe18dc74517dc1f518d584aa33b0a851","lessThan":"0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb","status":"affected","versionType":"git"},{"version":"d26c3321fe18dc74517dc1f518d584aa33b0a851","lessThan":"635594cca59f9d7a8e96187600c34facb8bc0682","status":"affected","versionType":"git"},{"version":"d26c3321fe18dc74517dc1f518d584aa33b0a851","lessThan":"ec7256887d072f98c42cdbef4dcc80ddf84c7a70","status":"affected","versionType":"git"},{"version":"d26c3321fe18dc74517dc1f518d584aa33b0a851","lessThan":"6f9f2e498eae7897ba5d3e33908917f68ff4abcc","status":"affected","versionType":"git"},{"version":"d26c3321fe18dc74517dc1f518d584aa33b0a851","lessThan":"98bc7e26e14fbb26a6abf97603d59532475e97f8","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","lessThan":"5.8","status":"unaffected","versionType":"semver"},{"version":"5.10.215","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.155","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.86","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.27","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.8.6","lessThanOrEqual":"6.8.*","status":"unaffected","versionType":"semver"},{"version":"6.9","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/98e2b97acb875d65bdfc75fc408e67975cef3041","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/635594cca59f9d7a8e96187600c34facb8bc0682","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/ec7256887d072f98c42cdbef4dcc80ddf84c7a70","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/6f9f2e498eae7897ba5d3e33908917f68ff4abcc","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/98bc7e26e14fbb26a6abf97603d59532475e97f8","tags":["x_transferred","Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred","Mailing List","Third Party Advisory","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35940.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35940","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00212,"epssPercentile":0.11628,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-35940","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35940","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-35940","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-35940","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}