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 EC12A1F4E2C for ; Fri, 27 Dec 2024 15:00:56 +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=1735311657; cv=none; b=QfdRLILh3vs5WJ7ogtq0VfiUn/yp8Y2wQg+ydVLSnThgSAbaWz90x3HBjDfEpzG28CKqjspq7BvHptIambx3WNnYB9NnmIRN0XO4MNmLoIRyWgQcJSAnaWRg6VwzfiZBHmjSsM3HCAvTYBvNo3f2FQWs00u1XPGEtv3j0L2a3eE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735311657; c=relaxed/simple; bh=grAwwAbyNiuFinVcqROZ+jSwzd4Jr5JPQsKqSt/s8as=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WJL8KWTQU6DsX8YOroicIy3qiXTiD/lSRoTGwucVU+mKFRUtsZWpqBtQhiRi/FA4p4DA9pEWjtCW5ScHMlvGb/x4ZccdHQ5KDYacg6eRqZ3ZbXmK4poFvgDIGnECSORD/M1Gfwn1p3zH1LyyVi8cFScCrpEMYBs+LwtoZbIIDZU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MaD6bNON; 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="MaD6bNON" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52808C4CED0; Fri, 27 Dec 2024 15:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735311656; bh=grAwwAbyNiuFinVcqROZ+jSwzd4Jr5JPQsKqSt/s8as=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MaD6bNONzegyz5wZMlDLrWAxNVBA2itdlIA89iK2KmsdwxE/yKKJDjXR+PCQA4qjT f25eHQLTqvFM1ecog+Mo4zA9ESQgMgh+jpw4i2M8GxOunqSvybUm3ykm05L4yhq581 rge/Cb5ZzivTh3T9gwCC8lGDeqAAcjS1+y5sBynA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56626: ksmbd: fix Out-of-Bounds Write in ksmbd_vfs_stream_write Date: Fri, 27 Dec 2024 15:51:33 +0100 Message-ID: <2024122712-CVE-2024-56626-f2f9@gregkh> X-Mailer: git-send-email 2.47.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=2120; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=grAwwAbyNiuFinVcqROZ+jSwzd4Jr5JPQsKqSt/s8as=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5+x5YGaRsN73PpyH4xHTXuY0/TDZGMxed4mE786zF6 fzxLq5nHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR+/0MC2bFym3MOhrF+dMx QP3sLjuDlxOU9RkWnL3w/lBGXBaHto7S0kcd03QUnpS5AAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix Out-of-Bounds Write in ksmbd_vfs_stream_write An offset from client could be a negative value, It could allows to write data outside the bounds of the allocated buffer. Note that this issue is coming when setting 'vfs objects = streams_xattr parameter' in ksmbd.conf. The Linux kernel CVE team has assigned CVE-2024-56626 to this issue. Affected and fixed versions =========================== Fixed in 6.1.120 with commit 8cd7490fc0f268883e86e840cda5311257af69ca Fixed in 6.6.66 with commit 164d3597d26d9acff5d5b8bc3208bdcca942dd6a Fixed in 6.12.5 with commit c5797f195c67132d061d29c57a7c6d30530686f0 Fixed in 6.13-rc2 with commit 313dab082289e460391c82d855430ec8a28ddf81 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-2024-56626 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/8cd7490fc0f268883e86e840cda5311257af69ca https://git.kernel.org/stable/c/164d3597d26d9acff5d5b8bc3208bdcca942dd6a https://git.kernel.org/stable/c/c5797f195c67132d061d29c57a7c6d30530686f0 https://git.kernel.org/stable/c/313dab082289e460391c82d855430ec8a28ddf81