Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
- >= 5.12, < 5.16.0-rc1
A vulnerability in the Linux kernel's Btrfs filesystem can lead to a hung task situation. This issue occurs when the 'copy-on-write' (COW) operation fails during allocation, leaving some pages locked and causing a blockage that can last for several minutes. The problem is particularly evident in zoned Btrfs filesystems, but can also be replicated in non-zoned environments using certain testing methods. The root of the issue lies in the COW operation's error handling, which, under specific conditions, fails to properly unlock pages that are no longer needed, leading to prolonged task blocking.
This vulnerability can cause a task to be blocked for an extended period, potentially disrupting processes that rely on timely task execution.
The vulnerability can be reproduced by running the 'fstests' suite, specifically the 'generic/551' test, on a 5GB non-zoned 'null_blk' device emulating zoned mode. Alternatively, the issue can be replicated by injecting an error into the 'cow_file_range()' function, simulating a failure in the middle of the allocation process. This approach mirrors the conditions that trigger the hung task scenario, demonstrating the vulnerability's impact on task management and process efficiency.
Users can upgrade to the patched version of the Linux kernel available in the official Linux Kernel Git Repository.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.