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 B67F9446B4 for ; Tue, 21 May 2024 15:36:44 +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=1716305804; cv=none; b=NlX87nH7JJ6lchQjNTT2rBeLPU3p9LRYSRkirVzaXj99CB/sKtPDZe9OAg9Z70R1Kz0+bo8LKiWy/gkPk/cad4tNEMv85aav4KWcOYvAsFEKPZN/+MGkOyyBcPei1ymaeqZSY8/AtdwK51aXk7AUPLCs7qgmQqM07wjbQtt67KE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305804; c=relaxed/simple; bh=bv9tZWZGo6CvLaydnooLiC6AUhTjw2nxCJjg7AfT+70=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fXXqfgNaUoOcdCixl7qbKXqT5rSAquNY+M0rLLXEvkdqV4TKc3DEaG61uXa7qRg3dgTz6oIsmcLtLzM88sjni3kYmc9w0MSVloS6lcmUt36n9X8WqScn3fsAMjii2kdjcm2lYmj7P5PnIOHE1j0aXE4I8iSDAFyWOKUDyFaalMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zNAtsZig; 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="zNAtsZig" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 412C6C2BD11; Tue, 21 May 2024 15:36:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305804; bh=bv9tZWZGo6CvLaydnooLiC6AUhTjw2nxCJjg7AfT+70=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zNAtsZigtDoo0lPcSZKUUMPdyXYMKy2AhTqnDQBF4UzCe3k//zJjkeYip3aDaxrLr szQ1C7PRcqdZpsVMaUQEpbhrOJh/NGBBTH9dfvrFk6wfq1ipy9ooiZ0JhZ0c5kp4Ne UX6PLjrY1xHVD1U3/jr1v0VSBcqV2oWNA3b7lWlc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52805: jfs: fix array-index-out-of-bounds in diAlloc Date: Tue, 21 May 2024 17:31:41 +0200 Message-ID: <2024052100-CVE-2023-52805-1338@gregkh> X-Mailer: git-send-email 2.45.1 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=2512; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bv9tZWZGo6CvLaydnooLiC6AUhTjw2nxCJjg7AfT+70=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++0wyapWmsB/r0dT/2ltg1/zE68KpJ/+2zrP5+fd3+ 5ztGelFHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRm5IMCy7tt3PMuSJ+VPb3 psNFBqZf7v06v4FhweUWnttVRTFp+xav0XSY4au87tYfdQA= 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: jfs: fix array-index-out-of-bounds in diAlloc Currently there is not check against the agno of the iag while allocating new inodes to avoid fragmentation problem. Added the check which is required. The Linux kernel CVE team has assigned CVE-2023-52805 to this issue. Affected and fixed versions =========================== Fixed in 4.14.331 with commit 2308d0fb0dc3 Fixed in 4.19.300 with commit cf7e3e84df36 Fixed in 5.4.262 with commit 7467ca10a5ff Fixed in 5.10.202 with commit 1ba7df5457dc Fixed in 5.15.140 with commit 64f062baf202 Fixed in 6.1.64 with commit 8c68af2af697 Fixed in 6.5.13 with commit 665b44e55c27 Fixed in 6.6.3 with commit 1708d0a9917f Fixed in 6.7 with commit 05d9ea1ceb62 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-52805 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_imap.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/2308d0fb0dc32446b4e6ca37cd09c30374bb64e9 https://git.kernel.org/stable/c/cf7e3e84df36a9953796c737f080712f631d7083 https://git.kernel.org/stable/c/7467ca10a5ff09b0e87edf6c4d2a4bfdee69cf2c https://git.kernel.org/stable/c/1ba7df5457dc1c1071c5f92ac11323533a6430e1 https://git.kernel.org/stable/c/64f062baf202b82f54987a3f614a6c8f3e466641 https://git.kernel.org/stable/c/8c68af2af697ba2ba3b138be0c6d72e2ce3a3d6d https://git.kernel.org/stable/c/665b44e55c2767a4f899c3b18f49e9e1c9983777 https://git.kernel.org/stable/c/1708d0a9917fea579cc9da3d87b154285abd2cd8 https://git.kernel.org/stable/c/05d9ea1ceb62a55af6727a69269a4fd310edf483