CVE-2025-38415: Linux Kernel Squashfs Unchecked Block-Size Return Value
- Vendors
- Debian ProjectLinux
CVE-2025-38415 is an unchecked-return-value vulnerability in the Linux kernel Squashfs filesystem implementation. A race between mounting a Squashfs filesystem and changing the underlying loop device's block size can cause sb_min_blocksize() in squashfs_fill_super() to return zero. The return value is used without validation, setting msblk->devblksize to zero. On the reported 64-bit configuration, ffz(~msblk->devblksize) subsequently yields 64, which is stored in msblk->devblksize_log2. Later use in squashfs_bio_read() produces a shift exponent of 64 for a 64-bit integer, triggering undefined behavior and a UBSAN shift-out-of-bounds diagnostic. The flaw can cause local denial of service and is also classified by vendors as a memory-corruption issue.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A local attacker able to trigger the mount/block-size race may cause kernel instability, a kernel crash, or denial of service affecting the host. Vendor classifications also identify possible memory corruption. Arbitrary code execution, privilege escalation, and information disclosure are not established by the specific technical details available for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Until patched, restrict untrusted local users' ability to mount Squashfs filesystems and manipulate loop devices. In particular, prevent untrusted workloads from changing a loop device's block size while a filesystem is being mounted on it. These restrictions reduce exposure; no vendor-supported workaround replacing the kernel fix is identified.
Remediation
Patch, then assume compromise.
Install the applicable vendor kernel update and reboot into the patched kernel. The upstream fix checks whether sb_min_blocksize() returns zero and aborts the mount rather than deriving a shift count from the invalid value. Examples of fixed releases include Google Container-Optimized OS csql-kernel-6_1 and related packages at 18244.448.6 or later; RHEL 10.0 kernel 6.12.0-55.62.1.el10_0; RHEL 9.6 kernel 5.14.0-570.92.1.el9_6; and RHEL 8.10 kernel 4.18.0-553.100.1.el8_10. SUSE fixes include kernel-default 6.4.0-150600.23.65.1 for SLES/SLED 15 SP6 and 6.4.0-150700.53.11.1 for SLES/SLED 15 SP7. Use the update appropriate to the product, support stream, and installed kernel variant.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-38415 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2025-38415 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-38415?
- As of Nov 19, 2026, Mallory has found no public exploit for CVE-2025-38415.
- Is there a patch for CVE-2025-38415?
- Install the applicable vendor kernel update and reboot into the patched kernel. The upstream fix checks whether sb_min_blocksize() returns zero and aborts the mount rather than deriving a shift count from the invalid value.
- What products are affected by CVE-2025-38415?
- Linux Kernel and Debian Project Debian Linux.
- How severe is CVE-2025-38415?
- CVE-2025-38415 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.31% (16th percentile) as of Nov 19, 2026.
Recent activity
31 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.