{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2025-38264", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2025-04-16T04:51:23.997Z", "datePublished": "2025-07-09T10:42:38.602Z", "dateUpdated": "2026-08-05T12:00:51.571Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T12:00:51.571Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-tcp: sanitize request list handling\n\nValidate the request in nvme_tcp_handle_r2t() to ensure it's not part of\nany list, otherwise a malicious R2T PDU might inject a loop in request\nlist processing." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL" }, "scenarios": [ { "lang": "en", "value": "AV:N - The vulnerable code is the NVMe-over-TCP host driver's PDU receive path, parsing an R2T PDU sent by a remote NVMe-oF target over TCP (port 4420); the malicious input arrives purely over the network from a compromised/rogue target or an on-path attacker.\nAC:L - The target fully controls PDU content and timing — placing two R2T PDUs for the same command_id in a single TCP segment guarantees both are processed inside one nvme_tcp_recv_skb() pass with no send-path progress between them, creating the llist cycle deterministically with no race to win and no memory-layout dependency.\nPR:N - NVMe/TCP requires no authentication by default (TLS and DH-HMAC-CHAP are optional, off in stock configs), so the remote peer needs zero privileges or credentials on the victim host — it simply answers I/O it is already being sent.\nUI:N - No victim action is required; once the host is connected to the target, ordinary filesystem/block I/O generates the in-flight commands and the malicious target triggers the bug on its own by replying with duplicate R2T PDUs.\nS:U - The corruption and the resulting hang are confined to the host kernel's own memory and scheduling authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Beyond the list corruption, duplicate queueing lets the RX path reset req->state/offset/pdu_len while the TX path is consuming the request, desynchronizing req->iter so nvme_tcp_req_cur_page() reads past the bvec array and sock_sendmsg() splices unintended kernel pages directly to the attacker-controlled socket.\nI:H - Attacker-controlled input produces kernel linked-list pointer corruption (double llist_add plus repeated list_add of an already-linked entry into send_list) and lets an in-flight request's PDU header, ttag, and iterator state be rewritten mid-transfer, which is memory/state corruption leverageable for further control over kernel structures.\nA:H - The injected cycle makes nvme_tcp_process_req_list() spin forever in the nvme_tcp_wq kworker while holding queue->send_mutex with no cond_resched(), producing a CPU soft lockup, RCU stalls, and a permanently wedged storage queue — a deterministic, unauthenticated remote kernel hang." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/nvme/host/tcp.c" ], "versions": [ { "version": "3f2304f8c6d6ed97849057bd16fee99e434ca796", "lessThan": "78a4adcd3fedb0728436e8094848ebf4c6bae006", "status": "affected", "versionType": "git" }, { "version": "3f2304f8c6d6ed97849057bd16fee99e434ca796", "lessThan": "f054ea62598197714a6ca7b3b387a027308f8b13", "status": "affected", "versionType": "git" }, { "version": "3f2304f8c6d6ed97849057bd16fee99e434ca796", "lessThan": "0bf04c874fcb1ae46a863034296e4b33d8fbd66c", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/nvme/host/tcp.c" ], "versions": [ { "version": "5.0", "status": "affected" }, { "version": "0", "lessThan": "5.0", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.36", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.15.5", "lessThanOrEqual": "6.15.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.16", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.0", "versionEndExcluding": "6.12.36" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.0", "versionEndExcluding": "6.15.5" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.0", "versionEndExcluding": "6.16" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/78a4adcd3fedb0728436e8094848ebf4c6bae006" }, { "url": "https://git.kernel.org/stable/c/f054ea62598197714a6ca7b3b387a027308f8b13" }, { "url": "https://git.kernel.org/stable/c/0bf04c874fcb1ae46a863034296e4b33d8fbd66c" } ], "title": "nvme-tcp: sanitize request list handling", "x_generator": { "engine": "bippy-1.2.0" } } } }