Security Vulnerability Report
中文
CVE-2025-71131 CVSS 5.5 MEDIUM

CVE-2025-71131

Published: 2026-01-14 15:16:03
Last Modified: 2026-03-25 19:56:42
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Description

In the Linux kernel, the following vulnerability has been resolved: crypto: seqiv - Do not use req->iv after crypto_aead_encrypt As soon as crypto_aead_encrypt is called, the underlying request may be freed by an asynchronous completion. Thus dereferencing req->iv after it returns is invalid. Instead of checking req->iv against info, create a new variable unaligned_info and use it for that purpose instead.

CVSS Details

CVSS Score
5.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
Linux Kernel < 5.15.x (特定版本需查看kernel.org commit)
受影响的内核版本包括:0279978adec6f1296af66b642cce641c6580be46
受影响的内核版本包括:18202537856e0fae079fed2c9308780bcff2bb9d
受影响的内核版本包括:50f196d2bbaee4ab2494bb1b0d294deba292951a
受影响的内核版本包括:50fdb78b7c0bcc550910ef69c0984e751cac72fa
受影响的内核版本包括:5476f7f8a311236604b78fcc5b2a63b3a61b0169

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// PoC concept for CVE-2025-71131 (Linux kernel seqiv use-after-free) // This is a conceptual proof-of-concept demonstrating the vulnerability #include <linux/crypto.h> #include <linux/scatterlist.h> // Trigger the use-after-free condition in seqiv void trigger_seqiv_uaf(void) { struct crypto_aead *tfm; struct aead_request *req; u8 iv[32]; u8 plaintext[64]; u8 ciphertext[64]; // Initialize crypto transform tfm = crypto_alloc_aead("seqiv(aes)", 0, 0); if (IS_ERR(tfm)) return; // Setup encryption key crypto_aead_setkey(tfm, key, 32); crypto_aead_setauthsize(tfm, 16); // Allocate aead request req = aead_request_alloc(tfm, GFP_KERNEL); if (!req) goto out; // Setup sg tables sg_init_one(&src_sg, plaintext, sizeof(plaintext)); sg_init_one(&dst_sg, ciphertext, sizeof(ciphertext)); // Setup IV memset(iv, 0, sizeof(iv)); // Setup aead request with IV aead_request_set_ad(req, 0); aead_request_set_crypt(req, &src_sg, &dst_sg, sizeof(plaintext), iv); // Trigger async encryption - req may be freed upon completion crypto_aead_encrypt(req); // UAF: Accessing req->iv after crypto_aead_encrypt returns // The req structure may have been freed by async completion // This would cause use-after-free if req->iv is dereferenced here aead_request_free(req); out: crypto_free_aead(tfm); } // Note: Actual exploitation requires specific kernel conditions // and async crypto completion timing

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-71131", "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "published": "2026-01-14T15:16:02.843", "lastModified": "2026-03-25T19:56:42.483", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: seqiv - Do not use req->iv after crypto_aead_encrypt\n\nAs soon as crypto_aead_encrypt is called, the underlying request\nmay be freed by an asynchronous completion. Thus dereferencing\nreq->iv after it returns is invalid.\n\nInstead of checking req->iv against info, create a new variable\nunaligned_info and use it for that purpose instead."}, {"lang": "es", "value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncrypto: seqiv - No usar req-&gt;iv después de crypto_aead_encrypt\n\nTan pronto como se llama a crypto_aead_encrypt, la solicitud subyacente puede ser liberada por una finalización asíncrona. Por lo tanto, desreferenciar req-&gt;iv después de que regresa es inválido.\n\nEn lugar de comprobar req-&gt;iv contra info, crear una nueva variable unaligned_info y usarla para ese propósito en su lugar."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "2.6.25.1", "versionEndExcluding": "5.10.248", "matchCriteriaId": "FDE3CEA2-EF44-42C3-B4A0-668C58EF1CAA"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.11", "versionEndExcluding": "5.15.198", "matchCriteriaId": "82159CAA-B6BA-43C6-85D8-65BDBC175A7E"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.16", "versionEndExcluding": "6.1.160", "matchCriteriaId": "C10CC03E-16A9-428A-B449-40D3763E15F6"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.2", "versionEndExcluding": "6.6.120", "matchCriteriaId": "43C3A206-5EEE-417B-AA0F-EF8972E7A9F0"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.7", "versionEndExcluding": "6.12.64", "matchCriteriaId": "32BF4A52-377C-44ED-B5E6-7EA5D896E98B"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.13", "versionEndExcluding": "6.18.4", "matchCriteriaId": "DC988EA0-0E32-457A-BF95-89BEB31A227B"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:2.6.25:-:*:*:*:*:*:*", "matchCriteriaId": "F650D09A-41EA-4EB5-925B-F2146E8DDF2A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*", "matchCriteriaId": "17B67AA7-40D6-4AFA-8459-F200F3D7CFD1"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*", "matchCriteriaId": "C47E4CC9-C826-4FA9-B014-7FE3D9B318B2"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*", "matchCriteriaId": "F71D92C0-C023-48BD-B3B6-70B638EEE298"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*", "matchCriteriaId": "13580667-0A98-40CC-B29F-D12790B91BDB"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.19:rc5:*:*:*:*:*:*", "matchCriteriaId": "CAD1FED7-CF48-47BF-AC7D-7B6FA3C065FC"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.19:rc6:*:*:*:*:*:*", "matchCriteriaId": "3EF854A1-ABB1-4E93-BE9A-44569EC76C0D"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.19:rc7:*:*:*:*:*:*", "matchCriteriaId": "F5DC0CA6-F0AF-4DDF-A882-3DADB9A886A7"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.19:rc8:*:*:*:*:*:*", "matchCriteriaId": "EB5B7DFC-C36B-45D8-922C-877569FDDF43"}]}]}], "references": [{"url": "https://git.kernel.org/stable/c/0279978adec6f1296af66b642cce641c6580be46", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/18202537856e0fae079fed2c9308780bcff2bb9d", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/50f196d2bbaee4ab2494bb1b0d294deba292951a", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/50fdb78b7c0bcc550910ef69c0984e751cac72f ... (truncated)