Critical Race Condition in ksmbd - Linux Package Vulnerability

linux Updated 02 Oct 2025

Summary

12/03/2025
N/A
Yes i
High
8.1

CVE-2024-58087: In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix racy issue from session lookup and expire Increment the session reference count within the lock for lookup to avoid racy issue with session e... Affects linux versions < 6.1.123-1. Fixed in 6.1.123-1. 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 kernel is a core component of the Linux operating system, responsible for managing hardware resources and providing essential services to applications. It supports a wide range of functionalities, including process management, memory management, and file systems. The ksmbd module allows for SMB (Server Message Block) protocol support, enabling file sharing and network communication between Linux and Windows systems. This vulnerability affects the session management within ksmbd, potentially leading to security issues.

Vulnerability Detail

The vulnerability identified as CVE-2024-58087 arises from a race condition in the ksmbd module of the Linux kernel. Specifically, it involves a flaw in the session lookup and expiration process, where the session reference count is not incremented within a lock. This oversight can lead to a situation where sessions may expire prematurely or be accessed concurrently, resulting in undefined behavior and potential security breaches. Attackers could exploit this vulnerability to disrupt service or gain unauthorized access to resources.

How To Fix

Minimum fixed version

6.1.123-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. The best course of action is to apply the available patches as soon as possible.

Conclusion

CVE-2024-58087 is a critical vulnerability in the ksmbd module of the Linux kernel that can lead to serious security issues due to a race condition in session management. Users are strongly advised to update their systems to the latest patched versions to ensure protection against potential exploits.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-58087 is a vulnerability in the ksmbd module of the Linux kernel that involves a race condition in session management.

This vulnerability can lead to premature session expiration and potential unauthorized access, impacting the security and stability of your system.

You should update your Linux package to the patched version as soon as possible to mitigate the risk associated with this vulnerability.

Currently, there are no specific workarounds available. The recommended action is to apply the patches.

You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities by analyzing your manifest file. Visit https://vulert.com for more information.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.123-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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