Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A vulnerability exists in the Linux kernel's block layer management, specifically within the block-mq subsystem. The issue arises because the return value of the function 'blk_mq_sysfs_register_hctxs()' is not properly checked. If the sysfs creation for a hardware context (hctx) fails, subsequent operations that change the number of hardware queues or remove a disk can trigger a warning about a missing directory. This warning indicates that the system is attempting to remove a sysfs entry that was never successfully created, leading to a kernel warning. The problem occurs in several versions of the Linux kernel.
Exploitation of this vulnerability can lead to kernel warnings about missing sysfs directories, indicating a failure in the expected management of hardware context entries. This could potentially be exploited to cause confusion or issues in system management or monitoring tools that rely on accurate sysfs information.
The vulnerability can be reproduced by registering a hardware context with 'blk_mq_sysfs_register_hctxs()' and then failing to check the return value. Afterward, changing the number of hardware queues or removing a disk will trigger the warning about the missing 'nr_tags' directory, demonstrating the improper management of kobject states in sysfs.
Users can update to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for downloading the patched version are available 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.