CVE-2025-38415
Description
In the Linux kernel, the following vulnerability has been resolved: Squashfs: check return result of sb_min_blocksize Syzkaller reports an "UBSAN: shift-out-of-bounds in squashfs_bio_read" bug. Syzkaller forks multiple processes which after mounting the Squashfs filesystem, issues an ioctl("/dev/loop0", LOOP_SET_BLOCK_SIZE, 0x8000). Now if this ioctl occurs at the same time another process is in the process of mounting a Squashfs filesystem on /dev/loop0, the failure occurs. When this happens the following code in squashfs_fill_super() fails. ---- msblk->devblksize = sb_min_blocksize(sb, SQUASHFS_DEVBLK_SIZE); msblk->devblksize_log2 = ffz(~msblk->devblksize); ---- sb_min_blocksize() returns 0, which means msblk->devblksize is set to 0. As a result, ffz(~msblk->devblksize) returns 64, and msblk->devblksize_log2 is set to 64. This subsequently causes the UBSAN: shift-out-of-bounds in fs/squashfs/block.c:195:36 shift exponent 64 is too large for 64-bit type 'u64' (aka 'unsigned long long') This commit adds a check for a 0 return by sb_min_blocksize().
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
AlmaLinux Fixed 1 release
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | kernel-64k-devel-5.14.0-611.30.1.el9_7.aarch64.rpm |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 6.12.35-1 |
| sid | Fixed | 6.12.35-1 |
| forky | Fixed | 6.12.35-1 |
| bullseye | Fixed | 5.10.244-1 |
| bookworm | Fixed | 6.1.147-1 |
Red Hat Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | โ |
| 8 | Fixed | โ |
Rocky Linux Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | โ |
| 8 | Fixed | โ |
References
- https://errata.rockylinux.org/RLSA-2026:1661
- https://errata.rockylinux.org/RLSA-2026:1662
- https://access.redhat.com/errata/RHSA-2026:2212
- https://www.suse.com/security/cve/CVE-2025-38415.html
- https://errata.rockylinux.org/RLSA-2026:2212
- https://security-tracker.debian.org/tracker/CVE-2025-38415
- https://access.redhat.com/errata/RHSA-2026:1662
- https://bugzilla.redhat.com/2273187
- https://bugzilla.redhat.com/2373326
- https://bugzilla.redhat.com/2373354
- https://bugzilla.redhat.com/2383404
- https://bugzilla.redhat.com/2383487
- https://bugzilla.redhat.com/2394601
- https://bugzilla.redhat.com/2418876
- https://bugzilla.redhat.com/2419837
- https://bugzilla.redhat.com/2419902
- https://bugzilla.redhat.com/2426226
- https://errata.almalinux.org/8/ALSA-2026-1662.html
- https://access.redhat.com/errata/RHSA-2026:1661
- https://errata.almalinux.org/8/ALSA-2026-1661.html
- https://bugzilla.redhat.com/2363315
- https://bugzilla.redhat.com/2365032
- https://bugzilla.redhat.com/2383421
- https://bugzilla.redhat.com/2393191
- https://bugzilla.redhat.com/2414506
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.