Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
- >= 6.18, < 6.18.1
A double free vulnerability has been identified in the Linux kernel's Btrfs file system management. This issue arises in the 'create_space_info_sub_group' function, where a failure in initializing a kobject leads to the premature release of a memory structure. The error handling process inadvertently frees the same memory twice, creating a potential for memory corruption. This vulnerability affects several versions of the Linux kernel.
Exploitation of this vulnerability could lead to memory corruption, which may be leveraged to execute arbitrary code or cause a denial of service by crashing the system.
To reproduce this vulnerability, create a Btrfs file system and introduce a scenario where the 'kobject_init_and_add' function fails after a sub-group has been allocated but before it has been fully initialized. This can be done by modifying the Btrfs space information handling to simulate a kobject initialization failure. Once the failure occurs, the error path will be triggered, leading to the sub-group being freed twice.
Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been fixed. Instructions for downloading the latest kernel version can be found on the official Linux kernel website.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.