CVE-2025-38415
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

There is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation at this time (Feedly). The vulnerability was identified through automated fuzzing (Syzkaller) rather than active threat actor research. The EPSS score is approximately 0.024% (0.000240), indicating a very low probability of exploitation in the near term. CVE-2025-38415 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access and the ability to trigger a specific race condition, limiting the practical attack surface.

Mitigation and workarounds

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.

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74732NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-firmware
NoYesAug 22, 2026
CVE-2026-74730NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 22, 2026
CVE-2026-74726NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules
NoYesAug 22, 2026
CVE-2026-74719NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-partner
NoYesAug 22, 2026
CVE-2026-74717NONEN/A
  • Linux Kernel logoLinux Kernel
  • rtla
NoYesAug 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management