block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq
Commit 64dc8c732f5c ("block, bfq: fix possible uaf for 'bfqq->bic'") will access 'bic->bfqq' in bic_set_bfqq(), however, bfq_exit_icq_bfqq() can free bfqq first, and then call bic_set_bfqq(), which will cause uaf.
Fix the problem by moving bfq_exit_bfqq() behind bic_set_bfqq().
From the CVE record · Linux
The Linux kernel’s BFQ block scheduler can access a freed bfqq object in bfq_exit_icq_bfqq(). This use-after-free may be triggered when bfqq is freed before bic_set_bfqq() accesses it. The input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels with the BFQ block scheduler should check their versions; affected versions are not specified.