CVE-2026-31608: smb: server: avoid double-free in smb_direct_free_sendmsg after smb_direct_flush_send_list()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
smb: server: avoid double-free in smb_direct_free_sendmsg after smb_direct_flush_send_list()
smb_direct_flush_send_list() already calls smb_direct_free_sendmsg(), so we should not call it again after post_sendmsg()
moved it to the batch list.
The Linux kernel CVE team has assigned CVE-2026-31608 to this issue.
Affected and fixed versions
===========================
Fixed in 6.18.24 with commit 6968c91fab05b8fc4d6700e0cf34472bb422df25 Fixed in 6.19.14 with commit 2ba03f46132b0d1a7bafb86e1ef61951a2254023 Fixed in 7.0.1 with commit 830de6eeb9db4cb7e758201fb99328ef4ca4b032
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-31608
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/6968c91fab05b8fc4d6700e0cf34472bb422df25 https://git.kernel.org/stable/c/2ba03f46132b0d1a7bafb86e1ef61951a2254023 https://git.kernel.org/stable/c/830de6eeb9db4cb7e758201fb99328ef4ca4b032 https://git.kernel.org/stable/c/84ff995ae826aa6bbcc6c7b9ea569ff67c021d72