{"id":"CVE-2022-50567","aliases":["CVE-2022-50567"],"related":[],"kind":"vulnerability","state":"published","title":"fs: jfs: fix shift-out-of-bounds in dbAllocAG","summary":"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->db_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->db_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->db_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->db_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.","source":"cvelist"}],"published":"2025-10-22T13:23:24.508Z","modified":"2026-08-05T08:59:08.386Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"d3b486946a4e62c7ef6023f7d9c1d049051384ba","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"3115313cf03113e87c87adee18ee49a20bbdb9ba","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"eea87acb6027be3dd4d3c57186bb22800d57fdda","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"359616ce587e524107730504891afa4b1a8be58c","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"3e997e4ce8ae7ab89d72334120f6aee49c5bbdbd","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"0536f76a2bca83d1a3740517ba22cc93a44b3099","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"2c575c8905f7a8b32d5611b91856b69bac2a5bf1","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"67973caae78e21ee46a7281aaa8ca364eb9c444f","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"898f706695682b9954f280d95e49fa86ffa55d08","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/d3b486946a4e62c7ef6023f7d9c1d049051384ba","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3115313cf03113e87c87adee18ee49a20bbdb9ba","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eea87acb6027be3dd4d3c57186bb22800d57fdda","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/359616ce587e524107730504891afa4b1a8be58c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e997e4ce8ae7ab89d72334120f6aee49c5bbdbd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0536f76a2bca83d1a3740517ba22cc93a44b3099","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c575c8905f7a8b32d5611b91856b69bac2a5bf1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/67973caae78e21ee46a7281aaa8ca364eb9c444f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/898f706695682b9954f280d95e49fa86ffa55d08","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50567","url":"https://www.cve.org/CVERecord?id=CVE-2022-50567","licence":"CVE Terms of Use","modified":"2026-08-05T08:59:08.386Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50567","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50567","licence":"Public domain","modified":"2026-08-04T10:18:19.500Z"}],"updatedAt":"2026-11-25T22:58:21.276Z","epss":{"score":0.00176,"percentile":0.07405,"date":"2026-12-01T12:00:22.000Z"}}