CVE Database›CVE-2025-38079

CVE-2025-38079

kernel: crypto: algif_hash - fix double free in hash_accept

Loading…

Severity

Moderate

Red Hat Product Security

7

CVSS 3.1

Review impact separately from score.

Published · June 18, 2025

Updated · October 30, 2026

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.

Statement

This vulnerability is classified as having a Moderate severity for Red Hat Enterprise Linux because exploitation is restricted to local authenticated users who can create cryptographic user-space sockets and trigger specific error conditions during socket processing. An unprivileged local attacker could potentially cause a denial of service (system crash) or memory corruption through a double-free flaw in the AF_ALG hash interface. However, network-based attacks are not possible, and typical enterprise deployments do not expose or rely on user-space access to kernel cryptographic sockets.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

CWE-415 · Double Free