CVE-2024-50086
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-50086 affects the Linux kernel's ksmbd component, specifically related to a race condition between SMB2 session log off and session setup operations. The vulnerability was discovered and reported by Trend Micro's Zero Day Initiative (ZDI-CAN-25282) and was fixed in October 2024. The issue affects Linux kernel versions up to (excluding) 6.1.114, versions from 6.2 up to (excluding) 6.6.58, and versions from 6.7 up to (excluding) 6.11.5 (NVD).

Technical details

The vulnerability is a race condition in the Linux kernel's ksmbd (kernel SMB server) implementation that can lead to a use-after-free condition during session management. The issue occurs between SMB2 session log off and session setup operations, where a session structure could be freed while still in use. The fix implements session locking when setting SMB2_SESSION_EXPIRED and adds reference counting to the session structure to prevent premature deallocation. The vulnerability has been assigned a CVSS v3.1 base score of 7.0 (High) with vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The use-after-free vulnerability could potentially lead to memory corruption, allowing an attacker to execute arbitrary code with kernel privileges, cause system crashes, or escalate privileges. The vulnerability requires local access and high complexity to exploit, but could result in complete compromise of confidentiality, integrity, and availability of the affected system (NVD).

Mitigation and workarounds

The vulnerability has been patched in various Linux kernel versions. The fix includes adding session locking and reference counting mechanisms to prevent the use-after-free condition. Users should update their Linux kernel to versions that include the fix: 6.1.114 or later for the 6.1 series, 6.6.58 or later for the 6.6 series, and 6.11.5 or later for the 6.11 series. Ubuntu has released fixes for affected versions in their security updates (Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68753HIGH7.8
  • Linux KernelLinux Kernel
  • linux-fips
NoYesJan 05, 2026
CVE-2025-68756HIGH7.1
  • Linux KernelLinux Kernel
  • linux-gcp-fips
NoYesJan 05, 2026
CVE-2025-68764MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-oracle-6.8
NoYesJan 05, 2026
CVE-2025-68758MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-nvidia-6.8
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel-devel
NoYesJan 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management