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 262A3446B4 for ; Tue, 21 May 2024 15:38:22 +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=1716305902; cv=none; b=UepCG/Je5sVr40lkhhrW9//O29kaGD/5fz3sW0ih8AiAHGsY1Us/GwyadM/CYINZEA0rF4Vzmd1ErkY0go/aOsaMcks7Vsgfcwia0pUDguxkmbc9utuDL/o9P+knr08caj2A/kU04LttStRYhcxgnOQoQyz67ad6s/YgrecvU+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305902; c=relaxed/simple; bh=cMogu77LSGPh45HHjZviX889NDosXklgC3p3VIeTOfA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cUVOMo1ZCTvrUC+e5H0gmlEGu6txeL+RRlR5srF5tpfpIMEqqgaGg/nSCHie+aQnwQLpf4jBwpBhw8ER2cNoTjXIFxrMR91GxJ+euC9XHUV0yZPrRN3d6rATYYUBypGZteu3LR2KkSe2Pu2hvTpUAV0cakEph+ivncd3tmdroXU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m6sfXZGO; 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="m6sfXZGO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2EB4C2BD11; Tue, 21 May 2024 15:38:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305902; bh=cMogu77LSGPh45HHjZviX889NDosXklgC3p3VIeTOfA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=m6sfXZGOj91WZvjGC9G3OglRIGIMEOifncGMueyTRN2VHsRhA6NPXcHd/x7FTfpFO 6vYmGKn/edACW5B3Qo29vtMusNZmKlwD9LkRfcek4rMMajEdOOjOJHRckEoutPcSvO o03hzb6u8gTIQYdygBzOb9uV/asCxnO6iD+iCFSg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52804: fs/jfs: Add validity check for db_maxag and db_agpref Date: Tue, 21 May 2024 17:31:40 +0200 Message-ID: <2024052100-CVE-2023-52804-b817@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=2808; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cMogu77LSGPh45HHjZviX889NDosXklgC3p3VIeTOfA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++0x8eiwWLCiRFJn46cDVqJ07z6kzhv8JDc6fWcXfu zhD/U1URywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk4TmGBUfmPvkdofNQ2Srr JHP7+VP2za8N9zIs2LH7cv/JY9ocqaFvs53MfN/alE9dBwA= 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: fs/jfs: Add validity check for db_maxag and db_agpref Both db_maxag and db_agpref are used as the index of the db_agfree array, but there is currently no validity check for db_maxag and db_agpref, which can lead to errors. The following is related bug reported by Syzbot: UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:639:20 index 7936 is out of range for type 'atomic_t[128]' Add checking that the values of db_maxag and db_agpref are valid indexes for the db_agfree array. The Linux kernel CVE team has assigned CVE-2023-52804 to this issue. Affected and fixed versions =========================== Fixed in 4.14.331 with commit a0649e2dd4a3 Fixed in 4.19.300 with commit ce15b0f1a431 Fixed in 5.4.262 with commit 32bd8f1cbcf8 Fixed in 5.10.202 with commit c6c8863fb3f5 Fixed in 5.15.140 with commit 1f74d336990f Fixed in 6.1.64 with commit 5013f8269887 Fixed in 6.5.13 with commit dca403bb035a Fixed in 6.6.3 with commit 2323de34a3ae Fixed in 6.7 with commit 64933ab7b048 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-52804 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/a0649e2dd4a3595b5595a29d0064d047c2fae2fb https://git.kernel.org/stable/c/ce15b0f1a431168f07b1cc6c9f71206a2db5c809 https://git.kernel.org/stable/c/32bd8f1cbcf8b663e29dd1f908ba3a129541a11b https://git.kernel.org/stable/c/c6c8863fb3f57700ab583d875adda04caaf2278a https://git.kernel.org/stable/c/1f74d336990f37703a8eee77153463d65b67f70e https://git.kernel.org/stable/c/5013f8269887642cca784adc8db9b5f0b771533f https://git.kernel.org/stable/c/dca403bb035a565bb98ecc1dda5d30f676feda40 https://git.kernel.org/stable/c/2323de34a3ae61a9f9b544c18583f71cea86721f https://git.kernel.org/stable/c/64933ab7b04881c6c18b21ff206c12278341c72e