CVE-2024-35870: Linux kernel smb client UAF vulnerability in smb2_reconnect_server()

linux Updated 02 Oct 2025

Summary

19/05/2024
No i
Unrated
Not published

CVE-2024-35870: In the Linux kernel, the following vulnerability has been resolved: smb: client: fix UAF in smb2_reconnect_server() The UAF bug is due to smb2_reconnect_server() accessing a session that is already being teared down by a... 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The linux-libc-dev package is a development package that provides the C library headers for the Linux kernel. It is used to compile and build applications that interact with the kernel. This package is an essential component for developers working on Linux-based systems. The linux-libc-dev package is vulnerable to a use-after-free (UAF) vulnerability in the smb2_reconnect_server() function of the kernel's smb client. This vulnerability can be exploited by an attacker to execute arbitrary code or cause a denial of service.

Vulnerability Detail

The UAF vulnerability in smb2_reconnect_server() occurs when the function accesses a session that is being torn down by another thread executing __cifs_put_smb_ses(). This can happen when the client has a connection to the server but no session, or when another thread sets the session status to something different than SES_EXITING. To fix this vulnerability, the ses_status variable needs to be unconditionally set to SES_EXITING and prevent other threads from setting a new status while the session is being torn down. Exploiting this vulnerability can lead to a general protection fault and potential code execution.

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

There is no known workaround for this vulnerability at the moment.

Conclusion

The linux-libc-dev package is vulnerable to a use-after-free vulnerability in the smb2_reconnect_server() function of the kernel's smb client. This vulnerability can be exploited to execute arbitrary code or cause a denial of service. It is recommended to update the linux-libc-dev package to version 6.1.90-1 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

This vulnerability can be exploited by an attacker to execute arbitrary code or cause a denial of service.

No, there is currently no known workaround for this vulnerability.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package manifest file (e.g., package-lock.json) and Vulert will provide real-time alerts for open-source vulnerabilities.

The CVSS score of this vulnerability is 5.5, indicating a medium severity.

You can find more information about this vulnerability on the NIST National Vulnerability Database (NVD) at https://nvd.nist.gov/vuln/detail/CVE-2024-35870.

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