All reports
Medium

kernel: crypto: algif_hash - fix double free in hash_accept

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-38079

Probability of exploitation in the next 30 days: 0.23%

FIRST EPSS · 2026-11-22

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.

A flaw was found in the Linux kernel. A local attacker can trigger a double-free condition in the cryptographic hash socket component (algif_hash) by causing an error condition when accepting connections with specific flags. This memory corruption flaw may allow an attacker to escalate privileges or cause a Denial of Service (DoS) by crashing the system.