Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
- >= 4.9, < 4.9.0-rc1
A use-after-free vulnerability has been identified in the Btrfs file system component of the Linux kernel. This issue arises when the 'read_one_chunk' function processes a missing device, leading to a potential memory corruption. The vulnerability occurs because the error code is not properly stored before the 'extent_map' is freed, despite being a reference-counted structure. The problem can manifest when a chunk is located on a missing device and the 'degraded' mount option is not enabled.
Exploitation of this vulnerability can lead to memory corruption, potentially allowing for arbitrary code execution or causing a system crash.
To reproduce this vulnerability, mount a Btrfs file system with chunks stored on a device that is intentionally made unavailable, and do not use the 'degraded' mount option. This will trigger the 'read_one_chunk' function to handle the missing device improperly, creating a use-after-free condition.
Users can upgrade to the latest stable version of the Linux kernel where this vulnerability has been patched.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.