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 kernel-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-tools-debuginfoUpgrade bpftoolUpgrade kernel-develUpgrade kernel-tools-develUpgrade kernel-livepatch-5.10.157-139.675Upgrade perf-debuginfoUpgrade perfUpgrade kernelUpgrade kernel-headersUpgrade python-perf-debuginfoUpgrade python-perfUpgrade kernel-toolsUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-livepatch-4.14.301-224.520Upgrade bpftool-debuginfo | Jun 23, 2025 | May 1, 2025 |
| Debian | — | Upgrade linux | May 5, 2025 | May 1, 2025 |
| Huawei Euleros 2_0_sp10 | — | Upgrade kernel-abi-stablelistsUpgrade kernel-toolsUpgrade kernelUpgrade python3-perfUpgrade kernel-tools-libs | Sep 15, 2025 | Sep 9, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | May 1, 2025 |
| Ubuntu | — | Upgrade linux-azureUpgrade linux-ibm-5.4Upgrade linux-azure-5.4Upgrade linux-azure-fipsUpgrade linux-azure-4.15Upgrade linux-iotUpgrade linux-aws-5.4Upgrade linux-gcp-fipsUpgrade linux-hweUpgrade linux-hwe-5.4Upgrade linux-intel-iotg-5.15Upgrade linux-raspiUpgrade linux-gcp-4.15Upgrade linuxUpgrade linux-awsUpgrade linux-hwe-5.15Upgrade linux-lowlatencyUpgrade linux-raspi-5.4Upgrade linux-aws-5.15Upgrade linux-gkeUpgrade linux-riscv-5.15Upgrade linux-azure-5.15Upgrade linux-kvmUpgrade linux-azure-fde-5.15Upgrade linux-oracle-5.15Upgrade linux-xilinx-zynqmpUpgrade linux-gcpUpgrade linux-intel-iotgUpgrade linux-oracle-5.4Upgrade linux-nvidia-tegra-5.15Upgrade linux-ibmUpgrade linux-oracleUpgrade linux-intel-iot-realtimeUpgrade linux-realtimeUpgrade linux-fipsUpgrade linux-bluefieldUpgrade linux-nvidiaUpgrade linux-gcp-5.15Upgrade linux-lowlatency-hwe-5.15Upgrade linux-gcp-5.4Upgrade linux-gkeopUpgrade linux-aws-fipsUpgrade linux-aws-hwe | 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