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 257D8315D31 for ; Wed, 15 Oct 2025 07:58:13 +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=1760515094; cv=none; b=u000r4m5z1J2Kmc/eAo+y9Fungn+Gum0Xcny11uts/+yrzmq853UQJgBvRpQRj+3B6r82SbCI8jcPAdjGg9H7uQIlGo+J0LLYklSn+lfkivFqxYj4R9XQ5gieqiVk/X1CbBjhrGItBxBJ8NiMhNKRb+oupzMrdVQJi0MHZny6C8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760515094; c=relaxed/simple; bh=iFmYNObxEN4CqFACsBZeqOPrLfh3xZJcXJuXsdHHqR0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ccMATZyRdYykUh83kqCba2FnGEUdkhCENGkORpcADhTcbV3AMXjU4dBARGKK7iiJ4VMPdlVwNakZcDdx6IOp29Csg84RNHnKjQ4KlhXKB2azg0OOaM4/RELH/ArTo39Pbx3Xaza5eNP8xt8H9axELDS5EtWXnVP/xC0cNgSLbwo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MGBj8IXD; 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="MGBj8IXD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A08AC4CEF8; Wed, 15 Oct 2025 07:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760515093; bh=iFmYNObxEN4CqFACsBZeqOPrLfh3xZJcXJuXsdHHqR0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MGBj8IXDxvSt5DVAl/A9MC1GBg0JtCPph1vvyg6KFT+vn/REloD1Ot5vAnaFfqLGO d9V/mFZHcAU+jvnL5C4qwkQSf3Sdd30XFoJferIywozZNs/+/aTla7GLZT6RN6XgZF sp8DOsTtvx9j5dtzD4VLXA5hNSVN3HKURk96uI4o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39975: smb: client: fix wrong index reference in smb2_compound_op() Date: Wed, 15 Oct 2025 09:57:03 +0200 Message-ID: <2025101557-CVE-2025-39975-d1a3@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=2631; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=d3fYQofZZma16jMyunIaJQIDt1fFL7vmQLPs5FzeF3A=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnvg09e9Wvtf7VnuaYHW6LofJOkvtalOx8YFpx+f+y3b 2mfs87pjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiImTjDPOtkfd3HDauzwuti LgTyc4awbde4zzA/etGVmFPbeBvTH/+w1VhX9yM8a6IeAA== 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: client: fix wrong index reference in smb2_compound_op() In smb2_compound_op(), the loop that processes each command's response uses wrong indices when accessing response bufferes. This incorrect indexing leads to improper handling of command results. Also, if incorrectly computed index is greather than or equal to MAX_COMPOUND, it can cause out-of-bounds accesses. The Linux kernel CVE team has assigned CVE-2025-39975 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.75 with commit 5ddcc9e92d54548219985ce4de88618fb53e14ec and fixed in 6.6.109 with commit ba7bcfd52c66dd1c2dfa5142aca7e4a70b62dfa5 Issue introduced in 6.12.12 with commit efe8db3ecaa40a8520dc9a54283dcecd82ceea9c and fixed in 6.12.50 with commit bfb1e2aad1fecef8320fd71332acde0d53a8d699 Issue introduced in 6.14 with commit 3681c74d342db75b0d641ba60de27bf73e16e66b and fixed in 6.16.10 with commit 093615fc76063ea08d454ba86677ce64c736e806 Issue introduced in 6.14 with commit 3681c74d342db75b0d641ba60de27bf73e16e66b and fixed in 6.17 with commit fbe2dc6a9c7318f7263f5e4d50f6272b931c5756 Issue introduced in 6.13.1 with commit 77aefd1d9b790f60634adebbdcfffbe934f41c34 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-39975 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/client/smb2inode.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/ba7bcfd52c66dd1c2dfa5142aca7e4a70b62dfa5 https://git.kernel.org/stable/c/bfb1e2aad1fecef8320fd71332acde0d53a8d699 https://git.kernel.org/stable/c/093615fc76063ea08d454ba86677ce64c736e806 https://git.kernel.org/stable/c/fbe2dc6a9c7318f7263f5e4d50f6272b931c5756