Skip to main content

Linux Kernel CVE-2024-35865

CRITICAL
Use After Free (CWE-416)
2024-05-19 416baaa9-dc9f-4396-8d5f-8c081fb06d67
9.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Lure client to malicious SMB server
  2. Delivery
    Client mounts/connects to share
  3. Exploit
    Race session teardown (SES_EXITING)
  4. Execution
    Send crafted SMB2 oplock break
  5. Persist
    Dereference freed session (UAF)
  6. Impact
    Kernel memory corruption / crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target Linux host to act as an SMB/CIFS client and connect to an attacker-controlled or man-in-the-middle SMB server, and requires triggering the oplock-break code path while a session is in the SES_EXITING teardown state - i.e., winning a use-after-free race during session teardown. Limiting factors: the vulnerable code is only reached via the in-kernel cifs/smb client (hosts that never mount SMB shares are not exposed), the flaw is a timing-dependent race rather than a deterministic trigger, and there is no default listening service - the victim must initiate or maintain the SMB connection. Affected kernels include the 6.9-rc series and stable branches that received the backport.

Impact

The signals conflict sharply. NVD assigns CVSS:3.1 9.8 (AV:N/AC:L/PR:N/UI:N, full C/I/A impact), but this is the generic NVD/kernel-CNA scoring pattern and overstates practical exploitability: the flaw is a race condition (implying higher attack complexity) reachable only when a Linux host acts as an SMB client connecting to an attacker-controlled or MITM'd server, not against a listening service on default configs. EPSS is 0.02% (5th percentile), the vulnerability is NOT on the CISA KEV list, and no public exploit is identified, all pointing to low real-world exploitation pressure. UAF-to-code-execution in the kernel is difficult and requires winning a teardown race and grooming kernel heap; the more probable outcome is a denial of service (kernel oops). Net assessment: patch as part of normal kernel hygiene, but this is a high-CVSS-but-low-real-risk issue for most environments unless they routinely mount untrusted SMB shares. Note the CVSS network vector does not capture the required interaction of connecting to a malicious server - verify exposure against your actual SMB client usage.

Exploit ScenarioDerived

An attacker who controls an SMB server (or can MITM an SMB session) waits for a Linux client to connect and, during session establishment or teardown, sends a crafted SMB2 oplock break notification timed to race a session being torn down, causing the client to dereference a freed session object. Given the race and the low attack-complexity assumptions do not fully hold, the realistic result is kernel memory corruption leading to a crash (DoS), with kernel code execution being theoretically possible but hard. No public proof-of-concept is identified at time of analysis.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 04, 2026

Use-after-free in the Linux kernel's in-kernel SMB client (cifs.ko) affects the smb2_is_valid_oplock_break() handler, where sessions being torn down (SES_EXITING) were not skipped, allowing a freed session structure to be dereferenced while processing an SMB2 oplock break notification. A malicious or compromised SMB/CIFS server (or a man-in-the-middle) can trigger the race against a connecting Linux client, potentially causing kernel memory corruption. EPSS is very low (0.02%) and there is no public exploit identified at time of analysis, so despite the NVD CVSS of 9.8 the realistic risk is memory-safety-race-dependent rather than trivially weaponizable.

RemediationAI

Upstream fix available (stable commits, not a single tagged upstream release number in the input): apply the patched kernel from the referenced kernel.org stable commits 21fed37d2bdc, 22863485a462, 3dba0e5276f1, or 84488466b7a6 (https://git.kernel.org/stable/c/84488466b7a69570bdbf76dd9576847ab97d54e7), or install your distribution's fixed package - Ubuntu users should update per USN-8575-1 (https://ubuntu.com/security/notices/USN-8575-1). Where immediate patching is not possible, the practical compensating control is to avoid mounting SMB/CIFS shares from untrusted or attacker-reachable servers and to restrict outbound SMB (TCP 445) to known-good file servers, since the bug is only reachable through the SMB client path; the trade-off is loss of SMB connectivity to unvetted hosts. If the cifs module is not needed, blacklisting/unloading the cifs kernel module eliminates the attack surface entirely, at the cost of removing SMB mount capability.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the Linux kernel SMB2/SMB3 network filesystem client (fs/smb/client, formerly fs/cifs). When an SMB server sends an oplock/lease break notification, the client walks its list of active sessions (tcp_ses_list / smb_ses) to match the break to an open file. The root cause is CWE-416 (Use After Free): the iteration did not exclude sessions in the SES_EXITING state, so a session whose reference was being released during teardown could be accessed after free, corrupting kernel heap memory. CPE data scopes this to linux:linux_kernel including the 6.9-rc1 and 6.9-rc2 development builds, with the fix backported to multiple stable branches (four stable commits are referenced). The fix adds a status check to skip sessions marked SES_EXITING before dereferencing them.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.4 MEDIUM

Remote but requires connecting to a malicious SMB server (UI:R) and winning a teardown race (AC:H); UAF most reliably yields DoS (A:H) with limited memory disclosure/corruption (C:L/I:L).

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Aug 04, 2026 - 11:37 vuln.today
v1 - CVSS changed
Severity Changed
Aug 04, 2026 - 11:23 NVD
MEDIUM CRITICAL
CVSS changed
Aug 04, 2026 - 11:23 NVD
5.5 (MEDIUM) 9.8 (CRITICAL)
CVE Published
May 19, 2024 - 09:15 cve.org
MEDIUM 5.5

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A use-after-free vulnerability in the Linux kernel's in-kernel SMB client could allow a compromised or attacker-positioned file server to trigger kernel memory corruption on connecting systems. Organizations running Linux with the kernel SMB client (cifs.ko) face potential system integrity compromise if connected to untrusted SMB sources. A vendor patch is available; realistic exploitation risk remains low due to race-condition constraints and the requirement for server-side compromise or network interception.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Prevalence
Ubiquitous
Linux kernel with in-tree SMB client, deployed across most Linux environments
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy