# CVE-2025-71113: crypto: af\_alg - zero initialize memory allocated via sock\_kmalloc

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 6, 2026-11-28)
- **CWE:** CWE-908, CWE-119
- **Published:** 2026-01-14T15:05:59.992Z
- **Modified:** 2026-11-10T13:18:06.270Z

## Who should check

- Anyone running Linux \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< e125c8e346e4eb7b3e854c862fcb4392bc13ddba; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 543bf004e4eafbb302b1e6c78570d425d2ca13a0; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< f81244fd6b14fecfa93b66b6bb1d59f96554e550; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 84238876e3b3b262cf62d5f4d1338e983fb27010; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 5a4b65523608974a81edbe386f8a667a3e10c726; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 51a5ab36084f3251ef87eda3e6a6236f6488925e; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 6f6e309328d53a10c0fe1f77dec2db73373179b6
- Anyone running Linux 2.6.38

## 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.

## Affected and fixed versions

- Linux: \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< e125c8e346e4eb7b3e854c862fcb4392bc13ddba; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 543bf004e4eafbb302b1e6c78570d425d2ca13a0; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< f81244fd6b14fecfa93b66b6bb1d59f96554e550; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 84238876e3b3b262cf62d5f4d1338e983fb27010; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 5a4b65523608974a81edbe386f8a667a3e10c726; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 51a5ab36084f3251ef87eda3e6a6236f6488925e; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 6f6e309328d53a10c0fe1f77dec2db73373179b6 (cvelist)
- Linux: 2.6.38 (cvelist)

## Mitigation

- Upgrade Linux to 6f6e309328d53a10c0fe1f77dec2db73373179b6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-71113. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-71113.md
Affected: Linux >= fe869cdb89c95d060c77eea20204d6c91f233b53, < e125c8e346e4eb7b3e854c862fcb4392bc13ddba; >= fe869cdb89c95d060c77eea20204d6c91f233b53, < 543bf004e4eafbb302b1e6c78570d425d2ca13a0; >= fe869cdb89c95d060c77eea20204d6c91f233b53, < f81244fd6b14fecfa93b66b6bb1d59f96554e550; >= fe869cdb89c95d060c77eea…
Fixed in: Linux 543bf004e4eafbb302b1e6c78570d425d2ca13a0, Linux 84238876e3b3b262cf62d5f4d1338e983fb27010, Linux 5a4b65523608974a81edbe386f8a667a3e10c726, Linux 51a5ab36084f3251ef87eda3e6a6236f6488925e, Linux 6f6e309328d53a10c0fe1f77dec2db73373179b6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-71113 being exploited?

There is no confirmed exploitation: CVE-2025-71113 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-71113?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-71113?

Linux \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< e125c8e346e4eb7b3e854c862fcb4392bc13ddba; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 543bf004e4eafbb302b1e6c78570d425d2ca13a0; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< f81244fd6b14fecfa93b66b6bb1d59f96554e550; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 84238876e3b3b262cf62d5f4d1338e983fb27010; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 5a4b65523608974a81edbe386f8a667a3e10c726; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 51a5ab36084f3251ef87eda3e6a6236f6488925e; \>= fe869cdb89c95d060c77eea20204d6c91f233b53, \< 6f6e309328d53a10c0fe1f77dec2db73373179b6; Linux 2.6.38.

### Is there a fix for CVE-2025-71113?

Yes. Fixed in Linux 543bf004e4eafbb302b1e6c78570d425d2ca13a0, Linux 84238876e3b3b262cf62d5f4d1338e983fb27010, Linux 5a4b65523608974a81edbe386f8a667a3e10c726, Linux 51a5ab36084f3251ef87eda3e6a6236f6488925e, Linux 6f6e309328d53a10c0fe1f77dec2db73373179b6. Upgrade Linux to 6f6e309328d53a10c0fe1f77dec2db73373179b6 or later.

### How do I check if I'm affected by CVE-2025-71113?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e125c8e346e4eb7b3e854c862fcb4392bc13ddba>
- patch: <https://git.kernel.org/stable/c/543bf004e4eafbb302b1e6c78570d425d2ca13a0>
- patch: <https://git.kernel.org/stable/c/f81244fd6b14fecfa93b66b6bb1d59f96554e550>
- patch: <https://git.kernel.org/stable/c/84238876e3b3b262cf62d5f4d1338e983fb27010>
- patch: <https://git.kernel.org/stable/c/5a4b65523608974a81edbe386f8a667a3e10c726>
- patch: <https://git.kernel.org/stable/c/51a5ab36084f3251ef87eda3e6a6236f6488925e>
- patch: <https://git.kernel.org/stable/c/6f6e309328d53a10c0fe1f77dec2db73373179b6>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-71113>

HTML: <https://flawdb.com/CVE-2025-71113> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-71113>
