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 3BD7420B7EA for ; Tue, 1 Apr 2025 15:42:42 +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=1743522162; cv=none; b=RyYko8k8d0Gwo3Xb7jHzcePE753DG5f7KkptbNPOC8eBoiKegI7A95L7lnhW81+lIbPM+xrxYACoYmip8F37T+2jAusUf9cgFODfTIsG5BV9FbmlZHIsiy/ro/eA0G4xMNxRYYQ7ZwuyBHg+TqAoxaCKU2ewKjYrhoIhk3dU6nc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522162; c=relaxed/simple; bh=Wiu+cndROHEmcjOJYABqdsTFUsOipbCZM+tkviWKqlc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uIIUkRTfuC/uhhEprtwqkxRGrJu7O0n5GQB65HaiFdfzDefeStjGjMuGL27QmXISikuBX6diL7fbOkaOaBKzdZT6PZamuaenhEkxrOUONNYZvTzEzgtUb2jnEfuoBI0rliOcTGemAOYtRS/fAQG3fPhb6a8JmyFSzVaK3IGqe+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tAPrTu8V; 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="tAPrTu8V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6B4EC4CEE4; Tue, 1 Apr 2025 15:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522162; bh=Wiu+cndROHEmcjOJYABqdsTFUsOipbCZM+tkviWKqlc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tAPrTu8V+vW2yX+fX4Tx4JWdK0kAicRm1Yv7/q0XMJIMkE1OV9S9OP6MNo9sFIZKK 4vzPYJUPOe1GsEG+v6JOugz6/LmsnnAy9ZL+Klwz2lJ2ZnndWECCdZv84YVwsJRk03 BuAsR4vNU7jcQcQwwPfs1fcCUdsTDZAEQD0WfV00= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21946: ksmbd: fix out-of-bounds in parse_sec_desc() Date: Tue, 1 Apr 2025 16:40:10 +0100 Message-ID: <2025040136-CVE-2025-21946-63a2@gregkh> X-Mailer: git-send-email 2.49.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=2092; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Wiu+cndROHEmcjOJYABqdsTFUsOipbCZM+tkviWKqlc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvOHaoOPQy/2bZc2RGnOCzyMDPWl+NWCxn33x+qvJlp rrrp88/O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiH1kYFmz3vC94zuF2L5Oz Q47nzP8P5378rcywYP+crRGzuDNaNj3elPPZMyHeUlzjBAA= 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 in parse_sec_desc() If osidoffset, gsidoffset and dacloffset could be greater than smb_ntsd struct size. If it is smaller, It could cause slab-out-of-bounds. And when validating sid, It need to check it included subauth array size. The Linux kernel CVE team has assigned CVE-2025-21946 to this issue. Affected and fixed versions =========================== Fixed in 6.6.83 with commit c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b Fixed in 6.12.19 with commit 159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1 Fixed in 6.13.7 with commit 6a9831180d0b23b5c97e2bd841aefc8f82900172 Fixed in 6.14 with commit d6e13e19063db24f94b690159d0633aaf72a0f03 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-21946 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/c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b https://git.kernel.org/stable/c/159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1 https://git.kernel.org/stable/c/6a9831180d0b23b5c97e2bd841aefc8f82900172 https://git.kernel.org/stable/c/d6e13e19063db24f94b690159d0633aaf72a0f03