{"id":"CVE-2022-50567","summary":"fs: jfs: fix shift-out-of-bounds in dbAllocAG","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs: jfs: fix shift-out-of-bounds in dbAllocAG\n\nSyzbot found a crash : UBSAN: shift-out-of-bounds in dbAllocAG. The\nunderlying bug is the missing check of bmp-\u003edb_agl2size. The field can\nbe greater than 64 and trigger the shift-out-of-bounds.\n\nFix this bug by adding a check of bmp-\u003edb_agl2size in dbMount since this\nfield is used in many following functions. The upper bound for this\nfield is L2MAXL2SIZE - L2MAXAG, thanks for the help of Dave Kleikamp.\nNote that, for maintenance, I reorganized error handling code of dbMount.","modified":"2026-04-02T08:28:38.096299Z","published":"2025-10-22T13:23:24.508Z","related":["SUSE-SU-2025:4111-1","SUSE-SU-2025:4139-1","SUSE-SU-2025:4149-1","SUSE-SU-2025:4320-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50567.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0536f76a2bca83d1a3740517ba22cc93a44b3099"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2c575c8905f7a8b32d5611b91856b69bac2a5bf1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3115313cf03113e87c87adee18ee49a20bbdb9ba"},{"type":"WEB","url":"https://git.kernel.org/stable/c/359616ce587e524107730504891afa4b1a8be58c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3e997e4ce8ae7ab89d72334120f6aee49c5bbdbd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/67973caae78e21ee46a7281aaa8ca364eb9c444f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/898f706695682b9954f280d95e49fa86ffa55d08"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d3b486946a4e62c7ef6023f7d9c1d049051384ba"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eea87acb6027be3dd4d3c57186bb22800d57fdda"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50567.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50567"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"},{"fixed":"d3b486946a4e62c7ef6023f7d9c1d049051384ba"},{"fixed":"3115313cf03113e87c87adee18ee49a20bbdb9ba"},{"fixed":"eea87acb6027be3dd4d3c57186bb22800d57fdda"},{"fixed":"359616ce587e524107730504891afa4b1a8be58c"},{"fixed":"3e997e4ce8ae7ab89d72334120f6aee49c5bbdbd"},{"fixed":"0536f76a2bca83d1a3740517ba22cc93a44b3099"},{"fixed":"2c575c8905f7a8b32d5611b91856b69bac2a5bf1"},{"fixed":"67973caae78e21ee46a7281aaa8ca364eb9c444f"},{"fixed":"898f706695682b9954f280d95e49fa86ffa55d08"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50567.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.12"},{"fixed":"4.9.337"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"4.14.303"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50567.json"}}],"schema_version":"1.7.5"}