{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-99388", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2026-09-25T10:25:14.412Z", "datePublished": "2026-11-19T14:23:27.698Z", "dateUpdated": "2026-11-23T08:02:16.232Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-11-23T08:02:16.232Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: smbdirect: fix buffer length underflow in RDMA transfers\n\nWhen a remote buffer descriptor is larger than the remaining local\nbuffer, smbdirect_connection_rdma_xmit() clamps its length and sets\nbuf_len to zero. The common accounting code then subtracts the clamped\nlength from buf_len, causing it to underflow. If another descriptor\nfollows, the loop processes it with a wrapped remaining length and\nincludes memory beyond the local buffer in the RDMA transfer.\n\nA client can trigger an out-of-bounds kernel write with an SMB WRITE\nrequest, or an out-of-bounds kernel read with an SMB READ request, by\nsupplying multiple RDMA buffer descriptors with an oversized descriptor\nbefore the last one.\n\nRemove the premature assignment to buf_len. Subtracting the clamped length\nalready consumes the remaining buffer, so the next iteration stops and\nonly descriptors within the local buffer are used to build work requests." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "AV:N - A remote SMB Direct client puts the bad descriptor lengths in the SMB2 READ ReadChannelInfo or SMB2 WRITE WriteChannelInfo of the PDU that ksmbd_conn_handler_loop reads via smb_direct_read; smb2_read/smb2_write then call smbdirect_connection_rdma_xmit. That listener binds AF_INET port 5445 for iWARP (TCP) and port 445 for RoCEv2, both routable IP.\nAC:L - The client chooses the descriptor lengths, and check_rdma_desc only requires their sum to cover Length or RemainingBytes, so an oversized descriptor followed by another one makes buf_len wrap in smbdirect_connection_rdma_xmit. The client opens the SMB Direct connection and the file itself; a modest overflow fits the connection's existing RDMA credit pool.\nPR:L - smb2_check_user_session drops SMB2 READ and WRITE that lack a valid session, and smb2_read/smb2_write then require a tree connect and an open file with FILE_READ_DATA or FILE_WRITE_DATA. That is an authenticated share user who already finished session setup before the descriptor loop runs.\nUI:N - The authenticated client alone opens the file and sends the SMB2 READ or WRITE whose ReadChannelInfo or WriteChannelInfo carries the descriptors.\nS:U - The HCA DMA stays inside the host kernel that built the SG list from the ksmbd buffer in smbdirect_connection_rdma_xmit, which is the same security authority as the corrupted memory.\nC:H - SMB2 READ calls smbdirect_connection_rdma_xmit with is_read false, and the unclamped later descriptor makes smbdirect_connection_rdma_get_sg_list RDMA-write memory past aux_payload_buf to the client rkey. The client-chosen descriptor length covers many pages of adjacent kernel memory.\nI:H - SMB2 WRITE calls smbdirect_connection_rdma_xmit with is_read true (DMA_FROM_DEVICE), so the same later descriptor RDMA-reads bytes from the client's registered buffer into kernel memory past the kvzalloc buffer in smb2_write_rdma. Those bytes are chosen by the client.\nA:H - That RDMA read writes attacker-controlled data over adjacent kernel heap after the kvzalloc/kvmalloc buffer, which is enough to oops the host. A length that runs off a vmalloc mapping also puts a NULL page from vmalloc_to_page into the SG list." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/smb/smbdirect/rw.c" ], "versions": [ { "version": "c5aa74449a41d9c10900d82d2c2e62d5462ef932", "lessThan": "94b94000981c56aa01e9ca2b411dff15600c079c", "status": "affected", "versionType": "git" }, { "version": "cf859267e639cff1f525bd050f370ea752cc25f7", "lessThan": "2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76", "status": "affected", "versionType": "git" }, { "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25", "lessThan": "a1a44af9fd0555755a81ca0c201f681572471d05", "status": "affected", "versionType": "git" }, { "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25", "lessThan": "5072f32330c71de91c1a844e7becaee48d743561", "status": "affected", "versionType": "git" }, { "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25", "lessThan": "1f5c774488fa2dabe6667cb26888aaea39c4ead6", "status": "affected", "versionType": "git" }, { "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25", "lessThan": "956968544ae647aa9a9534b58735f47922c85d44", "status": "affected", "versionType": "git" }, { "version": "e628bf939aafb61fbc56e9bdac8795cea5127e25", "lessThan": "7193241a49c958782ba4b8df06da3734d1e317d2", "status": "affected", "versionType": "git" }, { "version": "1c660940f525279bb23b5d99a591535e7c359efe", "status": "affected", "versionType": "git" }, { "version": "ebdb872897dbb2425b6c9f7b7e2f5d9a8042a76a", "status": "affected", "versionType": "git" }, { "version": "5.15.145", "lessThan": "5.15.226", "status": "affected", "versionType": "semver" }, { "version": "6.1.52", "lessThan": "6.1.193", "status": "affected", "versionType": "semver" }, { "version": "6.4.15", "lessThan": "6.5", "status": "affected", "versionType": "semver" }, { "version": "6.5.2", "lessThan": "6.6", "status": "affected", "versionType": "semver" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/smb/smbdirect/rw.c" ], "versions": [ { "version": "6.6", "status": "affected" }, { "version": "0", "lessThan": "6.6", "status": "unaffected", "versionType": "semver" }, { "version": "5.15.226", "lessThanOrEqual": "5.15.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.193", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.163", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.117", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.18.61", "lessThanOrEqual": "6.18.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.3.2", "lessThanOrEqual": "7.3.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.4-rc1", "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.15.145", "versionEndExcluding": "5.15.226" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.1.52", "versionEndExcluding": "6.1.193" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.6", "versionEndExcluding": "6.6.163" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.6", "versionEndExcluding": "6.12.117" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.6", "versionEndExcluding": "6.18.61" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.6", "versionEndExcluding": "7.3.2" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.6", "versionEndExcluding": "7.4-rc1" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.4.15" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.5.2" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/94b94000981c56aa01e9ca2b411dff15600c079c" }, { "url": "https://git.kernel.org/stable/c/2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76" }, { "url": "https://git.kernel.org/stable/c/a1a44af9fd0555755a81ca0c201f681572471d05" }, { "url": "https://git.kernel.org/stable/c/5072f32330c71de91c1a844e7becaee48d743561" }, { "url": "https://git.kernel.org/stable/c/1f5c774488fa2dabe6667cb26888aaea39c4ead6" }, { "url": "https://git.kernel.org/stable/c/956968544ae647aa9a9534b58735f47922c85d44" }, { "url": "https://git.kernel.org/stable/c/7193241a49c958782ba4b8df06da3734d1e317d2" } ], "title": "smb: smbdirect: fix buffer length underflow in RDMA transfers", "x_generator": { "engine": "bippy-1.2.0" } } } }