block, bfq: fix uaf for bfqq in bic_set_bfqq()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
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 bic_set_bfqq()
After commit 64dc8c732f5c ("block, bfq: fix possible uaf for 'bfqq->bic'"), bic->bfqq will be accessed in bic_set_bfqq(), however, in some context bic->bfqq will be freed, and bic_set_bfqq() is called with the freed bic->bfqq.
Fix the problem by always freeing bfqq after bic_set_bfqq().
From the CVE record · Linux
The Linux kernel's BFQ block scheduler can access a freed bfqq object in bic_set_bfqq(). The input does not specify how an attacker could trigger this or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their build includes the affected BFQ code; affected versions are not specified.