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 4C9FF2236E0 for ; Fri, 24 Apr 2026 14:30:49 +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=1777041049; cv=none; b=Wdtw1h3ZXP4Kn+UK+L9UUBH8tZOUc1jdNBpvWBFNf21rDbDihkR/vKM683qgjgg676PVNnc4h9o6r5AKoCAyqYGlQsZ53xmuPap+nmdxqD9l4kxls5eafHh0APZEuI+Opimv9vHcFqZvy7HRoNXZIpuU5pJEqFJFk4a3iId7RZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041049; c=relaxed/simple; bh=SUMcNzIsFovAsMV0LfbOWTjUqEgugK79d/r99EgE/fk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dMmUlfFUlA3j7ILp8wWg9GDoa70L52pAF76NJ3nTqcsJMB2BHuQtFMBt0NmrVy6ppl4HrpZMmZIYRDPJdlCxU7mbsperkktvHr8Nvq9det8I+xY14RLYgN9IpHeMv8OtzB6ti5WuBo0un7Tap8rGHfQ7sO5c+1I/80Vavi0AFk0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B1Bq4Svf; 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="B1Bq4Svf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5627C19425; Fri, 24 Apr 2026 14:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041049; bh=SUMcNzIsFovAsMV0LfbOWTjUqEgugK79d/r99EgE/fk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=B1Bq4SvfA1GvK2rGXvXqK9XP2PyAdzOTi2Gp/25gRzpfmpMMy9Qbu2kwjHT0tjtAu j3KV4F4cca2mlbGXtBKGsP56sDJ4XJIFYd0O8UH+IIkO1bjkMscikomGx8zsygyiZP 0Hsc8tnqcQfAhsM50BLZdk2N9yAoFw85++c88j7A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31537: smb: server: make use of smbdirect_socket.send_io.bcredits Date: Fri, 24 Apr 2026 16:30:35 +0200 Message-ID: <2026042434-CVE-2026-31537-6202@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=2135; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ieFVSZNhHnYq9XhI5s9rbCOtqnkRNPLP22GlGvi7APA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmv67r03P96+zPwfIqI+8D1wvp0YNDt7omBd66dmScTv arNzlO0I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZybTrDgtYNp6Xvf39Tx71r VV605850Nd6qkwxzOLnVOTVSefkKOVWDE59IWbsJFl8AAA== 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: 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