CVE-2026-31538
published high CVSS 3.1 · 7.5smb: server: make use of smbdirect_socket.recv_io.credits.available
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux89b021a72663c4d96d8a8b85272bb42d991a1c6f to < 66c082e3d4651e8629a393a9e182b01eb50fb0a3 · 89b021a72663c4d96d8a8b85272bb42d991a1c6f to < 809cbd31aa4f87a1b889532244c9cf30eb022385 · 89b021a72663c4d96d8a8b85272bb42d991a1c6f to < 26ad87a2cfb8c1384620d1693a166ed87303046e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.18 (affected) · 0 to < 6.18 (unaffected · semver) · 6.18.11 through 6.18.* (unaffected · semver) · 6.19.1 through 6.19.* (unaffected · semver) · 7.0 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 |
Description
In the Linux kernel, the following vulnerability has been resolved: smb: server: make use of smbdirect_socket.recv_io.credits.available The logic off managing recv credits by counting posted recv_io and granted credits is racy. That's because the peer might already consumed a credit, but between receiving the incoming recv at the hardware and processing the completion in the 'recv_done' functions we likely have a window where we grant credits, which don't really exist. So we better have a decicated counter for the available credits, which will be incremented when we posted new recv buffers and drained when we grant the credits to the peer. This fixes regression Namjae reported with the 6.18 release.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: AV:N - SMB Direct is a network-facing ksmbd RDMA transport listening on SMB/RDMA ports, and the vulnerable credit path is reached by packets from a remote SMB Direct peer. The attacker only needs network access to the exposed SMB Direct service. AC:L - The race is between receive completion processing and server credit grants, but the attacker controls the RDMA connection traffic and can repeatedly pipeline/flood requests to hit the window. No unusual victim-side condition is required beyond SMB Direct being enabled. PR:N - The affected path is in SMB Direct transport negotiation and data transfer handling before SMB session authentication is required. A remote unauthenticated peer can reach the credit accounting logic. UI:N - No victim user action is needed after the ksmbd SMB Direct service is running. The attacker triggers the issue by connecting and sending SMB Direct traffic. S:U - The impact remains within the kernel ksmbd/SMB Direct service security authority. There is no VM escape, sandbox escape, or cross-scope boundary change. C:N - The bug is receive-credit accounting, not an out-of-bounds access, use-after-free, or disclosure path. It does not provide a defensible kernel memory read primitive. I:N - Over-granting receive credits does not grant authorization or create a write primitive into kernel memory. The RDMA receive path consumes posted receive buffers and fails/disconnects when credits are invalid rather than allowing attacker-controlled memory modification. A:H - The peer can be granted credits for receive buffers that no longer exist, leading to RDMA receive-not-ready/QP errors or disconnects. Because this can be triggered remotely and repeatedly without authentication, it can deny SMB Direct service availability.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 89b021a72663c4d96d8a8b85272bb42d991a1c6f to < 66c082e3d4651e8629a393a9e182b01eb50fb0a3 (affected · git)89b021a72663c4d96d8a8b85272bb42d991a1c6f to < 809cbd31aa4f87a1b889532244c9cf30eb022385 (affected · git)89b021a72663c4d96d8a8b85272bb42d991a1c6f to < 26ad87a2cfb8c1384620d1693a166ed87303046e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.18 (affected)0 to < 6.18 (unaffected · semver)6.18.11 through 6.18.* (unaffected · semver)6.19.1 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
smb: server: make use of smbdirect_socket.recv_io.credits.available
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 988ef67cc1dc2fe8faa028d3d20eb886ee12c2e0c23e6f136d1888055497cb4c
- Ingested
- 23 Sep 2026, 09:09:24 UTC
- Source record
- Official CVE record