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 7BAFC1F5408 for ; Fri, 27 Dec 2024 14:59:13 +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=1735311553; cv=none; b=rZUQ1jCYNLDrE7QrbS9LQzjhQ9nw/aiir9k5u0rcG1hHF5y7koOwDr0DuTaoghLI58f0/Be9QMBmYUZJqnb2r9lI/lyPEpWPvO1LIvAN0rbULluw9PRaJZz89YZ9gyV4cToosr4BKHJ7KQdYFdyklsxB2T/seYVMgYW97M7Nne8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735311553; c=relaxed/simple; bh=mbW8gp/L0GqvbXHfKVhxWfR/WcZicC0KwSEz4C/K6yA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dYp6yuW1b1BtCT4IhTQ7ZJZdsNh+lhjwy/G7vISGnrZhI4TZa/RHvxDcWiLO8TQVYcWJnANqepvMzEo+ePX1gwarMMZTFA2/5neMEwRk9FdnI+GSfuFbBb4TcslgzKRSWfO87aSfrxoFZdddbaHCRziEk+Q7CMRC2WUhcADeuvI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DnNTMp8q; 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="DnNTMp8q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E059AC4CED0; Fri, 27 Dec 2024 14:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735311553; bh=mbW8gp/L0GqvbXHfKVhxWfR/WcZicC0KwSEz4C/K6yA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DnNTMp8qR1HDHIl9RC0Uo5U43yd7RbuLl8PrTpFsmh1I7qb9XuOF0cLmI8okms7Vd pqcT/UUdapyUL+0+pRLkc9K/zPhsVa3SIdMXCfhD8DQSPQ+bF+QBVcDbZ5v8XPHBzk 6CKvRmMW46fr6qbQsdpW9AkC15dZ1jdpqQzG0grU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56595: jfs: add a check to prevent array-index-out-of-bounds in dbAdjTree Date: Fri, 27 Dec 2024 15:51:02 +0100 Message-ID: <2024122701-CVE-2024-56595-0584@gregkh> X-Mailer: git-send-email 2.47.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=2474; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mbW8gp/L0GqvbXHfKVhxWfR/WcZicC0KwSEz4C/K6yA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5+65uUn1dsSrN+MquBXxRu/+3PHzj1cf5aM/Ob2JbB SpPBP6x64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ5F9lmB9xwrw54/zTl1Fv ted+a/sTVrp1einD/IRc77aTAbdr2b36X9hXZfVevul3HAA= 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: add a check to prevent array-index-out-of-bounds in dbAdjTree When the value of lp is 0 at the beginning of the for loop, it will become negative in the next assignment and we should bail out. The Linux kernel CVE team has assigned CVE-2024-56595 to this issue. Affected and fixed versions =========================== Fixed in 5.4.287 with commit b15000bcbecf27e0f7c0f149a409e5b865e28ca2 Fixed in 5.10.231 with commit 368a533152220b0a6f1142327d96c6b6361f3002 Fixed in 5.15.174 with commit a3d408870bc19b794646871bc4c3a5daa66f91c5 Fixed in 6.1.120 with commit 491487eeddccc4bb49f2e59d8c8f35bec89c15ca Fixed in 6.6.66 with commit 3b5d21b56c3774bc84eab0a93aaac22a4475e2c4 Fixed in 6.12.5 with commit 8a4311bbde702362fe7412045d06ab6767235dac Fixed in 6.13-rc1 with commit a174706ba4dad895c40b1d2277bade16dfacdcd9 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-2024-56595 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/b15000bcbecf27e0f7c0f149a409e5b865e28ca2 https://git.kernel.org/stable/c/368a533152220b0a6f1142327d96c6b6361f3002 https://git.kernel.org/stable/c/a3d408870bc19b794646871bc4c3a5daa66f91c5 https://git.kernel.org/stable/c/491487eeddccc4bb49f2e59d8c8f35bec89c15ca https://git.kernel.org/stable/c/3b5d21b56c3774bc84eab0a93aaac22a4475e2c4 https://git.kernel.org/stable/c/8a4311bbde702362fe7412045d06ab6767235dac https://git.kernel.org/stable/c/a174706ba4dad895c40b1d2277bade16dfacdcd9