CVE-2024-35865: Vulnerability in linux-libc-dev - Potential Use-After-Free in smb2_is_valid_oplock_break()

linux Updated 02 Oct 2025

Summary

19/05/2024
No i
Unrated
Not published

CVE-2024-35865: In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF in smb2_is_valid_oplock_break() Skip sessions that are being teared down (status == SES_EXITING) to avoid UAF. 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

linux-libc-dev is a package in Debian that provides the C library headers for the Linux kernel. It is used by developers to compile and build applications that interact with the kernel. The package contains essential header files and definitions required for system calls, data structures, and other kernel-related functionalities. This vulnerability affects the linux-libc-dev package, specifically in the smb2_is_valid_oplock_break() function of the SMB client implementation.

Vulnerability Detail

The vulnerability (CVE-2024-35865) in linux-libc-dev's SMB client implementation could lead to a Use-After-Free (UAF) condition. When tearing down sessions, the code fails to skip sessions that are already in the process of being terminated. This oversight can result in a UAF, where an attacker could potentially exploit the freed memory to execute arbitrary code or cause a denial of service. The vulnerability has a CVSS score of 5.5, indicating a medium severity level.

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. It is crucial to apply the provided fix by updating the linux-libc-dev package to the patched version.

Conclusion

The linux-libc-dev package in Debian is vulnerable to a Use-After-Free issue in the SMB client implementation. To mitigate this vulnerability, users should update their linux-libc-dev package to version 6.1.90-1 or later. It is essential to promptly apply the provided fix to ensure the security and stability of systems relying on this package. For further support or assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

linux-libc-dev is a package in Debian that provides the C library headers for the Linux kernel. It is used by developers to compile and build applications that interact with the kernel.

The vulnerability could allow an attacker to execute arbitrary code or cause a denial of service by exploiting the Use-After-Free condition in the SMB client implementation of linux-libc-dev.

A Use-After-Free vulnerability occurs when a program continues to use a memory region after it has been freed. This can lead to various security issues, including code execution or crashes.

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

Users can update the linux-libc-dev package by obtaining the latest version (6.1.90-1 or later) from the official Debian repositories or using their package manager of choice.

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