CVE-2025-71113: crypto: af_alg - zero initialize memory allocated via sock_kmalloc
Vulnerability summary
CVE-2025-71113 is a medium (CVSS 5.5) Use of Uninitialized Resource vulnerability in linux. EPSS estimates a 0.15% chance of exploitation in the next 30 days, higher than 4.2% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 49 · Related 43Timeline
- 14-01-2026PublishedVulnerability first disclosed.
- 19-10-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: crypto: af_alg - zero initialize memory allocated via sock_kmalloc Several crypto user API contexts and requests allocated with sock_kmalloc() were left uninitialized, relying on callers to set fields explicitly. This resulted in the use of uninitialized data in certain error paths or when new fields are added in the future. The ACVP patches also contain two user-space interface files: algif_kpp.c and algif_akcipher.c. These too rely on proper initialization of their context structures. A particular issue has been observed with the newly added 'inflight' variable introduced in af_alg_ctx by commit: 67b164a871af ("crypto: af_alg - Disallow multiple in-flight AIO requests") Because the context is not memset to zero after allocation, the inflight variable has contained garbage values. As a result, af_alg_alloc_areq() has incorrectly returned -EBUSY randomly when the garbage value was interpreted as true: https://github.com/gregkh/linux/blame/master/crypto/af_alg.c#L1209 The check directly tests ctx->inflight without explicitly comparing against true/false. Since inflight is only ever set to true or false later, an uninitialized value has triggered -EBUSY failures. Zero-initializing memory allocated with sock_kmalloc() ensures inflight and other fields start in a known state, removing random issues caused by uninitialized data.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.15%
Chance of exploitation in the next 30 days
Percentile
4%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.14% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-908Use of Uninitialized ResourceThe product uses or accesses a resource that has not been initialized.
- CWE-119Improper Restriction of Operations within the Bounds of a Memory BufferThe product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu156 products
- linuxAll versions (No fix recorded) | < 5.15.0-173.183 | < 6.8.0-110.110 | < 6.17.0-22.22
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1103.110 | < 6.8.0-1052.55 | < 6.17.0-1012.12
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ fe869cdb89c95d060c77eea20204d6c91f233b53, < e125c8e346e4eb7b3e854c862fcb4392bc13ddba | ≥ fe869cdb89c95d060c77eea20204d6c91f233b53, < 543bf004e4eafbb302b1e6c78570d425d2ca13a0 | ≥ fe869cdb89c95d060c77eea20204d6c91f233b53, < f81244fd6b14fecfa93b66b6bb1d59f96554e550 | ≥ fe869cdb89c95d060c77eea20204d6c91f233b53, < 84238876e3b3b262cf62d5f4d1338e983fb27010 | ≥ fe869cdb89c95d060c77eea20204d6c91f233b53, < 5a4b65523608974a81edbe386f8a667a3e10c726 | ≥ fe869cdb89c95d060c77eea20204d6c91f233b53, < 51a5ab36084f3251ef87eda3e6a6236f6488925e | ≥ fe869cdb89c95d060c77eea20204d6c91f233b53, < 6f6e309328d53a10c0fe1f77dec2db73373179b6 | 2.6.38
- linux_kernel≥ 2.6.38.1, < 5.10.248 | ≥ 5.11, < 5.15.198 | ≥ 5.16, < 6.1.160 | ≥ 6.2, < 6.6.120 | ≥ 6.7, < 6.12.64 | ≥ 6.13, < 6.18.3 | 2.6.38 | 6.19:rc1 | 6.19:rc2 | 6.19:rc3 | 6.19:rc4 | 6.19:rc5 | 6.19:rc6 | 6.19:rc7 | 6.19:rc8
Debian1 product
- linux< 6.1.162-1 | < 6.12.69-1 | < 6.18.3-1
3 vendors · 159 products