CVE-2023-54227: blk-mq: fix tags leak when shrink nr_hw_queues
In the Linux kernel, the following vulnerability has been resolved:
blk-mq: fix tags leak when shrink nrhwqueues
Although we don't need to realloc set->tags[] when shrink nrhwqueues, we need to free them. Or these tags will be leaked.
How to reproduce: 1. mount -t configfs configfs /mnt 2. modprobe nullblk nrdevices=0 submitqueues=8 3. mkdir /mnt/nullb/nullb0 4. echo 1 > /mnt/nullb/nullb0/power 5. echo 4 > /mnt/nullb/nullb0/submitqueues 6. rmdir /mnt/nullb/nullb0
In step 4, will alloc 9 tags (8 submit queues and 1 poll queue), then in step 5, newnrhwqueues = 5 (4 submit queues and 1 poll queue). At last in step 6, only these 5 tags are freed, the other 4 tags leaked.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.190-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.5.6-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.189 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.5.5
Event History
Frequently Asked Questions
What is the severity of CVE-2023-54227?
CVE-2023-54227 has been classified as a medium severity vulnerability due to the potential for resource leaks in the Linux kernel.
How do I fix CVE-2023-54227?
To fix CVE-2023-54227, ensure you apply the latest kernel updates that address the tags leak issue.
What software is affected by CVE-2023-54227?
CVE-2023-54227 affects the Linux kernel, particularly the block multi-queue subsystem.
What is the impact of CVE-2023-54227?
The impact of CVE-2023-54227 is primarily related to resource management, where leaked tags may lead to performance degradation.
Is CVE-2023-54227 remote exploitable?
CVE-2023-54227 is not considered remote exploitable as it requires local access to the affected system to exploit.