Skip to contentSkip to conversation

CVE-2024-56597: jfs: fix shift-out-of-bounds in dbSplit

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 27, 2024

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

jfs: fix shift-out-of-bounds in dbSplit

When dmt_budmin is less than zero, it causes errors
in the later stages. Added a check to return an error beforehand in dbAllocCtl itself.

The Linux kernel CVE team has assigned CVE-2024-56597 to this issue.

Affected and fixed versions
===========================

	Fixed in 5.4.287 with commit bbb24ce7f06ef9b7c05beb9340787cbe9fd3d08e
	Fixed in 5.10.231 with commit df7c76636952670b31bd6c12b3aed3c502122273
	Fixed in 5.15.174 with commit 6676034aa753aa448beb30dbd75630927ba7cd96
	Fixed in 6.1.120 with commit 51a203470f502a64a3da8dcea51c4748e8267a6c
	Fixed in 6.6.66 with commit c56245baf3fd1f79145dd7408e3ead034b74255c
	Fixed in 6.12.5 with commit 52756a57e978e2706543a254f88f266cc6702f36
	Fixed in 6.13-rc1 with commit a5f5e4698f8abbb25fe4959814093fb5bfa1aa9d

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-56597

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/bbb24ce7f06ef9b7c05beb9340787cbe9fd3d08e
	https://git.kernel.org/stable/c/df7c76636952670b31bd6c12b3aed3c502122273
	https://git.kernel.org/stable/c/6676034aa753aa448beb30dbd75630927ba7cd96
	https://git.kernel.org/stable/c/51a203470f502a64a3da8dcea51c4748e8267a6c
	https://git.kernel.org/stable/c/c56245baf3fd1f79145dd7408e3ead034b74255c
	https://git.kernel.org/stable/c/52756a57e978e2706543a254f88f266cc6702f36
	https://git.kernel.org/stable/c/a5f5e4698f8abbb25fe4959814093fb5bfa1aa9d