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 B72C3274B37 for ; Thu, 4 Sep 2025 15:35:17 +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=1757000117; cv=none; b=oYw5hS5CbXY79AuXqLByg+gKDmyb9qk4G9QCL4+YIy4chiPe+LymhcpdjDkpGJ+aP7nrxtImMmJukp3tihHKdF5MGYk8xXx+hQNF6VySPe7tlmNY9Oxb/eWxqM+cI3XeExWLEMtDcdf4f97ZrLeojCQsHq6D0OrXP6MPuj3Jj00= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757000117; c=relaxed/simple; bh=NdZkQ3oR39Vgzm17ja9zfdfqCqdiWWAX51r3omSy+8o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sUWrqJl9pK4f0zn+HTPQ1OdLXKFgCm8dH3ZuYYufcppOWb/5mA4GXg4v6suSx9yDH80K8ZrR6JjtIJBO4TUhE51CsxjMjPW8FXczeW5r/CbKilSornbGJQyNMeflYs7elprfak+bQxdwMgG7/u+WzFU6S7lJnxiF9LAfLHgJSXU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HA3k+byo; 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="HA3k+byo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B34AC4CEF1; Thu, 4 Sep 2025 15:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757000117; bh=NdZkQ3oR39Vgzm17ja9zfdfqCqdiWWAX51r3omSy+8o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HA3k+byoX2gwNI0XJzhUenJ246k8WGBc1Q68vIPUgIYG43V7L+4jYfUMFbzSMxRsx Fi3KZizMfG5oG8uvid5IHAXLPjPrxZy5t013JrS9nUlQlPvEOfAM0J9phjSCXxxlE9 Xi4QCb4ZQH+Ku6qZi04LDyJDJimHn16C+Ofh+CUI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38697: jfs: upper bound check of tree index in dbAllocAG Date: Thu, 4 Sep 2025 17:33:02 +0200 Message-ID: <2025090451-CVE-2025-38697-b37e@gregkh> X-Mailer: git-send-email 2.51.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=2819; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=l/reSsCWCRMK9xAZWcPUZoia7TN1cId7+j4+7LGUkbk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk7NyoHTAiJTPIrMTHaojlDuHzD4sMb3vfF7cu+3fOR6 4Fui/u/jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIWibD/PD4M19Xvm1gSxU1 dBO9dNNzf3FHNMOCtrzHD7dUZcg9MvhRr+Jo7fj898SNAA== 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: jfs: upper bound check of tree index in dbAllocAG When computing the tree index in dbAllocAG, we never check if we are out of bounds realative to the size of the stree. This could happen in a scenario where the filesystem metadata are corrupted. The Linux kernel CVE team has assigned CVE-2025-38697 to this issue. Affected and fixed versions =========================== Fixed in 5.4.297 with commit 5bdb9553fb134fd52ec208a8b378120670f6e784 Fixed in 5.10.241 with commit a4f199203f79ca9cd7355799ccb26800174ff093 Fixed in 5.15.190 with commit 1467a75819e41341cd5ebd16faa2af1ca3c8f4fe Fixed in 6.1.149 with commit 49ea46d9025aa1914b24ea957636cbe4367a7311 Fixed in 6.6.103 with commit 173cfd741ad7073640bfb7e2344c2a0ee005e769 Fixed in 6.12.43 with commit c8ca21a2836993d7cb816668458e05e598574e55 Fixed in 6.15.11 with commit 2dd05f09cc323018136a7ecdb3d1007be9ede27f Fixed in 6.16.2 with commit 30e19a884c0b11f33821aacda7e72e914bec26ef Fixed in 6.17-rc1 with commit c214006856ff52a8ff17ed8da52d50601d54f9ce 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-38697 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/jfs/jfs_dmap.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/5bdb9553fb134fd52ec208a8b378120670f6e784 https://git.kernel.org/stable/c/a4f199203f79ca9cd7355799ccb26800174ff093 https://git.kernel.org/stable/c/1467a75819e41341cd5ebd16faa2af1ca3c8f4fe https://git.kernel.org/stable/c/49ea46d9025aa1914b24ea957636cbe4367a7311 https://git.kernel.org/stable/c/173cfd741ad7073640bfb7e2344c2a0ee005e769 https://git.kernel.org/stable/c/c8ca21a2836993d7cb816668458e05e598574e55 https://git.kernel.org/stable/c/2dd05f09cc323018136a7ecdb3d1007be9ede27f https://git.kernel.org/stable/c/30e19a884c0b11f33821aacda7e72e914bec26ef https://git.kernel.org/stable/c/c214006856ff52a8ff17ed8da52d50601d54f9ce