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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 2.6.19 | 4.9.334 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 6.0.10-1 | — |
| Debian 13 | linux | 6.0.10-1 | — |
| Debian 12 | linux | 6.0.10-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | 5.15.0-1014.16 | — |
| Ubuntu 24.04 LTS | linux-realtime +1 | No fix yet | — |
| Ubuntu 22.04 LTS | linux +1 | 5.15.0-67.74 | — |
| Ubuntu 22.04 LTS | linux-aws | 5.15.0-1031.35 | — |
| Ubuntu 22.04 LTS | linux-azure | 5.15.0-1034.41 | — |
| Ubuntu 22.04 LTS | linux-azure-fde | 5.15.0-1034.41.1 | — |
| Ubuntu 22.04 LTS | linux-gcp | 5.15.0-1030.37 | — |
| Ubuntu 22.04 LTS | linux-gke | 5.15.0-1028.33 | — |
| Ubuntu 22.04 LTS | linux-gkeop | 5.15.0-1016.21 | — |
| Ubuntu 22.04 LTS | linux-ibm | 5.15.0-1026.29 | — |
| Ubuntu 22.04 LTS | linux-intel-iotg | 5.15.0-1026.31 | — |
| Ubuntu 22.04 LTS | linux-kvm | 5.15.0-1029.34 | — |
| Ubuntu 22.04 LTS | linux-nvidia | 5.15.0-1023.23 | — |
| Ubuntu 22.04 LTS | linux-oracle | 5.15.0-1030.36 | — |
| Ubuntu 22.04 LTS | linux-raspi | 5.15.0-1025.27 | — |
| Ubuntu 22.04 LTS | linux-riscv +31 | No fix yet | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-144.161 | — |
| Ubuntu 20.04 LTS | linux-aws | 5.4.0-1097.105 | — |
| Ubuntu 20.04 LTS | linux-aws-5.15 | 5.15.0-1031.35~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1104.110 | — |
| Ubuntu 20.04 LTS | linux-azure-5.15 | 5.15.0-1034.41~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1059.65 | — |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1101.110 | — |
| Ubuntu 20.04 LTS | linux-gcp-5.15 | 5.15.0-1030.37~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-hwe-5.15 +1 | 5.15.0-67.74~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-ibm | 5.4.0-1045.50 | — |
| Ubuntu 20.04 LTS | linux-intel-iotg-5.15 | 5.15.0-1026.31~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-iot | 5.4.0-1013.15 | — |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1087.93 | — |
| Ubuntu 20.04 LTS | linux-nvidia-tegra-5.15 | 5.15.0-1014.14~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1094.103 | — |
| Ubuntu 20.04 LTS | linux-oracle-5.15 | 5.15.0-1030.36~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1081.92 | — |
| Ubuntu 20.04 LTS | linux-riscv-5.15 | 5.15.0-1030.34~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-xilinx-zynqmp | 5.4.0-1022.26 | — |
| Ubuntu 18.04 LTS | linux | 4.15.0-206.217 | — |
| Ubuntu 18.04 LTS | linux-aws | 4.15.0-1151.164 | — |
| Ubuntu 18.04 LTS | linux-aws-5.4 | 5.4.0-1097.105~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-azure-4.15 | 4.15.0-1162.177 | — |
| Ubuntu 18.04 LTS | linux-azure-5.4 | 5.4.0-1104.110~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp-4.15 | 4.15.0-1146.162 | — |
| Ubuntu 18.04 LTS | linux-gcp-5.4 | 5.4.0-1101.110~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-hwe-5.4 | 5.4.0-144.161~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-ibm-5.4 | 5.4.0-1045.50~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-kvm | 4.15.0-1136.141 | — |
| Ubuntu 18.04 LTS | linux-oracle | 4.15.0-1115.126 | — |
| Ubuntu 18.04 LTS | linux-oracle-5.4 | 5.4.0-1094.103~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-raspi-5.4 | 5.4.0-1081.92~18.04.1 | — |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-intel-iot-realtime | 5.15.0-1022.27 | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime | 5.15.0-1033.36 | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-aws-fips | 5.4.0-1099.107+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1104.110+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1073.82 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-gcp-fips | 5.4.0-1101.110+fips1 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-aws-fips | 4.15.0-2090.96 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-azure-fips | 4.15.0-2071.77 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips | 4.15.0-1108.119 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-gcp-fips | 4.15.0-2055.60 | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +2 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux-aws-hwe | 4.15.0-1151.164~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-azure | 4.15.0-1162.177~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-gcp | 4.15.0-1146.162~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-hwe | 4.15.0-206.217~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-oracle | 4.15.0-1115.126~16.04.1 | — |
| Ubuntu Pro 14.04 LTS | linux +2 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux-azure | 4.15.0-1162.177~14.04.1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | kernel-64kb +6 | 5.14.21-150500.55.110.1 | SUSE-SU-2025:02173-1 |
| SLES 15 SP5 | kernel-default-base | 5.14.21-150500.55.110.1.150500.6.51.3 | SUSE-SU-2025:02173-1 |
| SLES 15 SP4 | kernel-64kb +6 | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLES 15 SP4 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SLES 15 SP3 | kernel-64kb +7 | 5.3.18-150300.59.207.1 | SUSE-SU-2025:01982-1 |
| SLES 15 SP3 | kernel-default-base | 5.3.18-150300.59.207.1.150300.18.124.1 | SUSE-SU-2025:01982-1 |
| SLES 12 SP5 | kernel-syms +2 | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
Show 18 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP5 | kernel-default-base | 5.14.21-150500.55.110.1.150500.6.51.3 | SUSE-SU-2025:02173-1 |
| SLES for SAP 15 SP5 | kernel-docs +4 | 5.14.21-150500.55.110.1 | SUSE-SU-2025:02173-1 |
| SLES for SAP 15 SP4 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SLES for SAP 15 SP4 | kernel-docs +4 | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLES for SAP 15 SP3 | kernel-default-base | 5.3.18-150300.59.207.1.150300.18.124.1 | SUSE-SU-2025:01982-1 |
| SLES for SAP 15 SP3 | kernel-docs +5 | 5.3.18-150300.59.207.1 | SUSE-SU-2025:01982-1 |
| SLE Micro 5.5 | kernel-default-base | 5.14.21-150500.55.110.1.150500.6.51.3 | SUSE-SU-2025:02173-1 |
| SLE Micro 5.5 | kernel-rt +1 | 5.14.21-150500.13.97.1 | SUSE-SU-2025:01966-1 |
| SLE Micro 5.5 | kernel-source +1 | 5.14.21-150500.55.110.1 | SUSE-SU-2025:02173-1 |
| SLE Micro 5.4 | kernel-default | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLE Micro 5.4 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SLE Micro 5.4 | kernel-rt +1 | 5.14.21-150400.15.121.1 | SUSE-SU-2025:01918-1 |
| SLE Micro 5.3 | kernel-default | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLE Micro 5.3 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SLE Micro 5.3 | kernel-rt +1 | 5.14.21-150400.15.121.1 | SUSE-SU-2025:01918-1 |
| SLE Micro 5.2 | kernel-default | 5.3.18-150300.59.207.1 | SUSE-SU-2025:01982-1 |
| SLE Micro 5.2 | kernel-default-base | 5.3.18-150300.59.207.1.150300.18.124.1 | SUSE-SU-2025:01982-1 |
| SLE Micro 5.2 | kernel-rt +1 | 5.3.18-150300.211.1 | SUSE-SU-2025:01995-1 |
| SLE Micro 5.1 | kernel-default | 5.3.18-150300.59.207.1 | SUSE-SU-2025:01982-1 |
| SLE Micro 5.1 | kernel-default-base | 5.3.18-150300.59.207.1.150300.18.124.1 | SUSE-SU-2025:01982-1 |
| SLE Micro 5.1 | kernel-rt +1 | 5.3.18-150300.211.1 | SUSE-SU-2025:01995-1 |
| SLE Live Patching 15 SP5 | kernel-default | 5.14.21-150500.55.110.1 | SUSE-SU-2025:02173-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_27 | 1-150500.11.7.1 | SUSE-SU-2025:02173-1 |
| SLE Live Patching 15 SP4 | kernel-default | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLE Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4_Update_41 | 1-150400.9.3.1 | SUSE-SU-2025:02262-1 |
| SLE Live Patching 15 SP3 | kernel-default | 5.3.18-150300.59.207.1 | SUSE-SU-2025:01982-1 |
| SLE Live Patching 15 SP3 | kernel-livepatch-SLE15-SP3_Update_58 | 1-150300.7.3.1 | SUSE-SU-2025:01982-1 |
| SLE Live Patching 12 SP5 | kernel-default | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SLE Live Patching 12 SP5 | kgraft-patch-SLE12-SP5_Update_69 | 1-8.3.1 | SUSE-SU-2025:01983-1 |
| SLE HPC 15 SP5 | kernel-64kb +5 | 5.14.21-150500.55.110.1 | SUSE-SU-2025:02173-1 |
| SLE HPC 15 SP5 | kernel-default-base | 5.14.21-150500.55.110.1.150500.6.51.3 | SUSE-SU-2025:02173-1 |
| SLE HPC 15 SP4 | kernel-64kb +5 | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLE HPC 15 SP4 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SLE HPC 15 SP3 | kernel-64kb +6 | 5.3.18-150300.59.207.1 | SUSE-SU-2025:01982-1 |
| SLE HPC 15 SP3 | kernel-default-base | 5.3.18-150300.59.207.1.150300.18.124.1 | SUSE-SU-2025:01982-1 |
| SUSE Manager Server 4.3 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SUSE Manager Server 4.3 | kernel-syms +3 | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SUSE Manager Proxy 4.3 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SUSE Manager Proxy 4.3 | kernel-syms +2 | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SUSE Enterprise Storage 7.1 | kernel-64kb +6 | 5.3.18-150300.59.207.1 | SUSE-SU-2025:01982-1 |
| SUSE Enterprise Storage 7.1 | kernel-default-base | 5.3.18-150300.59.207.1.150300.18.124.1 | SUSE-SU-2025:01982-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | kernel-livepatch-4.14.301-224.520 | 1.0-0.amzn2 | ALAS2-2022-1903 |
| Amazon Linux 2 | perf +8 | 4.14.301-224.520.amzn2 | ALAS2-2022-1903 |
Advisories 8
- SUSE-SU-2025:01995-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:02262-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:01918-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:02173-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:01966-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:01982-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:01983-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2-2022-1903 Important: kernel security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 29, 2025
References
- 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