# CVE-2025-38079: crypto: algif_hash - fix double free in hash_accept

- 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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-06-18T09:33:53.251Z
- Modified: 2026-10-15T01:06:29.165Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

crypto: algif_hash - fix double free in hash_accept

If accept(2) is called on socket type algif_hash with
MSG_MORE flag set and crypto_ahash_import fails,
sk2 is freed. However, it is also freed in af_alg_release,
leading to slab-use-after-free error.

(As written by CVE List.)

## Affected

- Linux Linux: from fe869cdb89c95d060c77eea20204d6c91f233b53 before 5bff312b59b3f2a54ff504e4f4e47272b64f3633; from fe869cdb89c95d060c77eea20204d6c91f233b53 before bf7bba75b91539e93615f560893a599c1e1c98bf; from fe869cdb89c95d060c77eea20204d6c91f233b53 before c3059d58f79fdfb2201249c2741514e34562b547; from fe869cdb89c95d060c77eea20204d6c91f233b53 before f0f3d09f53534ea385d55ced408f2b67059b16e4; from fe869cdb89c95d060c77eea20204d6c91f233b53 before 134daaba93193df9e988524b5cd2f52d15eb1993; from fe869cdb89c95d060c77eea20204d6c91f233b53 before 2f45a8d64fb4ed4830a4b3273834ecd6ca504896; from fe869cdb89c95d060c77eea20204d6c91f233b53 before 0346f4b742345d1c733c977f3a7aef5a6419a967; from fe869cdb89c95d060c77eea20204d6c91f233b53 before b2df03ed4052e97126267e8c13ad4204ea6ba9b6; 2.6.38 (not affected: before 2.6.38; from 5.4.294 up to 5.4.*; from 5.10.238 up to 5.10.*; from 5.15.185 up to 5.15.*; from 6.1.141 up to 6.1.*; from 6.6.93 up to 6.6.*; from 6.12.31 up to 6.12.*; from 6.14.9 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 2.6.38 before 5.4.294; from 5.5 before 5.10.238; from 5.11 before 5.15.185; from 5.16 before 6.1.141; from 6.2 before 6.6.93; from 6.7 before 6.12.31; from 6.13 before 6.14.9; 6.15
- debian debian_linux: 11.0

## 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 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/5bff312b59b3f2a54ff504e4f4e47272b64f3633> (patch)
- <https://git.kernel.org/stable/c/bf7bba75b91539e93615f560893a599c1e1c98bf> (patch)
- <https://git.kernel.org/stable/c/c3059d58f79fdfb2201249c2741514e34562b547> (patch)
- <https://git.kernel.org/stable/c/f0f3d09f53534ea385d55ced408f2b67059b16e4> (patch)
- <https://git.kernel.org/stable/c/134daaba93193df9e988524b5cd2f52d15eb1993> (patch)
- <https://git.kernel.org/stable/c/2f45a8d64fb4ed4830a4b3273834ecd6ca504896> (patch)
- <https://git.kernel.org/stable/c/0346f4b742345d1c733c977f3a7aef5a6419a967> (patch)
- <https://git.kernel.org/stable/c/b2df03ed4052e97126267e8c13ad4204ea6ba9b6> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Sources

- CVE List: [CVE-2025-38079](https://www.cve.org/CVERecord?id=CVE-2025-38079), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38079](https://nvd.nist.gov/vuln/detail/CVE-2025-38079), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-38079 · Whole record: https://cve.day/CVE-2025-38079.json · Rebuilt by cve.day 2026-11-25T22:58:59.375Z
