Linux Kernel Use-After-Free Vulnerability in proc_readdir_de Function

Vulnerability

A use-after-free vulnerability has been addressed in the Linux kernel's handling of the /proc filesystem. The issue arises in the proc_readdir_de function, where a directory entry (pde) is removed from the subdirectory red-black tree but not properly cleared, potentially leading to a use-after-free condition. This vulnerability was identified during stress testing with the 'stress-ng' tool, by simultaneously running the 'getdent' and 'tun' test cases. The exploitation process involves traversing a specific /proc directory while unregistering network devices, creating a window where a released pde can be accessed, causing the use-after-free condition.

Impact

Exploitation of this vulnerability can lead to a use-after-free condition, which may be exploited to execute arbitrary code or cause a denial-of-service by crashing the system.

Reproduction

The vulnerability can be reproduced by using the 'stress-ng' tool to traverse the /proc/pid/net/dev_snmp6/ directory while simultaneously unregistering network devices. This process involves erasing the corresponding pde from the red-black tree, which is then released to the slab allocator. Continuing the 'getdent' process will result in accessing the released pde, triggering the use-after-free vulnerability.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed.

Added: Dec 6, 2025, 10:48 PM
Updated: Dec 6, 2025, 10:48 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.3
remediation
7.7
relevance
1.3
threat
4.9
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.