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 88F35334681 for ; Wed, 6 May 2026 11:31:36 +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=1778067096; cv=none; b=X5+qRCeegBMkQlYHa5ek85bBfFiky47NXRMhVtsEk+AcwaGvReYsWmtYv+AGcntPzX+tUtA6PgFZ3E70UbI21iJpkxLiPLHD+Gtp/mrsO0QtbVB2hPtVjZsr/wVMW1lJb44CimkkUJDjpPO1x43tsz28cQ8/4haGMQzKxzGV7j8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067096; c=relaxed/simple; bh=aW3GqBVyHCfvYRl6P+q+FtGRi5SiMWbE5umcXKoP3FY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fXxpXeMWgFJICS57UARGqhliImKiHxKMrMlCYF07y6fSRQnv5cA+B8O+2W3oFZWRDNfHB2VrPv0XdJ+wd/L4+IOc2PBgrqyIlyH+WacxLMvmEXtidEKDVrCmYv8H1onVAzoHD48kmSd4UBXEEoN2PJsSGwVi+9Zj2lEcVENIx1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oKlUX6OT; 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="oKlUX6OT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EA4BC2BCB8; Wed, 6 May 2026 11:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067096; bh=aW3GqBVyHCfvYRl6P+q+FtGRi5SiMWbE5umcXKoP3FY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=oKlUX6OTlfi8ClYgoKYFCx/eqBB2xPo+6XCT3/CTtci6gAHRHFK2+uXGtpI2e359u /8685+rkRD4dV4hn4xEJ3qF/PRUXzWU7Tyer/KtdlUcSh2VKhViCTWjX83w1r1VVF3 NaPEQIB9n7df9lh+rd09QwmJ2Oi8P+NmbbJQjQ94= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43185: ksmbd: fix signededness bug in smb_direct_prepare_negotiation() Date: Wed, 6 May 2026 13:28:21 +0200 Message-ID: <2026050640-CVE-2026-43185-55a5@gregkh> X-Mailer: git-send-email 2.54.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=2532; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=N31uEWUGC1H4zOzg7K5tbFa2CyGS03F2lJPVV6aQgvE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/Vdcws7RPOrJTeq1oRU9ysOUrw//axwOmbdybue7r6 QtxEsE9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR+xCG+SndjC0T4k+qqLoq 3f8XWGs+kf/+ZIa5Em9n1Z1x4vi23UEuy5bLtP9S+pGtAA== 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: ksmbd: fix signededness bug in smb_direct_prepare_negotiation() smb_direct_prepare_negotiation() casts an unsigned __u32 value from sp->max_recv_size and req->preferred_send_size to a signed int before computing min_t(int, ...). A maliciously provided preferred_send_size of 0x80000000 will return as smaller than max_recv_size, and then be used to set the maximum allowed alowed receive size for the next message. By sending a second message with a large value (>1420 bytes) the attacker can then achieve a heap buffer overflow. This fix replaces min_t(int, ...) with min_t(u32) The Linux kernel CVE team has assigned CVE-2026-43185 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.18.16 with commit ceae058eb707ddd0d68f0872f9d9f23b7c30c37b Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.19.6 with commit 55abc475d096da4a5356b6efb0cfdc6156bc1550 Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 7.0 with commit 6b4f875aac344cdd52a1f34cc70ed2f874a65757 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-43185 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/ceae058eb707ddd0d68f0872f9d9f23b7c30c37b https://git.kernel.org/stable/c/55abc475d096da4a5356b6efb0cfdc6156bc1550 https://git.kernel.org/stable/c/6b4f875aac344cdd52a1f34cc70ed2f874a65757