In the Linux kernel, the following vulnerability has been resolved:
block, bfq: fix uaf for bfqq in bfqexiticq_bfqq
Commit 64dc8c732f5c ("block, bfq: fix possible uaf for 'bfqq->bic'") will access 'bic->bfqq' in bicsetbfqq(), however, bfqexiticqbfqq() can free bfqq first, and then call bicset_bfqq(), which will cause uaf.
Fix the problem by moving bfqexitbfqq() behind bicsetbfqq().