In the Linux kernel, the following vulnerability has been resolved:
pstore/zone: Add a null pointer check to the pszkmsgread
kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity.
[
{
"id": "CVE-2024-35940-122fe04c",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"318295244118302635050417158056142181170",
"111987717711847838196702393131635089986",
"279775114179139371001966654879998830742",
"196902803471167669400087953336100580836"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@98e2b97acb875d65bdfc75fc408e67975cef3041",
"target": {
"file": "fs/pstore/zone.c"
}
},
{
"id": "CVE-2024-35940-1a9b2cc5",
"signature_version": "v1",
"digest": {
"length": 833.0,
"function_hash": "239977869350301709829181650063169548532"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@635594cca59f9d7a8e96187600c34facb8bc0682",
"target": {
"file": "fs/pstore/zone.c",
"function": "psz_kmsg_read"
}
},
{
"id": "CVE-2024-35940-7b4d7868",
"signature_version": "v1",
"digest": {
"length": 833.0,
"function_hash": "239977869350301709829181650063169548532"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6f9f2e498eae7897ba5d3e33908917f68ff4abcc",
"target": {
"file": "fs/pstore/zone.c",
"function": "psz_kmsg_read"
}
},
{
"id": "CVE-2024-35940-94f5bb16",
"signature_version": "v1",
"digest": {
"length": 833.0,
"function_hash": "239977869350301709829181650063169548532"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@98e2b97acb875d65bdfc75fc408e67975cef3041",
"target": {
"file": "fs/pstore/zone.c",
"function": "psz_kmsg_read"
}
},
{
"id": "CVE-2024-35940-972a6f61",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"318295244118302635050417158056142181170",
"111987717711847838196702393131635089986",
"279775114179139371001966654879998830742",
"196902803471167669400087953336100580836"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@635594cca59f9d7a8e96187600c34facb8bc0682",
"target": {
"file": "fs/pstore/zone.c"
}
},
{
"id": "CVE-2024-35940-a6fdd55e",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"318295244118302635050417158056142181170",
"111987717711847838196702393131635089986",
"279775114179139371001966654879998830742",
"196902803471167669400087953336100580836"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6f9f2e498eae7897ba5d3e33908917f68ff4abcc",
"target": {
"file": "fs/pstore/zone.c"
}
},
{
"id": "CVE-2024-35940-d5b2c5fc",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"318295244118302635050417158056142181170",
"111987717711847838196702393131635089986",
"279775114179139371001966654879998830742",
"196902803471167669400087953336100580836"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb",
"target": {
"file": "fs/pstore/zone.c"
}
},
{
"id": "CVE-2024-35940-e10312f1",
"signature_version": "v1",
"digest": {
"length": 833.0,
"function_hash": "239977869350301709829181650063169548532"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb",
"target": {
"file": "fs/pstore/zone.c",
"function": "psz_kmsg_read"
}
}
]