CVE-2025-71113

crypto: af_alg - zero initialize memory allocated via sock_kmalloc

No CVSS score yet EPSS 0.18%

Published 14 Jan 2026 Updated 10 Nov 2026 CNA: Linux

Check your servers for CVE-2025-71113

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-71113 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.71% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Jun 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from fe869cdb89c95d060c77eea20204d6c91f233b53, before e125c8e346e4eb7b3e854c862fcb4392bc13ddba
affected from fe869cdb89c95d060c77eea20204d6c91f233b53, before 543bf004e4eafbb302b1e6c78570d425d2ca13a0
affected from fe869cdb89c95d060c77eea20204d6c91f233b53, before f81244fd6b14fecfa93b66b6bb1d59f96554e550
affected from fe869cdb89c95d060c77eea20204d6c91f233b53, before 84238876e3b3b262cf62d5f4d1338e983fb27010
affected from fe869cdb89c95d060c77eea20204d6c91f233b53, before 5a4b65523608974a81edbe386f8a667a3e10c726
affected from fe869cdb89c95d060c77eea20204d6c91f233b53, before 51a5ab36084f3251ef87eda3e6a6236f6488925e
affected from fe869cdb89c95d060c77eea20204d6c91f233b53, before 6f6e309328d53a10c0fe1f77dec2db73373179b6
Other versions: unaffected
Linux
affected 2.6.38
unaffected before 2.6.38
unaffected from 5.10.248 up to and including 5.10.*
unaffected from 5.15.198 up to and including 5.15.*
unaffected from 6.1.160 up to and including 6.1.*
unaffected from 6.6.120 up to and including 6.6.*
unaffected from 6.12.64 up to and including 6.12.*
unaffected from 6.18.3 up to and including 6.18.*
unaffected 6.19 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-71113 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-71113

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-71113
trivy image --scanners vuln IMAGE | grep CVE-2025-71113

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-71113 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.