{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-26824","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-02-19T14:20:24.181Z","datePublished":"2024-04-17T09:43:50.485Z","dateUpdated":"2026-08-05T11:27:39.564Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T11:27:39.564Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: algif_hash - Remove bogus SGL free on zero-length error path\n\nWhen a zero-length message is hashed by algif_hash, and an error\nis triggered, it tries to free an SG list that was never allocated\nin the first place.  Fix this by not freeing the SG list on the\nzero-length error path."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerability is reached only through local syscalls on an AF_ALG socket (socket/bind/accept/sendmsg); there is no network-facing path to this code.\nAC:L - The error path is reliably forced by exhausting the socket's optmem so hash_alloc_result's sock_kmalloc fails, and the uninitialized sgt.sgl can be heap-groomed to a controlled non-NULL value; no race or condition outside attacker control is needed.\nPR:L - AF_ALG socket creation and bind perform no capability check, so any unprivileged local user can allocate a hash socket, mark it MSG_MORE, and accept() a child with uninitialized SGL.\nUI:N - The entire trigger sequence is performed by the attacker's own syscalls; no victim action is required.\nS:U - The corruption stays within the kernel's own security authority with no crossing of a VM, IOMMU, or sandbox boundary.\nC:H - Freeing an attacker-groomable uninitialized pointer and unpinning arbitrary pages yields heap corruption/UAF that can be leveraged to disclose kernel memory contents.\nI:H - The bogus free of a controllable pointer is an arbitrary-free primitive enabling heap manipulation and subsequent arbitrary write via UAF, allowing kernel state modification.\nA:H - Freeing/dereferencing an invalid or uninitialized pointer readily causes a kernel oops or panic, denying service."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/algif_hash.c"],"versions":[{"version":"b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4","lessThan":"9c82920359b7c1eddaf72069bcfe0ffddf088cd0","status":"affected","versionType":"git"},{"version":"b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4","lessThan":"775f3c1882a493168e08fdb8cde0865c8f3a8a29","status":"affected","versionType":"git"},{"version":"b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4","lessThan":"24c890dd712f6345e382256cae8c97abb0406b70","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/algif_hash.c"],"versions":[{"version":"6.5","status":"affected"},{"version":"0","lessThan":"6.5","status":"unaffected","versionType":"semver"},{"version":"6.6.18","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.7.6","lessThanOrEqual":"6.7.*","status":"unaffected","versionType":"semver"},{"version":"6.8","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.6.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.7.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.8"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/9c82920359b7c1eddaf72069bcfe0ffddf088cd0"},{"url":"https://git.kernel.org/stable/c/775f3c1882a493168e08fdb8cde0865c8f3a8a29"},{"url":"https://git.kernel.org/stable/c/24c890dd712f6345e382256cae8c97abb0406b70"}],"title":"crypto: algif_hash - Remove bogus SGL free on zero-length error path","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-02T00:14:13.533Z"},"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/9c82920359b7c1eddaf72069bcfe0ffddf088cd0","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/775f3c1882a493168e08fdb8cde0865c8f3a8a29","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/24c890dd712f6345e382256cae8c97abb0406b70","tags":["x_transferred"]}]},{"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-26824","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T15:49:04.153967Z"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-09-11T17:33:31.369Z"}}]}}