Skip to contentSkip to conversation

CVE-2026-31609: smb: client: avoid double-free in smbd_free_send_io() after smbd_send_batch_flush()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

smb: client: avoid double-free in smbd_free_send_io() after smbd_send_batch_flush()

smbd_send_batch_flush() already calls smbd_free_send_io(), so we should not call it again after smbd_post_send() moved it to the batch list.

The Linux kernel CVE team has assigned CVE-2026-31609 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.18.24 with commit a9940dcbe5cb92482c04efc7341039ddf7dbf607
	Fixed in 6.19.14 with commit 22b7c1c619d808aec4cad3dc42103345e370d107
	Fixed in 7.0.1 with commit f9a162c2bbcd0ac85bd07c5b37cf20286048b65c

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-31609

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/client/smbdirect.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/a9940dcbe5cb92482c04efc7341039ddf7dbf607
	https://git.kernel.org/stable/c/22b7c1c619d808aec4cad3dc42103345e370d107
	https://git.kernel.org/stable/c/f9a162c2bbcd0ac85bd07c5b37cf20286048b65c
	https://git.kernel.org/stable/c/27b7c3e916218b5eb2ee350211140e961bfc49be