CVE-2025-38079
JSON

7.8high

crypto: algif_hash - fix double free in hash_accept

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelfrom 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.15NVD
debian debian_linux11.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-415

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: crypto: algif_hash - corrección de doble liberación en hash_accept. Si se ejecuta accept(2) en el socket tipo algif_hash con el indicador MSG_MORE activado y crypto_ahash_import falla, se libera sk2. Sin embargo, también se libera en af_alg_release, lo que genera un error de uso de slab después de la liberación.

References

https://git.kernel.org/stable/c/5bff312b59b3f2a54ff504e4f4e47272b64f3633patch
https://git.kernel.org/stable/c/bf7bba75b91539e93615f560893a599c1e1c98bfpatch
https://git.kernel.org/stable/c/c3059d58f79fdfb2201249c2741514e34562b547patch
https://git.kernel.org/stable/c/f0f3d09f53534ea385d55ced408f2b67059b16e4patch
https://git.kernel.org/stable/c/134daaba93193df9e988524b5cd2f52d15eb1993patch
https://git.kernel.org/stable/c/2f45a8d64fb4ed4830a4b3273834ecd6ca504896patch
https://git.kernel.org/stable/c/0346f4b742345d1c733c977f3a7aef5a6419a967patch
https://git.kernel.org/stable/c/b2df03ed4052e97126267e8c13ad4204ea6ba9b6patch
https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlthird-party-advisory
https://lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlthird-party-advisory
https://cert-portal.siemens.com/productcert/html/ssa-082556.html

Sources

SourceRecordLicence
CVE ListCVE-2025-38079 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-38079 changed 2026-07-30Public domain