Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 142BF3C1416 for ; Fri, 24 Apr 2026 14:44:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041879; cv=none; b=qTxh3gEy/uGwZbNVPfOowi9/yIs9bgbGV4Lq/b74F7WtBajrQhn28eGjS0w1I6JI2j4uX+0VtXRynaaN7NSjtAC137qlOy0+BJnYNVwTQ/bznnU49CkPaceR4o6ARpoJFno3MqADi6OWNYiJr7Qiy4da8d0lAi4zhkwjkWWfmFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041879; c=relaxed/simple; bh=ClodyoS4LRxwgOLAjM9EpB8sUwssSzQazAyXsEpnRuQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B4pPjdaENwJydq9znbz3eLY6RF7PMoLwJMVR57pcez87USuOH5LVmMaTE/kFrH34L8hxF/l+YP/YwUGb9i1R+XiTIFkRT80vzxhC8sYbIcfNNIBTSfPBZFmtRWmdRF5tZvWeHUpK7in6j/omaqJgXmvtL9utfXVmU1xrdIniPCM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DbfEO8E5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DbfEO8E5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DAC1C19425; Fri, 24 Apr 2026 14:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041879; bh=ClodyoS4LRxwgOLAjM9EpB8sUwssSzQazAyXsEpnRuQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=DbfEO8E5hvshgtGy3r7HuJd2B6zXduF5GkInr2UGK+8DZL3V0alTq+/e/kMXnDF95 2bHU7evaiywQR+nbURNDzU//y4+M8YCB/CjfPBT/1TUY7ngqEzBmPu35rGY8wPEiOL L0JrTxPB0OriDMXcy5/K7kPBgfFwmzFeDt75Y2R0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31608: smb: server: avoid double-free in smb_direct_free_sendmsg after smb_direct_flush_send_list() Date: Fri, 24 Apr 2026 16:43:44 +0200 Message-ID: <2026042421-CVE-2026-31608-1786@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2017; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3fC15+cAe4o9PVqVYDDAyeCbwcOAACtVCRn5I1cXvuI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvGzs1lliqtjQbLtwexHSTb0Nqq7vU52+xt0S3rzO6s MnpTaxVRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE4DnDPAWrF+an2cLX/nfM ayqP5VFdVbNbhWGe4b4G2zONyn395/UTZl97sK9pyfwWAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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