CVE-2023-54227
published high CVSS 3.1 · 7.5blk-mq: fix tags leak when shrink nr_hw_queues
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa846a8e6c9a5949582c5a6a8bbc83a7d27fd891e to < 26d495f0f64d8cd4fcd29206ee5c653ee0e0cbcd · a846a8e6c9a5949582c5a6a8bbc83a7d27fd891e to < c0ef7493e68b8896806a2f598fcffbaa97333405 · a846a8e6c9a5949582c5a6a8bbc83a7d27fd891e to < e1dd7bc93029024af5688253b0c05181d6e01f8e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.16 (affected) · 0 to < 5.16 (unaffected · semver) · 6.1.189 through 6.1.* (unaffected · semver) · 6.5.5 through 6.5.* (unaffected · semver) · 6.6 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned; Not Affected | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.190-1 | DLA-4841-1 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolaarch64 | Advisory build | 7.4.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolppc64le | Advisory build | 7.4.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | bpftools390x | Advisory build | 7.4.0-503.11.1.el9_5 | RHSA-2024:9315 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-9 | bpftoolx86_64 | Advisory build | 7.4.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfoaarch64 | Advisory build | 7.4.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfoppc64le | Advisory build | 7.4.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfos390x | Advisory build | 7.4.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfox86_64 | Advisory build | 7.4.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernelaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernelppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernels390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernelsrc | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernelx86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64kaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-coreaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debugaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-coreaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-debuginfoaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-develaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-devel-matchedaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-modulesaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-modules-coreaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-modules-extraaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debuginfoaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-develaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-devel-matchedaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-modulesaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-modules-coreaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-modules-extraaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-abi-stablelistsnoarch | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-coreaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-coreppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-cores390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-corex86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugs390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugx86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-coreaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-coreppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-cores390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-corex86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfoaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfoppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfos390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfox86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devels390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develx86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matcheds390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedx86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-moduless390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesx86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-coreaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-coreppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-cores390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-corex86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-extraaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-extrappc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-extras390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-extrax86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-uki-virtx86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfoaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfoppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfos390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfox86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfo-common-aarch64aarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfo-common-ppc64leppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfo-common-s390xs390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfo-common-x86_64x86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-develaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-develppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-devels390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-develx86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-devel-matchedaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-devel-matchedppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-devel-matcheds390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-devel-matchedx86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-docnoarch | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-headersaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-headersppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-headerss390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-headersx86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modulesaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modulesppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-moduless390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modulesx86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-coreaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-coreppc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-cores390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-corex86_64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-extraaarch64 | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-extrappc64le | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-extras390x | Advisory build | 5.14.0-503.11.1.el9_5 | RHSA-2024:9315 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: blk-mq: fix tags leak when shrink nr_hw_queues Although we don't need to realloc set->tags[] when shrink nr_hw_queues, we need to free them. Or these tags will be leaked. How to reproduce: 1. mount -t configfs configfs /mnt 2. modprobe null_blk nr_devices=0 submit_queues=8 3. mkdir /mnt/nullb/nullb0 4. echo 1 > /mnt/nullb/nullb0/power 5. echo 4 > /mnt/nullb/nullb0/submit_queues 6. rmdir /mnt/nullb/nullb0 In step 4, will alloc 9 tags (8 submit queues and 1 poll queue), then in step 5, new_nr_hw_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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: AV:N - The shrink is driven by remote-peer data on NVMe-oF hosts — `nvme_set_queue_count()` takes the I/O queue count verbatim from the target's Set Features completion and feeds it to `blk_mq_update_nr_hw_queues()` on every reconnect, with the tag set persisting across reconnects. A hostile/compromised target or on-path attacker on an unauthenticated NVMe/TCP fabric reaches the vulnerable code over the network. AC:L - The attacker fully controls the granted queue count in each Set Features response and can force reconnects at will by closing the transport connection, so each shrink→grow cycle is triggered deterministically with no conditions outside the attacker's control. PR:N - The remote peer needs no credentials on the victim host; NVMe/TCP in the affected 5.16–6.5 range has no in-band authentication or TLS, and the queue-count negotiation happens automatically during controller reconnect. UI:N - Reconnect and queue renegotiation are fully automatic in the nvme fabrics keep-alive/reconnect path; no administrator or user action is needed at exploitation time. S:U - The leaked allocations and the resulting memory pressure are confined to the kernel of the affected host; no security authority boundary such as a VM or IOMMU domain is crossed. C:N - The leaked `blk_mq_tags` and request pages are simply never freed — they are not read, exposed, or transmitted anywhere, so no information is disclosed to the attacker. I:N - No out-of-bounds write, use-after-free, or type confusion occurs; the stale pointers are only dropped, leaving no primitive to modify kernel or user data. A:H - Because the regrow path memcpy's only the shrunken count and frees the old array, every shrink→grow cycle permanently leaks a full per-queue request pool, making the leak unbounded and repeatable until kernel memory is exhausted and the system OOMs or hangs.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a846a8e6c9a5949582c5a6a8bbc83a7d27fd891e to < 26d495f0f64d8cd4fcd29206ee5c653ee0e0cbcd (affected · git)a846a8e6c9a5949582c5a6a8bbc83a7d27fd891e to < c0ef7493e68b8896806a2f598fcffbaa97333405 (affected · git)a846a8e6c9a5949582c5a6a8bbc83a7d27fd891e to < e1dd7bc93029024af5688253b0c05181d6e01f8e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.16 (affected)0 to < 5.16 (unaffected · semver)6.1.189 through 6.1.* (unaffected · semver)6.5.5 through 6.5.* (unaffected · semver)6.6 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
2Linux · cna
blk-mq: fix tags leak when shrink nr_hw_queues
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 81756ddd84f8c15f5ceca0e61e7a64121ce8cc6789ac7d966700826b32d9d21d
- Ingested
- 15 Oct 2026, 23:26:24 UTC
- Source record
- Official CVE record