Double Free Vulnerability in Linux Kernel's CIFS Client - CVE-2025-21673

linux Updated 02 Oct 2025

Summary

31/01/2025
N/A
No i
Medium
5.5

CVE-2025-21673: In the Linux kernel, the following vulnerability has been resolved: smb: client: fix double free of TCP_Server_Info::hostname When shutting down the server in cifs_put_tcp_session(), cifsd thread might be reconnecting to... Affects linux versions 6.1.106-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 a core component of many operating systems, providing essential services and hardware management. It supports various functionalities, including file systems, networking, and process management. The Common Internet File System (CIFS) is a protocol that allows file sharing over a network. This vulnerability affects the CIFS client within the Linux kernel, specifically in the handling of TCP server information.

Vulnerability Detail

CVE-2025-21673 is a double free vulnerability that occurs in the Linux kernel's CIFS client. The issue arises when the server is shut down in the cifs_put_tcp_session() function. A cifsd thread may attempt to reconnect to multiple Distributed File System (DFS) targets before it realizes it should exit the loop. This can lead to the hostname of the server not being freed properly, resulting in potential memory corruption and crashes. The technical details indicate that the vulnerability can cause a system to reach an invalid operation state, leading to a crash or unexpected behavior.

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 apply the patch as soon as it becomes available.

Conclusion

CVE-2025-21673 is a significant vulnerability in the Linux kernel's CIFS client that can lead to memory corruption and system instability. Users are encouraged to update their systems to the latest patched versions to ensure protection against this issue. Regular monitoring using tools like Vulert can help maintain awareness of vulnerabilities in your software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-21673 is a double free vulnerability in the Linux kernel's CIFS client that can lead to memory corruption and system crashes.

If your system uses the CIFS protocol for file sharing, this vulnerability could lead to crashes or unexpected behavior during server shutdowns.

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 without needing to sign up.

Yes, a patch has been released for Debian 12 and 13. Updating your Linux package will resolve the issue.

While there are no specific workarounds, it is crucial to plan for an update as soon as possible to mitigate the risk associated with this vulnerability.

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