CVE-2022-49769
gfs2: Check sb_bsize_shift after reading superblock
Mitigation
- Upgrade Linux to 670f8ce56dd0632dc29a0322e188cc73ce3c6b92 or later.
Who should check
- Anyone running Linux >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < d6b1e8ea6f3418c3b461ad5a35cdc93c996b2c87; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 1ad197097343568066a8ffaa27ee7d0ae6d9f476; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 15c83fa0fd659dd9fbdc940a560b61236e876a80; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 8b6534c9ae9dba5489703a19d8ba6c8f2cfa33c2; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 5fa30be7ba81191b0a0c7239a89befc0c94286d5; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 28275a7c84d21c55ab3282d897f284d8d527173c; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 16670534c7cff1acd918a6a5ec751b14e7436b76; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 670f8ce56dd0632dc29a0322e188cc73ce3c6b92
- Anyone running Linux 2.6.19
Vulnerability facts
- Affected
- Linux >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < d6b1e8ea6f3418c3b461ad5a35cdc93c996b2c87; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 1ad197097343568066a8ffaa27ee7d0ae6d9f476; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 15c83fa0fd659dd9fbdc940a560b61236e876a80; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 8b6534c9ae9dba5489703a19d8ba6c8f2cfa33c2; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 5fa30be7ba81191b0a0c7239a89befc0c94286d5; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 28275a7c84d21c55ab3282d897f284d8d527173c; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 16670534c7cff1acd918a6a5ec751b14e7436b76; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 670f8ce56dd0632dc29a0322e188cc73ce3c6b92; Linux 2.6.19
- Fixed in
- Linux 1ad197097343568066a8ffaa27ee7d0ae6d9f476, Linux 15c83fa0fd659dd9fbdc940a560b61236e876a80, Linux 8b6534c9ae9dba5489703a19d8ba6c8f2cfa33c2, Linux 5fa30be7ba81191b0a0c7239a89befc0c94286d5, Linux 28275a7c84d21c55ab3282d897f284d8d527173c, Linux 16670534c7cff1acd918a6a5ec751b14e7436b76, Linux 670f8ce56dd0632dc29a0322e188cc73ce3c6b92
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: gfs2: Check sb_bsize_shift after reading superblock Fuzzers like to scribble over sb_bsize_shift but in reality it's very unlikely that this field would be corrupted on its own. Nevertheless it should be checked to avoid the possibility of messy mount errors due to bad calculations. It's always a fixed value based on the block size so we can just check that it's the expected value. Tested with: mkfs.gfs2 -O -p lock_nolock /dev/vdb for i in 0 -1 64 65 32 33; do gfs2_edit -p sb field sb_bsize_shift $i /dev/vdb mount /dev/vdb /mnt/test && umount /mnt/test done Before this patch we get a withdraw after [ 76.413681] gfs2: fsid=loop0.0: fatal: invalid metadata block [ 76.413681] bh = 19 (type: exp=5, found=4) [ 76.413681] function = gfs2_meta_buffer, file = fs/gfs2/meta_io.c, line = 492 and with UBSAN configured we also get complaints like [ 76.373395] UBSAN: shift-out-of-bounds in fs/gfs2/ops_fstype.c:295:19 [ 76.373815] shift exponent 4294967287 is too large for 64-bit type 'long unsigned int' After the patch, these complaints don't appear, mount fails immediately and we get an explanation in dmesg.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < d6b1e8ea6f3418c3b461ad5a35cdc93c996b2c87; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 1ad197097343568066a8ffaa27ee7d0ae6d9f476; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 15c83fa0fd659dd9fbdc940a560b61236e876a80; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 8b6534c9ae9dba5489703a19d8ba6c8f2cfa33c2; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 5fa30be7ba81191b0a0c7239a89befc0c94286d5; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 28275a7c84d21c55ab3282d897f284d8d527173c; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 16670534c7cff1acd918a6a5ec751b14e7436b76; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 670f8ce56dd0632dc29a0322e188cc73ce3c6b92 | — | cvelist |
| Linux | 2.6.19 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-49769. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-49769.md Affected: Linux >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < d6b1e8ea6f3418c3b461ad5a35cdc93c996b2c87; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 1ad197097343568066a8ffaa27ee7d0ae6d9f476; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 15c83fa0fd659dd9fbdc940a560b61236e876a80; >= b3b94faa5fe5968827ba064… Fixed in: Linux 1ad197097343568066a8ffaa27ee7d0ae6d9f476, Linux 15c83fa0fd659dd9fbdc940a560b61236e876a80, Linux 8b6534c9ae9dba5489703a19d8ba6c8f2cfa33c2, Linux 5fa30be7ba81191b0a0c7239a89befc0c94286d5, Linux 28275a7c84d21c55ab3282d897f284d8d527173c, Linux 16670534c7cff1acd918a6a5ec751b14e7436b76, Linux 670f8… Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/d6b1e8ea6f3418c3b461ad5a35cdc93c996b2c87
- https://git.kernel.org/stable/c/1ad197097343568066a8ffaa27ee7d0ae6d9f476
- https://git.kernel.org/stable/c/15c83fa0fd659dd9fbdc940a560b61236e876a80
- https://git.kernel.org/stable/c/8b6534c9ae9dba5489703a19d8ba6c8f2cfa33c2
- https://git.kernel.org/stable/c/5fa30be7ba81191b0a0c7239a89befc0c94286d5
- https://git.kernel.org/stable/c/28275a7c84d21c55ab3282d897f284d8d527173c
- https://git.kernel.org/stable/c/16670534c7cff1acd918a6a5ec751b14e7436b76
- https://git.kernel.org/stable/c/670f8ce56dd0632dc29a0322e188cc73ce3c6b92
FAQ
Is CVE-2022-49769 being exploited?
There is no confirmed exploitation: CVE-2022-49769 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-49769?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-49769?
Linux >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < d6b1e8ea6f3418c3b461ad5a35cdc93c996b2c87; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 1ad197097343568066a8ffaa27ee7d0ae6d9f476; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 15c83fa0fd659dd9fbdc940a560b61236e876a80; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 8b6534c9ae9dba5489703a19d8ba6c8f2cfa33c2; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 5fa30be7ba81191b0a0c7239a89befc0c94286d5; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 28275a7c84d21c55ab3282d897f284d8d527173c; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 16670534c7cff1acd918a6a5ec751b14e7436b76; >= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, < 670f8ce56dd0632dc29a0322e188cc73ce3c6b92; Linux 2.6.19.
Is there a fix for CVE-2022-49769?
Yes. Fixed in Linux 1ad197097343568066a8ffaa27ee7d0ae6d9f476, Linux 15c83fa0fd659dd9fbdc940a560b61236e876a80, Linux 8b6534c9ae9dba5489703a19d8ba6c8f2cfa33c2, Linux 5fa30be7ba81191b0a0c7239a89befc0c94286d5, Linux 28275a7c84d21c55ab3282d897f284d8d527173c, Linux 16670534c7cff1acd918a6a5ec751b14e7436b76, Linux 670f8ce56dd0632dc29a0322e188cc73ce3c6b92. Upgrade Linux to 670f8ce56dd0632dc29a0322e188cc73ce3c6b92 or later.
How do I check if I'm affected by CVE-2022-49769?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.