CVE-2025-38079Published Jun 18, 2025 · Jun 18Updated Oct 28
crypto: algif_hash - fix double free in hash_accept
Linux
High7.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fe869cdb89c95d060c77eea20204d6c91f233b53 · < 2f45a8d64fb4ed4830a4b3273834ecd6ca504896| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's algif_hash socket handling can free the same object twice. This occurs when accept(2) is called with MSG_MORE set and crypto_ahash_import fails, leading to a slab use-after-free. The input does not specify authentication requirements or whether user interaction is needed.
Engineers running the Linux kernel should check their installations; affected versions were not provided.