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.
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade python-perfUpgrade kernel-toolsUpgrade kernel-livepatch-4.14.301-224.520Upgrade kernel-debuginfo-common-x86_64Upgrade python-perf-debuginfoUpgrade bpftool-debuginfoUpgrade kernel-headersUpgrade kernel-debuginfoUpgrade kernel-livepatch-5.10.157-139.675Upgrade kernelUpgrade kernel-tools-debuginfoUpgrade perf-debuginfoUpgrade kernel-develUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-tools-develUpgrade bpftoolUpgrade perf | Jun 23, 2025 | May 1, 2025 |
| Debian | — | Upgrade linux | May 5, 2025 | May 1, 2025 |
| Huawei Euleros 2_0_sp10 | — | Upgrade kernel-tools-libsUpgrade python3-perfUpgrade kernel-toolsUpgrade kernel-abi-stablelistsUpgrade kernel | Sep 15, 2025 | Sep 9, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | May 1, 2025 |
| Ubuntu | — | Upgrade linux-ibmUpgrade linux-intel-iotgUpgrade linux-bluefieldUpgrade linux-xilinx-zynqmpUpgrade linux-aws-5.15Upgrade linux-aws-hweUpgrade linux-fipsUpgrade linux-gcp-5.4Upgrade linux-gcpUpgrade linux-nvidiaUpgrade linux-aws-fipsUpgrade linux-gcp-5.15Upgrade linux-realtimeUpgrade linux-lowlatency-hwe-5.15Upgrade linux-azure-fde-5.15Upgrade linux-oracle-5.15Upgrade linux-oracle-5.4Upgrade linux-azure-5.15Upgrade linux-raspi-5.4Upgrade linux-riscv-5.15Upgrade linux-nvidia-tegra-5.15Upgrade linux-gkeopUpgrade linux-gkeUpgrade linux-intel-iot-realtimeUpgrade linux-oracleUpgrade linux-kvmUpgrade linux-hwe-5.15Upgrade linuxUpgrade linux-intel-iotg-5.15Upgrade linux-raspiUpgrade linux-iotUpgrade linux-hweUpgrade linux-azure-4.15Upgrade linux-azure-5.4Upgrade linux-aws-5.4Upgrade linux-ibm-5.4Upgrade linux-azureUpgrade linux-awsUpgrade linux-gcp-4.15Upgrade linux-gcp-fipsUpgrade linux-azure-fipsUpgrade linux-hwe-5.4Upgrade linux-lowlatency | May 6, 2025 | May 1, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | May 1, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub