CVE-2026-80821
kernel: nvmet: pci-epf: put CQ ref on create_cq mapping failure
Overview
Description
In the Linux kernel, the following vulnerability has been resolved:
nvmet: pci-epf: put CQ ref on create_cq mapping failure
nvmet_pci_epf_create_cq() calls nvmet_cq_create(), which takes a
reference on the controller and installs the completion queue. If the
subsequent PCI address-space mapping fails or returns a too-small partial
mapping, the function jumps to err_internal / err_unmap_queue without
calling nvmet_cq_put(). The matching put in nvmet_pci_epf_delete_cq() is
gated on NVMET_PCI_EPF_Q_LIVE, which is only set after the mapping
succeeds, so teardown never releases these references. A remote PCI host
that drives Create IO CQ commands with a failing PRP1/pci_addr therefore
leaks the CQ and a controller reference on each attempt.
Drop the CQ reference on the mapping-failure paths. The err_internal and
err_unmap_queue labels are only reachable after nvmet_cq_create() has
succeeded, so this pairs the create/put correctly.
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by redhat.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 22 fixes
debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | affected |
| 14 | linux | 7.1.12-1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | kernel-devel +3 | 7.2.5-1.1 | openSUSE-SU-2026:11773-1 |
ubuntu 2 releases · 19 packages
| Release | Package | Fixed in |
|---|---|---|
| 24.04 | linux-azure-7-0 +1 | affected |
| 24.04 | linux-oracle-7-0 | 7.0.0-1016.18~24.04.1 |
| 24.04 | linux-aws-7-0 | 7.0.0-1017.18~24.04.1 |
| 24.04 | linux-gcp-7-0 | 7.0.0-1017.19~24.04.1 |
| 24.04 | linux-azure-fde-7-0 | 7.0.0-1019.19~24.04.1 |
| 24.04 | linux-riscv-7-0 | 7.0.0-42.42.1~24.04.1 |
13 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-80821
- git.kernel.org https://git.kernel.org/linus/659ae9d02cb5d72c76f74fff7441eb8fb64d8f5c (7.3-rc1)
- git.kernel.org https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-80821.mbox
- git.kernel.org https://git.kernel.org/stable/c/56a7b6a6880dbabe28214ff88df8d229ca3a944a
- git.kernel.org https://git.kernel.org/stable/c/659ae9d02cb5d72c76f74fff7441eb8fb64d8f5c
- git.kernel.org https://git.kernel.org/stable/c/b5f97fae2503a763fa0f953abf5f121b0fef7d0d
- git.kernel.org https://git.kernel.org/stable/c/f31650243c1ab32394077f234685e89ed8dece84
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-80821
- ubuntu.com https://ubuntu.com/security/notices/USN-8959-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8960-1
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.