Linux Kernel
CVE-2024-35865
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure client to malicious SMB server
-
DeliveryClient mounts/connects to share
-
ExploitRace session teardown (SES_EXITING)
-
ExecutionSend crafted SMB2 oplock break
-
PersistDereference freed session (UAF)
-
ImpactKernel 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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).
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
4DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB