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 3E6981F5820 for ; Wed, 16 Apr 2025 14:16:18 +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=1744812978; cv=none; b=GR8CaLXnmZT974VcID+9oFfDTSHlqIZT8k7YU29tRs4HozPz4Zn4n4lNPYWJGPzw0fa3DaY1I8IBX7sNFHQtCbt6oV+RW1obBHTO5vxASMsNbyWv5Y9JA5THUcSiGKVOPavYaZbusxCmCwu4E1WtIonmP6JaokoWlx3O2z0TN3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812978; c=relaxed/simple; bh=OgIlhl+j0sWEP98PwpRV1M6om5nLoWh1wLktjBW1iUw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Lq/D/+xN7Pu/1BG7wESpw68Tn8i0H6hFDzjWYJclLgN43gMC9ezzXlPW1/fHuitZovUj490u+67J3vz7W1VtZDGWatTHVeExKb7Hsk/ydJkYESizRlDLpnYLYP9iQ8TcJoACaUy5V83jnb3nLphZzWDRa1prXum5FWME66s/Bt8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yXZ0wOD/; 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="yXZ0wOD/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCD8EC4CEE2; Wed, 16 Apr 2025 14:16:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812978; bh=OgIlhl+j0sWEP98PwpRV1M6om5nLoWh1wLktjBW1iUw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yXZ0wOD/++yARYTrXZqBSljruYA8TjeV935LT8Nv5lblBrrulxzVY6Lld6/RUPuVs PpTENJCC/a5w7xo9q45KNjxXZqvJdWjbemD0Eqf5/erR+kekWwaikh1UMjawhdsPdG Fiq7Qcwyu+tKeznzqTZFRPIZPBha/qdv6rJngrZs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22079: ocfs2: validate l_tree_depth to avoid out-of-bounds access Date: Wed, 16 Apr 2025 16:12:50 +0200 Message-ID: <2025041613-CVE-2025-22079-c7b2@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=3642; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OgIlhl+j0sWEP98PwpRV1M6om5nLoWh1wLktjBW1iUw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d+1VMl/xI3jy0qUi8Wvm5Oqeu+N8bX/9nkNpDl81J AzfmOQv64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ6DcyLNgWITrHxSs4uOeT ytzzNrZnMkOrnzPMlbZw4v+yfms03w8f511vnZTUv/+5BQA= 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: ocfs2: validate l_tree_depth to avoid out-of-bounds access The l_tree_depth field is 16-bit (__le16), but the actual maximum depth is limited to OCFS2_MAX_PATH_DEPTH. Add a check to prevent out-of-bounds access if l_tree_depth has an invalid value, which may occur when reading from a corrupted mounted disk [1]. The Linux kernel CVE team has assigned CVE-2025-22079 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.16 with commit ccd979bdbce9fba8412beb3f1de68a9d0171b12c and fixed in 5.4.292 with commit ef34840bda333fe99bafbd2d73b70ceaaf9eba66 Issue introduced in 2.6.16 with commit ccd979bdbce9fba8412beb3f1de68a9d0171b12c and fixed in 5.10.236 with commit 538ed8b049ef801a86c543433e5061a91cc106e3 Issue introduced in 2.6.16 with commit ccd979bdbce9fba8412beb3f1de68a9d0171b12c and fixed in 5.15.180 with commit 17c99ab3db2ba74096d36c69daa6e784e98fc0b8 Issue introduced in 2.6.16 with commit ccd979bdbce9fba8412beb3f1de68a9d0171b12c and fixed in 6.1.134 with commit 11e24802e73362aa2948ee16b8fb4e32635d5b2a Issue introduced in 2.6.16 with commit ccd979bdbce9fba8412beb3f1de68a9d0171b12c and fixed in 6.6.87 with commit 3d012ba4404a0bb517658699ba85e6abda386dc3 Issue introduced in 2.6.16 with commit ccd979bdbce9fba8412beb3f1de68a9d0171b12c and fixed in 6.12.23 with commit 49d2a2ea9d30991bae82107f9523915b91637683 Issue introduced in 2.6.16 with commit ccd979bdbce9fba8412beb3f1de68a9d0171b12c and fixed in 6.13.11 with commit b942f88fe7d2d789e51c5c30a675fa1c126f5a6d Issue introduced in 2.6.16 with commit ccd979bdbce9fba8412beb3f1de68a9d0171b12c and fixed in 6.14.2 with commit e95d97c9c8cd0c239b7b59c79be0f6a9dcf7905c Issue introduced in 2.6.16 with commit ccd979bdbce9fba8412beb3f1de68a9d0171b12c and fixed in 6.15-rc1 with commit a406aff8c05115119127c962cbbbbd202e1973ef 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-22079 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/ocfs2/alloc.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/ef34840bda333fe99bafbd2d73b70ceaaf9eba66 https://git.kernel.org/stable/c/538ed8b049ef801a86c543433e5061a91cc106e3 https://git.kernel.org/stable/c/17c99ab3db2ba74096d36c69daa6e784e98fc0b8 https://git.kernel.org/stable/c/11e24802e73362aa2948ee16b8fb4e32635d5b2a https://git.kernel.org/stable/c/3d012ba4404a0bb517658699ba85e6abda386dc3 https://git.kernel.org/stable/c/49d2a2ea9d30991bae82107f9523915b91637683 https://git.kernel.org/stable/c/b942f88fe7d2d789e51c5c30a675fa1c126f5a6d https://git.kernel.org/stable/c/e95d97c9c8cd0c239b7b59c79be0f6a9dcf7905c https://git.kernel.org/stable/c/a406aff8c05115119127c962cbbbbd202e1973ef