CVE-2025-37899
ksmbd: fix use-after-free in session logoff
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in session logoff The sess->user object can currently be in use by another thread, for example if another connection has sent a session setup request to bind to the session being free'd. The handler for that connection could be in the smb2_sess_setup function which makes use of sess->user.
INFO
Published Date :
May 20, 2025, 4:15 p.m.
Last Modified :
May 24, 2025, 7:15 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Update the Linux kernel to the latest version.
- Apply the provided patch for ksmbd.
Public PoC/Exploit Available at Github
                                            CVE-2025-37899 has a 14 public
                                            PoC/Exploit available at Github.
                                            Go to the Public Exploits tab to see the list.
                                        
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2025-37899.
                                        
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2025-37899 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2025-37899
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Forked from https://github.com/0xor0ne/awesome-list.git
Forked from https://github.com/0xor0ne/awesome-list.git
None
Shell
None
None
fully lawful to open source under US and MA law
Python
Artefacts for blog post on finding CVE-2025-37899 with o3
None
A collection of the the best ML and AI news every week (research, news, resources)
artificial-intelligence computer-vision llms machine-learning nlp agents ai python rag retrieval-augmented-generation transformer deeplearning
None
Cybersecurity oriented awesome list
awesome awesome-list cybersecurity exploitation reverse-engineering
TOP All bugbounty pentesting CVE-2023- POC Exp RCE example payload Things
bugbounty cve exp exploit payload poc rce vulnerability
Shell
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
A collection of links related to Linux kernel security and exploitation
linux-kernel kernel-exploitation exploit privilege-escalation security
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2025-37899 vulnerability anywhere in the article.
		
 
									- 
                                                            
                                                                huntress.com 
AI: Friend or Faux in Cybersecurity? Huntress Tradecraft Tuesday
As generative AI continues to rapidly evolve, security professionals keep coming back to the same question: Is AI good or bad for cybersecurity? The answer isn’t that simple. Generative AI models came ... Read more
                The following table lists the changes that have been made to the
                CVE-2025-37899 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            CVE Modified by af854a3a-2127-422b-91ae-364da2661108May. 24, 2025 Action Type Old Value New Value Added Reference https://news.ycombinator.com/item?id=44081338 Added Reference https://sean.heelan.io/2025/05/22/how-i-used-o3-to-find-cve-2025-37899-a-remote-zeroday-vulnerability-in-the-linux-kernels-smb-implementation/ 
- 
                            New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67May. 20, 2025 Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in session logoff The sess->user object can currently be in use by another thread, for example if another connection has sent a session setup request to bind to the session being free'd. The handler for that connection could be in the smb2_sess_setup function which makes use of sess->user. Added Reference https://git.kernel.org/stable/c/02d16046cd11a5c037b28c12ffb818c56dd3ef43 Added Reference https://git.kernel.org/stable/c/2fc9feff45d92a92cd5f96487655d5be23fb7e2b Added Reference https://git.kernel.org/stable/c/d5ec1d79509b3ee01de02c236f096bc050221b7f 
 
                         
                         
                         
                                             
                                            