Out-of-Bounds Vulnerability in Linux Kernel CIFS Package

linux Updated 04 Jun 2026

Summary

30/10/2025
N/A
No i
Unrated
Not published

DEBIAN-CVE-2025-40099: In the Linux kernel, the following vulnerability has been resolved: cifs: parse_dfs_referrals: prevent oob on malformed input Malicious SMB server can send invalid reply to FSCTL_DFS_GET_REFERRALS - reply smaller than si... 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 software running on the system. The CIFS (Common Internet File System) module allows for file sharing over a network, enabling users to access files on remote servers. This vulnerability affects multiple Debian versions of the Linux kernel, making it critical for users relying on network file sharing functionalities.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the CIFS module related to the parsing of DFS referrals. A malicious SMB server can send an invalid reply to the FSCTL_DFS_GET_REFERRALS command, which may include a reply smaller than the expected size of the get_dfs_referral_rsp structure or a number of referrals that is less than specified in the header. This can lead to an out-of-bounds (oob) access, potentially allowing an attacker to exploit the system. The vulnerability is classified under CVE-2025-40099.

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

As a temporary workaround, users can limit exposure to this vulnerability by avoiding connections to untrusted SMB servers or by disabling the CIFS module if it is not required for their operations. This can be done with the command: 'sudo modprobe -r cifs'.

Conclusion

The CVE-2025-40099 vulnerability in the Linux kernel's CIFS module poses a significant risk to users of Debian systems. It is crucial to apply the necessary updates to mitigate this risk. Users are encouraged to monitor their systems for vulnerabilities using tools like Vulert and to follow best practices for security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-40099 is a vulnerability in the Linux kernel's CIFS module that allows for out-of-bounds access due to improper handling of malformed DFS referral replies from SMB servers.

The vulnerability affects Debian versions 11, 12, 13, and 14 that utilize the Linux kernel.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to install any software.

If exploited, this vulnerability could allow attackers to execute arbitrary code or crash the system, leading to potential data loss or unauthorized access.

Yes, you can temporarily disable the CIFS module or avoid connecting to untrusted SMB servers to mitigate the risk until an update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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