CVE-2022-50567

fs: jfs: fix shift-out-of-bounds in dbAllocAG

HIGH
7.8
CVSS Score
Published: October 22, 2025 at 01:23 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: fs: jfs: fix shift-out-of-bounds in dbAllocAG Syzbot found a crash : UBSAN: shift-out-of-bounds in dbAllocAG. The underlying bug is the missing check of bmp->db_agl2size. The field can be greater than 64 and trigger the shift-out-of-bounds. Fix this bug by adding a check of bmp->db_agl2size in dbMount since this field is used in many following functions. The upper bound for this field is L2MAXL2SIZE - L2MAXAG, thanks for the help of Dave Kleikamp. Note that, for maintenance, I reorganized error handling code of dbMount.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.12 ≤ v < 4.14.3032.6.12 ≤ v < 4.19.2702.6.12 ≤ v < 4.9.3372.6.12 ≤ v < 5.10.1632.6.12 ≤ v < 5.15.862.6.12 ≤ v < 5.4.2292.6.12 ≤ v < 6.0.162.6.12 ≤ v < 6.1.22.6.12 ≤ v < 6.21da177e4c3f41524e886b7f1b8a0c1fc7321cac22.6.12
Vendor states this is fixed in 0536f76a2bca83d1a3740517ba22cc93a44b3099 (fixed)
Vendor states this is fixed in 2c575c8905f7a8b32d5611b91856b69bac2a5bf1 (fixed)
Vendor states this is fixed in 3115313cf03113e87c87adee18ee49a20bbdb9ba (fixed)
Vendor states this is fixed in 359616ce587e524107730504891afa4b1a8be58c (fixed)
Vendor states this is fixed in 3e997e4ce8ae7ab89d72334120f6aee49c5bbdbd (fixed)
Vendor states this is fixed in 67973caae78e21ee46a7281aaa8ca364eb9c444f (fixed)
Vendor states this is fixed in 898f706695682b9954f280d95e49fa86ffa55d08 (fixed)
Vendor states this is fixed in d3b486946a4e62c7ef6023f7d9c1d049051384ba (fixed)
Vendor states this is fixed in eea87acb6027be3dd4d3c57186bb22800d57fdda (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 4.14.303 (unaffected)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 4.9.337 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card