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 D9461144D0F for ; Tue, 21 May 2024 15:34:58 +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=1716305698; cv=none; b=oahqvCSW1tlewHEMd8osBp9uurpPYIRNzAElo4FCkQo+T8ttn4dOGtqeXRXRrOoFlrQ0pDKivNJh+X8Ysxv3kCQ3939LmgC5clV7XqNwV7YGJW/c9NqyJr98SWgK3DTunbU8nQx0FZYdTrL/qsZAO8l4i2ciwoZFG3nuetboqV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305698; c=relaxed/simple; bh=WP+g64Sr0paJZEjjWpVEGKlFTEEdwQi0MZDKlCkNddY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nMa4vRseqD6COu/AeYMyxIiu5ciePxIHa2iCD5B4bZ224GACTBsokAmwlsfybC6O4DGOGtMNcI5SZDDdrp52xfsyjztbIVU8MHeAwsk/2Rms6297qoDBamnsHySh/1Diky+48SjNuO3E3kloqN4zh8fH7R3fw8KXld7bdQVSMoE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tpd6D611; 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="tpd6D611" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 618E5C4AF08; Tue, 21 May 2024 15:34:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305698; bh=WP+g64Sr0paJZEjjWpVEGKlFTEEdwQi0MZDKlCkNddY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tpd6D611UUWtpLASI9Yl5EyaY/1qD8bzF0EpXc0uC68FzqFPkCpQOBSob0Z+ir2KM 29LsslrWm+FYaPFIU+XexOQy1PKgE0AMpIP30CvFq4Rn8HHJrBM4Q5xdJOKKR80HJI KZxogSUJmdWJGTD9lE2B04z2XyOjGT1IaKU91Qis= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52755: ksmbd: fix slab out of bounds write in smb_inherit_dacl() Date: Tue, 21 May 2024 17:30:51 +0200 Message-ID: <2024052145-CVE-2023-52755-0e00@gregkh> X-Mailer: git-send-email 2.45.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=2057; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WP+g64Sr0paJZEjjWpVEGKlFTEEdwQi0MZDKlCkNddY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++1RTWYRva2Sw2rfZX3EputC/8on3bjnvRpZXWd/tq 4v7Tkp1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETE9Rjm5880nLSgxubvW/23 cbyn3D+VSSz3Z1iwyzVx+pQssYgNEvnML+7P7y1IbzQEAA== 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 slab out of bounds write in smb_inherit_dacl() slab out-of-bounds write is caused by that offsets is bigger than pntsd allocation size. This patch add the check to validate 3 offsets using allocation size. The Linux kernel CVE team has assigned CVE-2023-52755 to this issue. Affected and fixed versions =========================== Fixed in 5.15.140 with commit aaf0a07d6088 Fixed in 6.1.64 with commit 8387c94d73ec Fixed in 6.5.13 with commit 09d9d8b40a33 Fixed in 6.6.3 with commit 712e01f32e57 Fixed in 6.7 with commit eebff19acaa3 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-52755 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/smbacl.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/aaf0a07d60887d6c36fc46a24de0083744f07819 https://git.kernel.org/stable/c/8387c94d73ec66eb597c7a23a8d9eadf64bfbafa https://git.kernel.org/stable/c/09d9d8b40a3338193619c14ed4dc040f4f119e70 https://git.kernel.org/stable/c/712e01f32e577e7e48ab0adb5fe550646a3d93cb https://git.kernel.org/stable/c/eebff19acaa35820cb09ce2ccb3d21bee2156ffb