{"id":"CVE-2024-26824","state":"PUBLISHED","title":"crypto: algif_hash - Remove bogus SGL free on zero-length error path","description":"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.","publishedAt":"2024-04-17T09:43:50.485Z","updatedAt":"2026-08-05T11:27:39.564Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4","status":"affected","lessThan":"9c82920359b7c1eddaf72069bcfe0ffddf088cd0","versionType":"git"},{"version":"b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4","status":"affected","lessThan":"775f3c1882a493168e08fdb8cde0865c8f3a8a29","versionType":"git"},{"version":"b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4","status":"affected","lessThan":"24c890dd712f6345e382256cae8c97abb0406b70","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/algif_hash.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.6.18","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.6","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/algif_hash.c"]}],"references":["https://git.kernel.org/stable/c/9c82920359b7c1eddaf72069bcfe0ffddf088cd0","https://git.kernel.org/stable/c/775f3c1882a493168e08fdb8cde0865c8f3a8a29","https://git.kernel.org/stable/c/24c890dd712f6345e382256cae8c97abb0406b70"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/26xxx/CVE-2024-26824.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-26824","state":"PUBLISHED","datePublished":"2024-04-17T09:43:50.485Z","dateUpdated":"2026-08-05T11:27:39.564Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-19T14:20:24.181Z"},"containers":{"cna":{"title":"crypto: algif_hash - Remove bogus SGL free on zero-length error path","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4","status":"affected","lessThan":"9c82920359b7c1eddaf72069bcfe0ffddf088cd0","versionType":"git"},{"version":"b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4","status":"affected","lessThan":"775f3c1882a493168e08fdb8cde0865c8f3a8a29","versionType":"git"},{"version":"b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4","status":"affected","lessThan":"24c890dd712f6345e382256cae8c97abb0406b70","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/algif_hash.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.6.18","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.6","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/algif_hash.c"]}],"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"}],"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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:27:39.564Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"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"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:14:13.533Z"}},{"title":"CISA ADP Vulnrichment","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"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:33:31.369Z"}}]}}}