patchminder
Proof of concept · Exploit-DB CVE-2025-40271

Vulnerabilityin Linux.

Published 6 Dec 2025 · Updated 5 Aug 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (Exploit-DB).

Attack code is public
Severity
High 7.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to V4.0 or later
In plain words

In the Linux kernel, the following vulnerability has been resolved: fs/proc: fix uaf in proc_readdir_de() Pde is erased from subdir rbtree through rb_erase(), but not set the node to EMPTY, which may result in uaf access. We should use RB_CLEAR_NODE() set the erased node to EMPTY, then pde_subdir_next() will return NULL to avoid uaf access. We found an uaf issue while using stress-ng testing, need to run testcase getdent and tun in the same time. The steps of the issue is as follows: 1) use getdent to traverse dir /proc/pid/net/dev_snmp6/, and current pde is tun3; 2) in the [time windows] unregister netdevice tun3 and tun2, and erase them from rbtree. erase tun3 first, and then erase tun2.

What to do now
  • No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Linux
3.19
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 16 Apr 2025
    CVE ID reserved by Linux.
  2. 6 Dec 2025
    Published in the CVE List.
  3. 4 May 2026
    First public proof of concept on GitHub.
  4. 5 Aug 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (Exploit-DB). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
1 entry
GitHub proof of concepts
2 repositories
Exploit-DBEDB-ID 52550local exploit for linux, published 4 May 2026
GitHubno warning signs foundMadExploits/CVE-2025-402711 stars · created 30 Jun 2026CVE-2025-40271 Modifed By MadEploits
GitHubno warning signs foundkaleth4/CVE-2025-402710 stars · created 4 May 2026

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Linux vulnerabilities

References
Cite this page

Patchminder. CVE-2025-40271: Vulnerability in Linux. https://patchminder.com/cve/cve-2025-40271/ (accessed 5 December 2026).