CVE-2025-38079: crypto: algif_hash - fix double free in hash_accept
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.
Security readout for executives and security teams
Plain-English summary
A local, low-privileged user can trigger faulty Linux kernel cryptographic-socket cleanup, causing the same object to be freed twice. The resulting kernel memory corruption could compromise system confidentiality, integrity, or availability. Network-only attackers are not indicated by the supplied CVSS vector.
Executive priority
Treat as a high-priority kernel update for multi-user, shared-compute, and tenant-facing Linux systems. Schedule other affected hosts through normal urgent patching. This is not evidenced as remotely exploitable or actively exploited, so urgency should reflect local-access exposure and operational criticality.
Technical view
In algif_hash, accept(2) on an AF_ALG hash socket with MSG_MORE can encounter a crypto_ahash_import failure. The error path frees sk2, after which af_alg_release frees it again, producing a slab use-after-free. The supplied CVSS 3.1 score is 7.8 with local access, low complexity, low privileges, and no user interaction.
Likely exposure
Exposure is limited to Linux systems running an affected kernel where a low-privileged local user or workload can reach the vulnerable AF_ALG hash-socket path. Prioritize shared hosts, systems permitting untrusted local execution, and tenant workloads. The flattened version information does not reliably identify every affected distribution package; confirm against kernel and distribution advisories.
Exploitation context
The supplied record does not establish active exploitation, and the CVE is not listed as KEV in the bundle. Exploitation requires local low-privileged access. Memory corruption is confirmed, but no public exploit capability or observed attack activity is established by these sources.
Researcher notes
The failure chain is specific: MSG_MORE reaches hash_accept, crypto_ahash_import fails, sk2 is freed on the error path, then af_alg_release frees it again. Stable-tree commits document corrections across branches. The bundle lacks reliable package-level range semantics and does not demonstrate practical privilege escalation, exploit availability, or attacks in the wild.
Mitigation direction
Install the corrected kernel package supplied by your Linux distribution or product vendor.
Review the referenced stable-kernel commits when maintaining custom or independently built kernels.
Prioritize shared systems and hosts permitting untrusted low-privileged code execution.
Reboot into the updated kernel and verify the running version afterward.
Check vendor guidance where package-to-upstream version mapping remains unclear.
Validation and detection
Inventory running kernel versions across Linux hosts, containers' hosts, appliances, and custom images.
Compare each kernel package against its distribution advisory and referenced stable-branch correction.
Confirm patched systems booted the intended updated kernel, not merely installed it.
Review exposure to untrusted local users or workloads capable of accessing AF_ALG sockets.
Monitor kernel logs for slab use-after-free reports or unexplained crashes; absence does not prove safety.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-38079 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
3ADP providers
12Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.