Linux Kernel BFQ Scheduler Use-After-Free Vulnerability

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's Block I/O Completely Fair Queuing (BFQ) scheduler). This issue arises because the function 'bfq_exit_icq_bfqq()' can free a queue structure ('bfqq') before it is accessed by 'bic_set_bfqq()', leading to a use-after-free condition. The vulnerability affects several versions of the Linux kernel.

Impact

Exploitation of this vulnerability can lead to memory corruption, potentially allowing for arbitrary code execution or causing a system crash.

Reproduction

The vulnerability can be reproduced by manipulating the BFQ scheduler's queue management functions. Specifically, 'bfq_exit_icq_bfqq()' should be called in a way that it frees 'bfqq' before 'bic_set_bfqq()' accesses it. This can be achieved by creating a scenario where 'bfq_exit_icq_bfqq()' is triggered first, followed by 'bic_set_bfqq()', while ensuring that the same 'bfqq' instance is used in both calls.

Remediation

Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been addressed. The specific commit that fixes this issue is available in the Linux kernel stable tree.

Added: Sep 15, 2025, 6:26 PM
Updated: Sep 15, 2025, 6:26 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.5
threat
4.8
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.