CVE-2022-50333: fs: jfs: fix shift-out-of-bounds in dbDiscardAG
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
fs: jfs: fix shift-out-of-bounds in dbDiscardAG
This should be applied to most URSAN bugs found recently by syzbot, by guarding the dbMount. As syzbot feeding rubbish into the bmap descriptor.
The Linux kernel CVE team has assigned CVE-2022-50333 to this issue.
Affected and fixed versions
===========================
Fixed in 4.9.337 with commit f8d4d0bac603616e2fa4a3907e81ed13f8f3c380 Fixed in 4.14.303 with commit 0183c8f46ab5bcd0740f41c87f5141c6ca2bf1bb Fixed in 4.19.270 with commit 624843f1bac448150f6859999c72c4841c14a2e3 Fixed in 5.4.229 with commit 50163a115831ef4e6402db5a7ef487d1989d7249 Fixed in 5.10.163 with commit 911999b193735cd378517b6cd5fe585ee345d49c Fixed in 5.15.86 with commit 10b87da8fae79c7daf5eda6a9e4f1d31b85b4d92 Fixed in 6.0.16 with commit ab5cd3d62c2493eca3337e7d0178cc7bd819ca64 Fixed in 6.1.2 with commit 3d340b684dcec5e34efc470227cd1c7d2df121ad Fixed in 6.2 with commit 25e70c6162f207828dd405b432d8f2a98dbf7082
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-2022-50333
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/f8d4d0bac603616e2fa4a3907e81ed13f8f3c380 https://git.kernel.org/stable/c/0183c8f46ab5bcd0740f41c87f5141c6ca2bf1bb https://git.kernel.org/stable/c/624843f1bac448150f6859999c72c4841c14a2e3 https://git.kernel.org/stable/c/50163a115831ef4e6402db5a7ef487d1989d7249 https://git.kernel.org/stable/c/911999b193735cd378517b6cd5fe585ee345d49c https://git.kernel.org/stable/c/10b87da8fae79c7daf5eda6a9e4f1d31b85b4d92 https://git.kernel.org/stable/c/ab5cd3d62c2493eca3337e7d0178cc7bd819ca64 https://git.kernel.org/stable/c/3d340b684dcec5e34efc470227cd1c7d2df121ad https://git.kernel.org/stable/c/25e70c6162f207828dd405b432d8f2a98dbf7082