CVE-2023-54227

Source
https://cve.org/CVERecord?id=CVE-2023-54227
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54227.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-54227
Downstream
Related
Published
2025-12-30T12:11:20.207Z
Modified
2026-03-12T03:30:02.983074Z
Summary
blk-mq: fix tags leak when shrink nr_hw_queues
Details

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, newnrhw_queues = 5 (4 submit queues and 1 poll queue). At last in step 6, only these 5 tags are freed, the other 4 tags leaked.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54227.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a846a8e6c9a5949582c5a6a8bbc83a7d27fd891e
Fixed
c0ef7493e68b8896806a2f598fcffbaa97333405
Fixed
e1dd7bc93029024af5688253b0c05181d6e01f8e

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54227.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.5.5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54227.json"