block, bfq: fix possible UAF for bfqq->bic with merge chain
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 36eca894832351feed9072d0f97eb06fc9482ca4 · < 7faed2896d78e48ec96229e73b30b0af6c00a9aa| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
block, bfq: fix possible UAF for bfqq->bic with merge chain
1) initial state, three tasks:
Process 1 Process 2 Process 3 (BIC1) (BIC2) (BIC3) | Λ | Λ | Λ | | | | | | V | V | V | bfqq1 bfqq2 bfqq3 process ref: 1 1 1
2) bfqq1 merged to bfqq2:
Process 1 Process 2 Process 3 (BIC1) (BIC2) (BIC3) | | | Λ \--------------\| | | V V | bfqq1--------->bfqq2 bfqq3 process ref: 0 2 1
3) bfqq2 merged to bfqq3:
Process 1 Process 2 Process 3 (BIC1) (BIC2) (BIC3) here -> Λ | | \--------------\ \-------------\| V V bfqq1--------->bfqq2---------->bfqq3 process ref: 0 1 3
From the CVE record · Linux
The Linux kernel’s BFQ I/O scheduler can incorrectly associate a queue with a process when I/O follows a queue-merge chain. This may cause a use-after-free; the input reports a related KASAN finding but does not establish whether an attacker can exploit it or what access they would need.
Engineers running Linux kernels that use the BFQ I/O scheduler should check their kernel’s exposure; affected versions are not specified.