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 2FB7618C03F for ; Sat, 4 Oct 2025 07:33:43 +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=1759563224; cv=none; b=VPKtHbB5LowUZTOMIFufiYfdhl73sP5+JlbSgrxNlGIX3KPta+SX4XjFfPwXVfrnq2kPscvu0Cpv9dMg4ZWhRhM8l36Gn9GzMOCLWJWIzvnmt5bouhNUFx8FMleWBCZktbfgszEUwaAZPXD6Gqmj18ZNLa8iXJzcDlpgRN4SrSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759563224; c=relaxed/simple; bh=wJ1hnOmwvNstjy5lNixfepKVUM83rpEau9v8gYcU7MA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eZRs7/+dK8HkT9wVaztt9c1cFv0J9aEhTV3ufmvxU1yI201O5QEZ1uByWdhBPtLdMbtoRopb+FtEpJxS+EkAQFHB/7bXU6+6Im0hy/9mFlM7V4hbuaDKbzo1N463S+qZsS8nV+WtkDxzcvLN248Mwzzwz7lBLOovNo4eZPvLWCk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wJb4dwKN; 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="wJb4dwKN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 556CCC4CEF1; Sat, 4 Oct 2025 07:33:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759563223; bh=wJ1hnOmwvNstjy5lNixfepKVUM83rpEau9v8gYcU7MA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wJb4dwKN50gkOOulfuyYO6CfUGpRxqlE3HpDLxgUiPVI9209g692QEqCZfyC7BKPh 0r4Hk9B7Z/ClmZIxk/LtSQvS0wJoNiBo5xzjNhbmUOVOn41d++hjzfc7DUNEHo1O8P lo2kLyMF/9Y23ab5hMmCEhQwuohGkRWRTXzh9NY0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39943: ksmbd: smbdirect: validate data_offset and data_length field of smb_direct_data_transfer Date: Sat, 4 Oct 2025 09:33:27 +0200 Message-ID: <2025100419-CVE-2025-39943-f5d8@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2671; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4pLfSGB+q24d5kE2N9eY5orY2SZVd5fp0Lnae23WZec=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPzu5ftehFMP+LHTZ1/XfiDK9pvOb4FxZssdJ2cv6h5 TlXuRxndcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEvl9mmO9awyD1TfqY/J7O E6XNi96+mjC9bSvDgt7opP3FNce4ph4rKC/qNWWpUFM/CAA= 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: smbdirect: validate data_offset and data_length field of smb_direct_data_transfer If data_offset and data_length of smb_direct_data_transfer struct are invalid, out of bounds issue could happen. This patch validate data_offset and data_length field in recv_done. The Linux kernel CVE team has assigned CVE-2025-39943 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 2ea086e35c3d726a3bacd0a971c1f02a50e98206 and fixed in 6.1.154 with commit bdaab5c6538e250a9654127e688ecbbeb6f771d5 Issue introduced in 5.15 with commit 2ea086e35c3d726a3bacd0a971c1f02a50e98206 and fixed in 6.6.108 with commit eb0378dde086363046ed3d7db7f126fc3f76fd70 Issue introduced in 5.15 with commit 2ea086e35c3d726a3bacd0a971c1f02a50e98206 and fixed in 6.12.49 with commit 8be498fcbd5b07272f560b45981d4b9e5a2ad885 Issue introduced in 5.15 with commit 2ea086e35c3d726a3bacd0a971c1f02a50e98206 and fixed in 6.16.9 with commit 529b121b00a6ee3c88fb3c01b443b2b81f686d48 Issue introduced in 5.15 with commit 2ea086e35c3d726a3bacd0a971c1f02a50e98206 and fixed in 6.17 with commit 5282491fc49d5614ac6ddcd012e5743eecb6a67c 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-2025-39943 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/bdaab5c6538e250a9654127e688ecbbeb6f771d5 https://git.kernel.org/stable/c/eb0378dde086363046ed3d7db7f126fc3f76fd70 https://git.kernel.org/stable/c/8be498fcbd5b07272f560b45981d4b9e5a2ad885 https://git.kernel.org/stable/c/529b121b00a6ee3c88fb3c01b443b2b81f686d48 https://git.kernel.org/stable/c/5282491fc49d5614ac6ddcd012e5743eecb6a67c