Linux Kernel Btrfs Use-After-Free Vulnerability During Unmount Process

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's Btrfs file system. This issue arises during the unmount process, specifically when the cleaner kernel thread is stopped before all work queues are cleared. As a result, a worker from the delalloc_workers queue may still be active, attempting to wake up the already-destroyed cleaner thread. This leads to a use-after-free condition on the task_struct associated with the cleaner thread.

Impact

Exploitation of this vulnerability causes a use-after-free condition, which can lead to memory corruption and potentially allow for arbitrary code execution.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.0
remediation
7.7
relevance
0.0
threat
3.2
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.