# CVE-2022-49769: gfs2: Check sb\_bsize\_shift after reading superblock

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-05-01T14:09:07.526Z
- **Modified:** 2026-11-05T20:17:09.457Z

## 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

## 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

- Linux: \>= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, \< d6b1e8ea6f3418c3b461ad5a35cdc93c996b2c87; \>= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, \< 1ad197097343568066a8ffaa27ee7d0ae6d9f476; \>= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, \< 15c83fa0fd659dd9fbdc940a560b61236e876a80; \>= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, \< 8b6534c9ae9dba5489703a19d8ba6c8f2cfa33c2; \>= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, \< 5fa30be7ba81191b0a0c7239a89befc0c94286d5; \>= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, \< 28275a7c84d21c55ab3282d897f284d8d527173c; \>= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, \< 16670534c7cff1acd918a6a5ec751b14e7436b76; \>= b3b94faa5fe5968827ba0640ee9fba4b3e7f736e, \< 670f8ce56dd0632dc29a0322e188cc73ce3c6b92 (cvelist)
- Linux: 2.6.19 (cvelist)

## Mitigation

- Upgrade Linux to 670f8ce56dd0632dc29a0322e188cc73ce3c6b92 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/d6b1e8ea6f3418c3b461ad5a35cdc93c996b2c87>
- patch: <https://git.kernel.org/stable/c/1ad197097343568066a8ffaa27ee7d0ae6d9f476>
- patch: <https://git.kernel.org/stable/c/15c83fa0fd659dd9fbdc940a560b61236e876a80>
- patch: <https://git.kernel.org/stable/c/8b6534c9ae9dba5489703a19d8ba6c8f2cfa33c2>
- patch: <https://git.kernel.org/stable/c/5fa30be7ba81191b0a0c7239a89befc0c94286d5>
- patch: <https://git.kernel.org/stable/c/28275a7c84d21c55ab3282d897f284d8d527173c>
- patch: <https://git.kernel.org/stable/c/16670534c7cff1acd918a6a5ec751b14e7436b76>
- patch: <https://git.kernel.org/stable/c/670f8ce56dd0632dc29a0322e188cc73ce3c6b92>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49769>

HTML: <https://flawdb.com/CVE-2022-49769> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49769>
