Skip to main content

Linux Kernel CVE-2025-38415

HIGH
Out-of-bounds Write (CWE-787)
2025-07-25 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Local shell on target
  2. Delivery
    Enter unprivileged user namespace
  3. Exploit
    Open /dev/loop0 and prepare Squashfs image
  4. Install
    Race parallel mount() with LOOP_SET_BLOCK_SIZE ioctl
  5. C2
    Trigger shift-out-of-bounds in squashfs_bio_read
  6. Execute
    Corrupt kernel memory state
  7. Impact
    Denial of service or potential privilege escalation

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires local access to the target system with the ability to (1) open and issue ioctls on a /dev/loop* device and (2) mount a Squashfs filesystem on that same loop device concurrently - both typically gated by CAP_SYS_ADMIN unless unprivileged user namespaces are enabled (CONFIG_USER_NS=y with kernel.unprivileged_userns_clone=1, the default on most desktop distributions and Debian/Ubuntu). The Squashfs kernel module must be loaded or auto-loadable. Exploitation is a race condition, so it is probabilistic and requires repeated attempts; no user interaction is needed and no network exposure exists. Limiting factors: hardened servers with unprivileged_userns_clone=0, systems without the squashfs module, and SELinux/AppArmor policies that restrict loop-device ioctls all materially reduce or eliminate exploitability.

Impact

CVSS 3.1 base score 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects local-only exploitation with low privileges and high CIA impact, consistent with kernel memory corruption. However, real-world risk is materially lower than the score implies: triggering the race requires the ability to both mount a Squashfs filesystem and issue ioctls on a loop device, operations that normally require CAP_SYS_ADMIN unless unprivileged user namespaces with FUSE/loop access are enabled. EPSS data was not provided, the CVE is not in CISA KEV, and no public exploit identified at time of analysis - only a Syzkaller reproducer that demonstrates the UBSAN warning, not full code execution. Exploitability for privilege escalation beyond a denial-of-service / UBSAN report is not demonstrated in the available data; CWE-787 and the C:H/I:H/A:H impact suggest theoretical EoP potential but this is INFERRED, not confirmed. Prioritize as a routine kernel patch on multi-tenant hosts, container hosts, and systems that allow unprivileged user namespaces; lower urgency on single-user or hardened systems.

Exploit ScenarioDerived

A local user on a multi-tenant Linux host with unprivileged user namespaces enabled spawns parallel processes: one repeatedly mounts a crafted Squashfs image on a loop device while another issues LOOP_SET_BLOCK_SIZE ioctls with size 0x8000 on the same /dev/loop device. The race window between sb_min_blocksize() and ffz(~devblksize) eventually returns 0, producing a shift-by-64 in squashfs_bio_read that corrupts kernel state and at minimum causes a denial of service; further weaponization toward privilege escalation would require additional primitives not demonstrated by the Syzkaller reproducer. No public exploit identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 18, 2026

Out-of-bounds shift in the Linux kernel Squashfs filesystem allows a local attacker to trigger memory corruption by racing a LOOP_SET_BLOCK_SIZE ioctl against a concurrent Squashfs mount on the same loop device, causing sb_min_blocksize() to return 0 and the code in squashfs_fill_super() to compute a shift exponent of 64. The affected subsystem is the kernel Squashfs driver (fs/squashfs/block.c) on Linux and downstream distributions such as Debian 11. There is no public exploit identified at time of analysis and the issue is not listed in CISA KEV.

RemediationAI

Apply the upstream fix available per vendor advisory by updating to a Linux kernel that includes one of the stable commits 0aff95d9bc7fb5400ca8af507429c4b067bdb425, 295ab18c2dbce8d0ac6ecf7c5187e16e1ac8b282, 4f99357dadbf9c979ad737156ad4c37fadf7c56b, 549f9e3d7b60d53808c98b9fde49b4f46d0524a5, 5c51aa862cbeed2f3887f0382a2708956710bd68, 6abf6b78c6fb112eee495f5636ffcc350dd2ce25, 734aa85390ea693bb7eaf2240623d41b03705c84, or db7096ea160e40d78c67fce52e7cc51bde049497 - all on git.kernel.org/stable. Debian 11 users should install the LTS update per https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html and msg00008.html. As compensating controls until patched, disable unprivileged user namespaces by setting kernel.unprivileged_userns_clone=0 (sysctl) which prevents unprivileged users from triggering the mount path but breaks rootless containers like rootless Podman and unprivileged Docker; alternatively, blacklist the squashfs module via modprobe.d if Squashfs is not required (breaks live ISOs, snap packages, and some appliance images); or restrict access to /dev/loop* devices via udev rules and seccomp to deny LOOP_SET_BLOCK_SIZE for unprivileged processes (may break legitimate loopback workflows).

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The bug lives in the Squashfs read-only filesystem driver. During mount, squashfs_fill_super() calls sb_min_blocksize() to negotiate the device block size, then computes devblksize_log2 via ffz(~devblksize). If a parallel ioctl(LOOP_SET_BLOCK_SIZE) on the backing /dev/loop device changes block size mid-mount, sb_min_blocksize() can return 0; ffz(~0) then returns 64, which is later used as a shift exponent against a 64-bit type in fs/squashfs/block.c:195, producing undefined behavior caught by UBSAN. Root cause is CWE-787 (out-of-bounds write) stemming from an unchecked return value, exposed by the absence of synchronization between loop-device block-size changes and filesystem superblock initialization. The bug was discovered by Syzkaller fuzzing the Squashfs/loop interaction.

Know when Debian Linux gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 5.8 MEDIUM

Local race condition needing concurrent mount and loop ioctl makes AC:H; PR:L assumes unprivileged user namespaces; demonstrated impact is mainly DoS with possible memory corruption, so A:H but C/I downgraded to L.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE 5.8 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
Red Hat 7.1 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionNVD

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

Executive ViewAI

Why It Matters

A memory corruption vulnerability (CVSS 7.8) in the Linux kernel Squashfs driver affects Debian 11 and downstream distributions, allowing local attackers to corrupt kernel memory through a race condition. No public exploit identified at time of analysis. Organizations with untrusted local user access face risk to system stability and should prioritize immediate patching.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Data Quality
2 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Affected Products (CPE)NVD

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
CVE-2021-44228 CRITICAL POC
10.0 Dec 10

Apache Log4j2 contains a critical JNDI injection vulnerability known as 'Log4Shell' that allows unauthenticated remote c

CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2017-7494 CRITICAL POC
9.8 May 30

Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allo

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2022-30333 HIGH POC
7.5 May 09

RARLAB UnRAR before 6.12 on Linux and UNIX allows directory traversal to write to files during an extract (aka unpack) o

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2017-12617 HIGH POC
8.1 Oct 04

When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT

CVE-2020-1938 CRITICAL POC
9.8 Feb 24

When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Rate

CVE-2018-7602 CRITICAL POC
9.8 Jul 19

A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. Rated critical severity (

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.44 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.27 Image SL-Micro Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.67 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.29 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.76 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.14 Affected
Image SLES-Azure-3P Image SLES-Azure-Basic Image SLES-Azure-Standard Image SLES-BYOS-Azure Image SLES-BYOS-EC2 Image SLES-BYOS-GCE Image SLES-CHOST-BYOS-Aliyun Image SLES-CHOST-BYOS-Azure Image SLES-CHOST-BYOS-EC2 Image SLES-CHOST-BYOS-GCE Image SLES-CHOST-BYOS-GDC Image SLES-CHOST-BYOS-SAP-CCloud Image SLES-EC2 Image SLES-EC2-ECS Image SLES-GCE Image SLES-GCE-3P Image SLES-Hardened-BYOS-Azure Image SLES-Hardened-BYOS-EC2 Image SLES-Hardened-BYOS-GCE Image SLES-SAPCAL-Azure Image SLES-SAPCAL-EC2 Image SLES-SAPCAL-GCE Affected
Image SLES-SAP-Azure Image SLES-SAP-Azure-3P Image SLES-SAP-BYOS-Azure Image SLES-SAP-BYOS-EC2 Image SLES-SAP-BYOS-GCE Image SLES-SAP-EC2 Image SLES-SAP-GCE Image SLES-SAP-GCE-3P Affected

References

Advisories & patches
PATCH https://git.kernel.org/stable/c/0aff95d9bc7fb5400ca8af507429c4b067bdb425 PATCH https://git.kernel.org/stable/c/295ab18c2dbce8d0ac6ecf7c5187e16e1ac8b282 PATCH https://git.kernel.org/stable/c/4f99357dadbf9c979ad737156ad4c37fadf7c56b PATCH https://git.kernel.org/stable/c/549f9e3d7b60d53808c98b9fde49b4f46d0524a5 PATCH https://git.kernel.org/stable/c/5c51aa862cbeed2f3887f0382a2708956710bd68 PATCH https://git.kernel.org/stable/c/6abf6b78c6fb112eee495f5636ffcc350dd2ce25 PATCH https://git.kernel.org/stable/c/734aa85390ea693bb7eaf2240623d41b03705c84 PATCH https://git.kernel.org/stable/c/db7096ea160e40d78c67fce52e7cc51bde049497 ADVISORY https://access.redhat.com/errata/RHSA-2026:1661 ADVISORY https://access.redhat.com/errata/RHSA-2026:1662 ADVISORY https://access.redhat.com/errata/RHSA-2026:2212 ADVISORY https://access.redhat.com/errata/RHSA-2026:2282 ADVISORY https://access.redhat.com/errata/RHSA-2026:2766 ADVISORY https://access.redhat.com/errata/RHSA-2026:3088 ADVISORY https://access.redhat.com/errata/RHSA-2026:3267 ADVISORY https://access.redhat.com/errata/RHSA-2026:3268 ADVISORY https://access.redhat.com/errata/RHSA-2026:3277 ADVISORY https://access.redhat.com/errata/RHSA-2026:3293 ADVISORY https://access.redhat.com/errata/RHSA-2026:3358 ADVISORY https://access.redhat.com/errata/RHSA-2026:3360 ADVISORY https://access.redhat.com/errata/RHSA-2026:3375 ADVISORY https://access.redhat.com/errata/RHSA-2026:3388 ADVISORY https://access.redhat.com/errata/RHSA-2026:3579 ADVISORY https://access.redhat.com/errata/RHSA-2026:3634 ADVISORY https://access.redhat.com/errata/RHSA-2026:3685 ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:02846/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:02853/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:02923/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:02969/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:02996/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:02997/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:03011/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:03023/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20577/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20586/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20601/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20602/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20994/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20996/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21074/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21139/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21179/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20309/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20330/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20560/ REF https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html REF https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy