
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-38415 is a shift-out-of-bounds vulnerability in the Linux kernel's Squashfs filesystem driver, specifically in the squashfs_fill_super() function. It was discovered via Syzkaller fuzzing and publicly disclosed on July 25, 2025. The flaw affects Linux kernel versions from 2.6.29 through multiple stable branches, with fixed versions including 5.4.295, 5.10.239, 5.15.186, 6.1.142, 6.6.94, 6.12.34, 6.15.3, and 6.16-rc1. It carries a CVSS v3.1 base score of 7.8 (High) (Red Hat CVE, Feedly).
The root cause is a missing return-value check on sb_min_blocksize() in squashfs_fill_super() (CWE-787: Out-of-bounds Write). When a race condition occurs — specifically when an ioctl("/dev/loop0", LOOP_SET_BLOCK_SIZE, 0x8000) is issued concurrently with a Squashfs mount on the same loop device — sb_min_blocksize() can return 0. This sets msblk->devblksize to 0, causing ffz(~msblk->devblksize) to return 64, and msblk->devblksize_log2 is then set to 64. A subsequent shift operation in fs/squashfs/block.c:195 uses this value as a shift exponent for a 64-bit unsigned integer, triggering a UBSAN shift-out-of-bounds error. Exploitation requires local access and the ability to trigger concurrent filesystem mount and ioctl operations (Red Hat CVE).
Successful exploitation can cause a kernel crash or system instability due to undefined behavior from the out-of-bounds shift operation, resulting in a denial of service (availability impact: High). The CVSS score also reflects potential high confidentiality and integrity impacts, consistent with local privilege escalation scenarios that can arise from kernel memory corruption. The vulnerability is limited to systems where local users can mount Squashfs filesystems and issue loop device ioctls concurrently (Red Hat CVE, Feedly).
The primary remediation is to update to a patched Linux kernel version. Fixed versions include: 5.4.295, 5.10.239, 5.15.186, 6.1.142, 6.6.94, 6.12.34, 6.15.3, and 6.16-rc1 (Red Hat CVE). Downstream distributions including Red Hat (RHSA-2026:1661, RHSA-2026:1662, and others), Ubuntu (USN-7769-1 through USN-7775-3), AlmaLinux, Rocky Linux, Amazon Linux 2, Oracle Linux, and Debian have issued or are issuing updated kernel packages. As a workaround, restricting local user privileges to prevent concurrent Squashfs mounting and loop device ioctl operations can reduce exposure until patching is feasible.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."