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 773A82FF499 for ; Fri, 4 Jul 2025 13:43:02 +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=1751636582; cv=none; b=TQxTUA7zhntvqsLS3LheXmOZzAi1pY9ErVKh4Fru3Y9zckqo11arDwCAkV+Q3i9IxqnLgwQKUGMtQAFyGIaIK+baPwk12K8Mg7UhFtZAkC7WCBsKADJIBzmS/xwspBBRyZjDycY3VjE+kWwJe66k7+XLn/sP5td0O0dXaClbyHw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636582; c=relaxed/simple; bh=d+1PceqjaLbyQ4NVUMoZvG7ziDG5QZrqvuHWhefrXfk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jMguoGvZgbgYIavHAaODWaEZMQ/91vtW0TnxEj6/lG+JUrMOE/0uOcJwuqxeiiahjjvvbS/+AY4VZp90wkgkMYJNHIPHyoHRGubv1NnThg4LECYOVS6konASJ/+qU8TKHt97spXqBQvGgGe9Sljt+P/W7kHVc/5NmAwIbBnM+gk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sLOEDiZp; 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="sLOEDiZp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A290C4CEE3; Fri, 4 Jul 2025 13:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751636582; bh=d+1PceqjaLbyQ4NVUMoZvG7ziDG5QZrqvuHWhefrXfk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sLOEDiZpuaoxH3dagvvl4IKK2pclR0Ezr5lycdgnPilAmrVXoPvGNdhw9wNjOrmbH QlW0EV5yYBTS1ZJsQGSHzyjFw6t4rA/85gKaaGuUCJh6jIz7rGJNw2yEqxjmlJJRPP 4GCaSdHXXGz78shv7O7dS1dCwFFOuoPqbEz6y5Ms= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38204: jfs: fix array-index-out-of-bounds read in add_missing_indices Date: Fri, 4 Jul 2025 15:37:33 +0200 Message-ID: <2025070419-CVE-2025-38204-c216@gregkh> X-Mailer: git-send-email 2.50.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=2286; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xfAtZwpjGpmh2UjYtkBc0+8QePhfNbUGzM26XMkwR24=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnpN/lz8h+U73z3fsrVaT+Z1aOlLRdybRH7k/jCa+uvw s11IhPvd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEys8zLJg90zdu5iwZ/eXf THZbR9YcFbmeu4ZhfkwEm2LCuSdLzi41rgsIa65T8HWwBAA= 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: fix array-index-out-of-bounds read in add_missing_indices stbl is s8 but it must contain offsets into slot which can go from 0 to 127. Added a bound check for that error and return -EIO if the check fails. Also make jfs_readdir return with error if add_missing_indices returns with an error. The Linux kernel CVE team has assigned CVE-2025-38204 to this issue. Affected and fixed versions =========================== Fixed in 5.4.295 with commit 81af4b34fd72d390d7f237c6a545cc6d09707956 Fixed in 5.10.239 with commit bfa4655d28f338e68d345aed80d19be7999bbce2 Fixed in 5.15.186 with commit 44618bee303bed151ef3a525ff79fbd7689593b5 Fixed in 6.15.4 with commit c8399564a58fb6ea2ff21a6fd278417943cb51a5 Fixed in 6.16-rc1 with commit 5dff41a86377563f7a2b968aae00d25b4ceb37c9 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-38204 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_dtree.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/81af4b34fd72d390d7f237c6a545cc6d09707956 https://git.kernel.org/stable/c/bfa4655d28f338e68d345aed80d19be7999bbce2 https://git.kernel.org/stable/c/44618bee303bed151ef3a525ff79fbd7689593b5 https://git.kernel.org/stable/c/c8399564a58fb6ea2ff21a6fd278417943cb51a5 https://git.kernel.org/stable/c/5dff41a86377563f7a2b968aae00d25b4ceb37c9