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 ACC84346E73 for ; Wed, 24 Dec 2025 13:12:35 +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=1766581955; cv=none; b=WRlrCsNMDgkxaLswLZli9iGy5bW/kTZBKtnldiUmTCvyIEMl9poGylM21cAtXQzhFVj8bUz0oo9DiQfjvfaRYjkUgVCH8ABM4sHFPaLgMtczCDP6ekSkjzh84eB4Jzq1yn9rnRVNgWZeu0rBMebuudZao9FUgYj8ZQUbXody480= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581955; c=relaxed/simple; bh=VluE1I+imLWCr4NTJeNWy4MErl4ecm+T11ZSDYer4V0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VmNRO6VIjWLUbApDvRB+Ewc0beUcmYMO+KSW4jNCKjiWzt3mWDO9nGDFwB2bANDKYFrAfSzB5ef/yCaN6ihDXvQScGGUW/+Oi1SGdEePIhnAOQLbFNyX+8JhYLAqPnLUL+7iY4Rf+PrX7H7KAL7c8wBkHEtyCfmT1lm703POKBc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X4TJAVo8; 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="X4TJAVo8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39C10C4CEFB; Wed, 24 Dec 2025 13:12:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581955; bh=VluE1I+imLWCr4NTJeNWy4MErl4ecm+T11ZSDYer4V0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=X4TJAVo8X4QpH3dZDJuzBOLxv+dR08H8+domHWxHyZJx3PcoyEqOlCZEBZgKmZdDB F2Abbm9i88xKDcwaiefzl028Tl3UaZ6udfY4GYU5W3m70BvZ/RhaQu6Z3QFBnTbZN3 6zSxHbLvMgqGLnPOQP+ka1V7ivz3259NwPLhuENU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54135: maple_tree: fix potential out-of-bounds access in mas_wr_end_piv() Date: Wed, 24 Dec 2025 14:07:32 +0100 Message-ID: <2025122421-CVE-2023-54135-ffa3@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2677; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GfYjdy9zo77u2wgmW9LxlFuqW/mUHHudprRAjdsDg1Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT31ne4fFSLMr3zyXULPM8aHroegD4VLbg95WzGObe Kt5RcbljlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiInzjD/NiQisVaehNmsxxb elGSpXPm5ImlBxjmylc1HStfPZFJqdVKiMfUOKdm77epAA== 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: maple_tree: fix potential out-of-bounds access in mas_wr_end_piv() Check the write offset end bounds before using it as the offset into the pivot array. This avoids a possible out-of-bounds access on the pivot array if the write extends to the last slot in the node, in which case the node maximum should be used as the end pivot. akpm: this doesn't affect any current callers, but new users of mapletree may encounter this problem if backported into earlier kernels, so let's fix it in -stable kernels in case of this. The Linux kernel CVE team has assigned CVE-2023-54135 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa and fixed in 6.1.37 with commit 4e2ad53ababeaac44d71162650984abfe783960c Issue introduced in 6.1 with commit 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa and fixed in 6.3.11 with commit dc4751bd4aba01ccfc02f91adfeee0ba4cda405c Issue introduced in 6.1 with commit 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa and fixed in 6.4.1 with commit f5fcf6555a2a4f32947d17b92b173837cc652891 Issue introduced in 6.1 with commit 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa and fixed in 6.5 with commit cd00dd2585c4158e81fdfac0bbcc0446afbad26d 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-54135 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: lib/maple_tree.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/4e2ad53ababeaac44d71162650984abfe783960c https://git.kernel.org/stable/c/dc4751bd4aba01ccfc02f91adfeee0ba4cda405c https://git.kernel.org/stable/c/f5fcf6555a2a4f32947d17b92b173837cc652891 https://git.kernel.org/stable/c/cd00dd2585c4158e81fdfac0bbcc0446afbad26d