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().
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50329.json"
}