# CVE-2024-26824: crypto: algif_hash - Remove bogus SGL free on zero-length error path

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-04-17T09:43:50.485Z
- Modified: 2026-08-05T11:27:39.564Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

crypto: algif_hash - Remove bogus SGL free on zero-length error path

When a zero-length message is hashed by algif_hash, and an error
is triggered, it tries to free an SG list that was never allocated
in the first place.  Fix this by not freeing the SG list on the
zero-length error path.

(As written by CVE List.)

## Affected

- Linux Linux: from b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4 before 9c82920359b7c1eddaf72069bcfe0ffddf088cd0; from b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4 before 775f3c1882a493168e08fdb8cde0865c8f3a8a29; from b6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4 before 24c890dd712f6345e382256cae8c97abb0406b70; 6.5 (not affected: before 6.5; from 6.6.18 up to 6.6.*; from 6.7.6 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 6.5 before 6.6.18; from 6.7 before 6.7.6; 6.8

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/9c82920359b7c1eddaf72069bcfe0ffddf088cd0> (patch)
- <https://git.kernel.org/stable/c/775f3c1882a493168e08fdb8cde0865c8f3a8a29> (patch)
- <https://git.kernel.org/stable/c/24c890dd712f6345e382256cae8c97abb0406b70> (patch)

## Sources

- CVE List: [CVE-2024-26824](https://www.cve.org/CVERecord?id=CVE-2024-26824), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26824](https://nvd.nist.gov/vuln/detail/CVE-2024-26824), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26824 · Whole record: https://cve.day/CVE-2024-26824.json · Rebuilt by cve.day 2026-11-25T22:58:39.339Z
