Critical Vulnerability in Linux Kernel: Squashfs Block Size Handling

linux Updated 02 Oct 2025

Summary

25/07/2025
N/A
No i
Unrated
Not published

CVE-2025-38415: 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. Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is the core component of the Linux operating system, responsible for managing hardware and system resources. It provides essential services for all other parts of the operating system, including process management, memory management, and device control. The Squashfs filesystem is a compressed read-only file system for Linux, allowing efficient storage and access to files. However, a vulnerability has been identified in the Squashfs implementation that can lead to undefined behavior under specific conditions.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the Squashfs filesystem related to the handling of block sizes. The issue arises when multiple processes attempt to mount a Squashfs filesystem simultaneously while issuing an ioctl to set the block size. This race condition can lead to a situation where the block size is incorrectly set to zero, causing subsequent operations to fail. Specifically, the function sb_min_blocksize can return zero, leading to a shift-out-of-bounds error in the code. This can potentially allow an attacker to exploit the vulnerability, resulting in system instability or crashes.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. It is advisable to avoid simultaneous mounting of Squashfs filesystems until the patch is applied.

Conclusion

The vulnerability in the Linux kernel's Squashfs filesystem presents a significant risk due to its potential to cause system instability. It is crucial for users to update their systems to the patched version to mitigate this risk. Regular monitoring using tools like Vulert can help in identifying and addressing such vulnerabilities promptly.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability is a race condition in the Squashfs filesystem that can lead to a shift-out-of-bounds error due to improper handling of block sizes.

The vulnerability affects the Linux kernel in Debian 11, 12, and 13, with a specific fix available for Debian 13.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.

Exploitation of this vulnerability can lead to system instability, crashes, or potentially allow an attacker to execute arbitrary code.

While there are no specific workarounds, it is advisable to avoid simultaneous operations that involve mounting Squashfs filesystems.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback