CVE-2025-40271
BaseFortify
Publication date: 2025-12-06
Last updated on: 2025-12-08
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a use-after-free (UAF) issue in the Linux kernel's proc filesystem code, specifically in the proc_readdir_de() function. When directory entries (pde) are erased from a red-black tree (rbtree) without properly clearing the node, the system may continue to access memory that has already been freed. This happens during concurrent operations where one CPU is reading directory entries under /proc/pid/net/dev_snmp6/ while another CPU unregisters network devices and removes their entries. Because the erased nodes are not marked as empty, the reading process may access freed memory, leading to a UAF condition.
How can this vulnerability impact me? :
This use-after-free vulnerability can lead to undefined behavior in the Linux kernel, potentially causing system crashes, data corruption, or security issues such as privilege escalation or arbitrary code execution. Since it involves accessing freed memory, attackers might exploit this to compromise system stability or security.