CVE-2026-31537: smb: server: make use of smbdirect_socket.send_io.bcredits
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
smb: server: make use of smbdirect_socket.send_io.bcredits
It turns out that our code will corrupt the stream of reassabled data transfer messages when we trigger an immendiate (empty) send.
In order to fix this we'll have a single 'batch' credit per connection. And code getting that credit is free to use as much messages until remaining_length reaches 0, then the batch credit it given back and the next logical send can happen.
The Linux kernel CVE team has assigned CVE-2026-31537 to this issue.
Affected and fixed versions
===========================
Fixed in 6.18.11 with commit 5ef18a2e66f2f33fdac64437bddfb9fe6389fdc7 Fixed in 6.19.1 with commit 79242e7b6bc63efec28b7c235bc320806afce6c0 Fixed in 7.0 with commit 34abd408c8ba24d7c97bd02ba874d8c714f49db1
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-31537
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/smb/server/transport_rdma.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/5ef18a2e66f2f33fdac64437bddfb9fe6389fdc7 https://git.kernel.org/stable/c/79242e7b6bc63efec28b7c235bc320806afce6c0 https://git.kernel.org/stable/c/34abd408c8ba24d7c97bd02ba874d8c714f49db1