Junglewise Threat Intelligence

CVE-2025-38079: Linux Kernel double free in crypto algif_hash

CVE-2025-38079 · Severity: high · CVSS 7.8 · Published 2025-06-18

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's cryptographic hashing interface could allow a local user to crash the system or potentially execute unauthorized code. The issue occurs when the system incorrectly handles memory during certain network socket operations, leading to a 'double free' error. This impacts the stability and security of the operating system, potentially allowing an attacker to gain elevated privileges.

Technical details

A double free vulnerability exists in the 'hash_accept' function within 'crypto/algif_hash.c' of the Linux kernel. When the accept(2) system call is invoked on an 'algif_hash' socket with the MSG_MORE flag set, a failure in 'crypto_ahash_import' triggers an explicit free of the socket object (sk2). However, the same object is subsequently freed again during 'af_alg_release', resulting in a slab-use-after-free condition. This local vulnerability requires no user interaction and can be exploited by an attacker with low privileges to compromise kernel memory integrity. Patches have been released across multiple stable kernel branches.

Affected products

  • Linux Linux Kernel 2.6.38 to 5.4.294, 5.5 to 5.10.238, 5.11 to 5.15.185, 5.16 to 6.1.141, 6.2 to 6.6.93, 6.7 to 6.12.31, 6.13 to 6.14.9, 6.15-rc1 to 6.15-rc7

Timeline

  • 2025-05-18: other: Vulnerability fixed in upstream kernel commits
  • 2025-06-18: disclosed: CVE published

References

Related threats