Linux Kernel Double Free Vulnerability in algif_hash Socket Type

Vulnerability

A double free vulnerability has been identified in the Linux kernel's crypto subsystem, specifically within the algif_hash socket type. When the accept function is called on an algif_hash socket with the MSG_MORE flag set, and the crypto_ahash_import function fails, the sk2 socket is freed. However, this socket is also freed in the af_alg_release function, leading to a slab-use-after-free error.

Impact

Exploitation of this vulnerability causes a use-after-free error, which can potentially be exploited to execute arbitrary code or cause a denial-of-service condition.

Added: Jun 18, 2025, 10:25 AM
Updated: Jun 18, 2025, 10:25 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.1
remediation
0.0
relevance
0.2
threat
3.2
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.