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 0AE932236E0 for ; Fri, 24 Apr 2026 14:30:51 +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=1777041052; cv=none; b=OoZDOtOYd5A+L3ln/yJl8L5K7V2tnFClY4/5ykXVaetkYO03P8PEKCJXFxpnsbeznfMSOHMJtQ9V4JIMJQW5LUjI9MhNHPqP3z/5aB7anwRfw8E0jPifuFfxyetYSlVh0VBnubg8NvUhIIJ3hfFMhj9E0zN+VQM42NoiedTEcIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041052; c=relaxed/simple; bh=egvZHCajI8abhbLltWYIwRz9orNb8vd09I5KL8egHS4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cnX1RtXAgy1S4ulj1mutXgVEZMiU/WKYwmY5eYlz+P0QpDPdjKjERYvx1r9XStkENOIjhMgN5xPt4HF3gFYfiXh/6EGZGsAhx8Y/uPZhrH+xP5HD4hkr8XufE4biukMDBqMvjdL2lcIB5WqiQTVZV1xQjxxGyQU3RkxMKUyIhvU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G35b01qH; 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="G35b01qH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CF10C19425; Fri, 24 Apr 2026 14:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041051; bh=egvZHCajI8abhbLltWYIwRz9orNb8vd09I5KL8egHS4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=G35b01qHvUXx8d6gkrRQhzlKJibJ8+hBYY1lJQq5sbKKXzxVRa5mz4KdmnPCyvAWz kNJ2VJNnRMQYZk6m98d6FNtPa6Ur/hG4hQl+NwuEfNSEuhNUKZgtGSWTS9nrxiA/L0 D28qwVl9jXHkfESCiJVZUSCbwzgUIJH73ss+PjPw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31538: smb: server: make use of smbdirect_socket.recv_io.credits.available Date: Fri, 24 Apr 2026 16:30:36 +0200 Message-ID: <2026042434-CVE-2026-31538-a6f7@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=2599; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8B9muHN5GCRfYgvymlajlNlUtBr2yIpfToTIVl7/rWg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmv67pKZv4RMmxY6s/B6nVZc8cXj39lNemugjZ+/Z8Sd UNepH3siGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIm0iTHMj88rezL5DM/tU9Ep jsHFNy4tOFrawDDP4N+E2ZXvTP/O7nHVClzyrq7gQ3MmAA== 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.recv_io.credits.available The logic off managing recv credits by counting posted recv_io and granted credits is racy. That's because the peer might already consumed a credit, but between receiving the incoming recv at the hardware and processing the completion in the 'recv_done' functions we likely have a window where we grant credits, which don't really exist. So we better have a decicated counter for the available credits, which will be incremented when we posted new recv buffers and drained when we grant the credits to the peer. This fixes regression Namjae reported with the 6.18 release. The Linux kernel CVE team has assigned CVE-2026-31538 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 89b021a72663c4d96d8a8b85272bb42d991a1c6f and fixed in 6.18.11 with commit 66c082e3d4651e8629a393a9e182b01eb50fb0a3 Issue introduced in 6.18 with commit 89b021a72663c4d96d8a8b85272bb42d991a1c6f and fixed in 6.19.1 with commit 809cbd31aa4f87a1b889532244c9cf30eb022385 Issue introduced in 6.18 with commit 89b021a72663c4d96d8a8b85272bb42d991a1c6f and fixed in 7.0 with commit 26ad87a2cfb8c1384620d1693a166ed87303046e 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-31538 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/66c082e3d4651e8629a393a9e182b01eb50fb0a3 https://git.kernel.org/stable/c/809cbd31aa4f87a1b889532244c9cf30eb022385 https://git.kernel.org/stable/c/26ad87a2cfb8c1384620d1693a166ed87303046e