CVE-2026-99388
published high CVSS 3.1 · 8.8smb: smbdirect: fix buffer length underflow in RDMA transfers
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc5aa74449a41d9c10900d82d2c2e62d5462ef932 to < 94b94000981c56aa01e9ca2b411dff15600c079c · cf859267e639cff1f525bd050f370ea752cc25f7 to < 2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76 · e628bf939aafb61fbc56e9bdac8795cea5127e25 to < a1a44af9fd0555755a81ca0c201f681572471d05 · e628bf939aafb61fbc56e9bdac8795cea5127e25 to < 5072f32330c71de91c1a844e7becaee48d743561 · e628bf939aafb61fbc56e9bdac8795cea5127e25 to < 1f5c774488fa2dabe6667cb26888aaea39c4ead6 · e628bf939aafb61fbc56e9bdac8795cea5127e25 to < 956968544ae647aa9a9534b58735f47922c85d44 · e628bf939aafb61fbc56e9bdac8795cea5127e25 to < 7193241a49c958782ba4b8df06da3734d1e317d2 · 1c660940f525279bb23b5d99a591535e7c359efe · ebdb872897dbb2425b6c9f7b7e2f5d9a8042a76a · 5.15.145 to < 5.15.226 · 6.1.52 to < 6.1.193 · 6.4.15 to < 6.5 · 6.5.2 to < 6.6 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.6 (affected) · 0 to < 6.6 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: smb: smbdirect: fix buffer length underflow in RDMA transfers When a remote buffer descriptor is larger than the remaining local buffer, smbdirect_connection_rdma_xmit() clamps its length and sets buf_len to zero. The common accounting code then subtracts the clamped length from buf_len, causing it to underflow. If another descriptor follows, the loop processes it with a wrapped remaining length and includes memory beyond the local buffer in the RDMA transfer. A client can trigger an out-of-bounds kernel write with an SMB WRITE request, or an out-of-bounds kernel read with an SMB READ request, by supplying multiple RDMA buffer descriptors with an oversized descriptor before the last one. Remove the premature assignment to buf_len. Subtracting the clamped length already consumes the remaining buffer, so the next iteration stops and only descriptors within the local buffer are used to build work requests.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: 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. AC: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. PR: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. UI:N - The authenticated client alone opens the file and sends the SMB2 READ or WRITE whose ReadChannelInfo or WriteChannelInfo carries the descriptors. S: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. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c5aa74449a41d9c10900d82d2c2e62d5462ef932 to < 94b94000981c56aa01e9ca2b411dff15600c079c (affected · git)cf859267e639cff1f525bd050f370ea752cc25f7 to < 2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76 (affected · git)e628bf939aafb61fbc56e9bdac8795cea5127e25 to < a1a44af9fd0555755a81ca0c201f681572471d05 (affected · git)e628bf939aafb61fbc56e9bdac8795cea5127e25 to < 5072f32330c71de91c1a844e7becaee48d743561 (affected · git)e628bf939aafb61fbc56e9bdac8795cea5127e25 to < 1f5c774488fa2dabe6667cb26888aaea39c4ead6 (affected · git)e628bf939aafb61fbc56e9bdac8795cea5127e25 to < 956968544ae647aa9a9534b58735f47922c85d44 (affected · git)e628bf939aafb61fbc56e9bdac8795cea5127e25 to < 7193241a49c958782ba4b8df06da3734d1e317d2 (affected · git)1c660940f525279bb23b5d99a591535e7c359efe (affected · git)ebdb872897dbb2425b6c9f7b7e2f5d9a8042a76a (affected · git)5.15.145 to < 5.15.226 (affected · semver)6.1.52 to < 6.1.193 (affected · semver)6.4.15 to < 6.5 (affected · semver)6.5.2 to < 6.6 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.6 (affected)0 to < 6.6 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/1f5c774488fa2dabe6667cb26888aaea39c4ead6
- https://git.kernel.org/stable/c/2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76
- https://git.kernel.org/stable/c/5072f32330c71de91c1a844e7becaee48d743561
- https://git.kernel.org/stable/c/7193241a49c958782ba4b8df06da3734d1e317d2
- https://git.kernel.org/stable/c/94b94000981c56aa01e9ca2b411dff15600c079c
- https://git.kernel.org/stable/c/956968544ae647aa9a9534b58735f47922c85d44
- https://git.kernel.org/stable/c/a1a44af9fd0555755a81ca0c201f681572471d05
Provider assertions
1Linux · cna
smb: smbdirect: fix buffer length underflow in RDMA transfers
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ac2e62bb559df35d00a5f5b715fc00f73bbe962fb04d64797789615b7a006181
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record