{"id":"CVE-2025-71113","summary":"crypto: af_alg - zero initialize memory allocated via sock_kmalloc","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: af_alg - zero initialize memory allocated via sock_kmalloc\n\nSeveral crypto user API contexts and requests allocated with\nsock_kmalloc() were left uninitialized, relying on callers to\nset fields explicitly. This resulted in the use of uninitialized\ndata in certain error paths or when new fields are added in the\nfuture.\n\nThe ACVP patches also contain two user-space interface files:\nalgif_kpp.c and algif_akcipher.c. These too rely on proper\ninitialization of their context structures.\n\nA particular issue has been observed with the newly added\n'inflight' variable introduced in af_alg_ctx by commit:\n\n  67b164a871af (\"crypto: af_alg - Disallow multiple in-flight AIO requests\")\n\nBecause the context is not memset to zero after allocation,\nthe inflight variable has contained garbage values. As a result,\naf_alg_alloc_areq() has incorrectly returned -EBUSY randomly when\nthe garbage value was interpreted as true:\n\n  https://github.com/gregkh/linux/blame/master/crypto/af_alg.c#L1209\n\nThe check directly tests ctx-\u003einflight without explicitly\ncomparing against true/false. Since inflight is only ever set to\ntrue or false later, an uninitialized value has triggered\n-EBUSY failures. Zero-initializing memory allocated with\nsock_kmalloc() ensures inflight and other fields start in a known\nstate, removing random issues caused by uninitialized data.","modified":"2026-04-16T00:01:27.259233886Z","published":"2026-01-14T15:05:59.992Z","related":["SUSE-SU-2026:0962-1","SUSE-SU-2026:1041-1","SUSE-SU-2026:1078-1","SUSE-SU-2026:1081-1","SUSE-SU-2026:20555-1","SUSE-SU-2026:20599-1","SUSE-SU-2026:20615-1","SUSE-SU-2026:20667-1","SUSE-SU-2026:20720-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1","openSUSE-SU-2026:20287-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71113.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/51a5ab36084f3251ef87eda3e6a6236f6488925e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/543bf004e4eafbb302b1e6c78570d425d2ca13a0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5a4b65523608974a81edbe386f8a667a3e10c726"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6f6e309328d53a10c0fe1f77dec2db73373179b6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/84238876e3b3b262cf62d5f4d1338e983fb27010"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e125c8e346e4eb7b3e854c862fcb4392bc13ddba"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f81244fd6b14fecfa93b66b6bb1d59f96554e550"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71113.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71113"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"fe869cdb89c95d060c77eea20204d6c91f233b53"},{"fixed":"e125c8e346e4eb7b3e854c862fcb4392bc13ddba"},{"fixed":"543bf004e4eafbb302b1e6c78570d425d2ca13a0"},{"fixed":"f81244fd6b14fecfa93b66b6bb1d59f96554e550"},{"fixed":"84238876e3b3b262cf62d5f4d1338e983fb27010"},{"fixed":"5a4b65523608974a81edbe386f8a667a3e10c726"},{"fixed":"51a5ab36084f3251ef87eda3e6a6236f6488925e"},{"fixed":"6f6e309328d53a10c0fe1f77dec2db73373179b6"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-71113.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.38"},{"fixed":"5.10.248"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.198"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.160"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-71113.json"}}],"schema_version":"1.7.5"}