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 DDF4D153BD9 for ; Sat, 16 Aug 2025 13:28:10 +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=1755350890; cv=none; b=snHuVXjrLR8LKZWvYHC9ByyoEq1MY2hsL2l4bMDEcco5aev+HE3y7hzn47Ych5VHm9URLPB7wDQBtWPFGfJqC206ISz8ggAqyWJQvgLCxaDqIZbdHkU0N2poO393PxC24XNB3m31zGR//qEacNGasJB5gencvYfmr16bu+MwSFc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755350890; c=relaxed/simple; bh=A9lYdrRE/TLK8nJNqFT+xU7TZh4eRAPpYYTOJtwYACk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pYSTi8XO22AC+mmhDwaUZlwwB4/kS8kLCiGUvbWvi39QIDdC4PUWkxCHBgcoOa6wCknMqcLBKZC1oI89XEZAPMo/rlRAcTF8ekGFQZWZEU9h0KD5I5fIkR2ci8DuEdPl/6wjKxxRZ9ngEf7bfkptf6KXw0gV6IwR5zZN5r4FXRc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bBvpaMTC; 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="bBvpaMTC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02792C4CEEF; Sat, 16 Aug 2025 13:28:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755350890; bh=A9lYdrRE/TLK8nJNqFT+xU7TZh4eRAPpYYTOJtwYACk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bBvpaMTCJJWFM95h1Fvw7caBVEzDxBEhsJiQfLdoFDeRE7XzgEgyn4cDFVe9tg1wa taSJqX+Ho+l4cSbhGG4wBVDUxOhCR2dZeRK0PXA/kzYSH7cFO0v5T2lYTyhcIz7SKL uc21Yl+VltsX2WdjQrbNjFoe/jXHCslXt01IeHTE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-4130: ksmbd: fix wrong next length validation of ea buffer in smb2_set_ea() Date: Sat, 16 Aug 2025 15:28:04 +0200 Message-ID: <2025081602-CVE-2023-4130-a1c9@gregkh> X-Mailer: git-send-email 2.50.1 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=2274; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jibfeR2RDGTUU45PL82ObmyWK6sM/geo+Ye7neuk+Es=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkL2pPilrxhmX16q2gKo7DtmuqVX91PKrAKi9st43wfO /mZT8jijlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI+l8MCw7cnbprn9PfqM9P d8TemmIw8Tf3zn8M812ZK54e/J8Y0anGWbb0uJbKzdNchQA= 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 wrong next length validation of ea buffer in smb2_set_ea() There are multiple smb2_ea_info buffers in FILE_FULL_EA_INFORMATION request from client. ksmbd find next smb2_ea_info using ->NextEntryOffset of current smb2_ea_info. ksmbd need to validate buffer length Before accessing the next ea. ksmbd should check buffer length using buf_len, not next variable. next is the start offset of current ea that got from previous ea. The Linux kernel CVE team has assigned CVE-2023-4130 to this issue. Affected and fixed versions =========================== Fixed in 5.15.127 with commit aeb974907642be095e38ecb1a400ca583958b2b0 Fixed in 6.1.46 with commit f339d76a3a972601d0738b881b099d49ebbdc3a2 Fixed in 6.4.11 with commit 4bf629262f9118ee91b1c3a518ebf2b3bcb22180 Fixed in 6.5 with commit 79ed288cef201f1f212dfb934bcaac75572fb8f6 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-2023-4130 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/smb2pdu.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/aeb974907642be095e38ecb1a400ca583958b2b0 https://git.kernel.org/stable/c/f339d76a3a972601d0738b881b099d49ebbdc3a2 https://git.kernel.org/stable/c/4bf629262f9118ee91b1c3a518ebf2b3bcb22180 https://git.kernel.org/stable/c/79ed288cef201f1f212dfb934bcaac75572fb8f6