# CVE-2026-80787: nvmet: pci-epf: fix use-after-free in nvmet\_pci\_epf\_exec\_iod\_work()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-04T15:12:58.796Z
- **Modified:** 2026-10-19T09:17:12.690Z

## Who should check

- Anyone running Linux \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< 20be486d1c225402b067391e72ff5b0dd8ebff76; \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< 1ed1eeaef55cebf2d74b3ef104c20bdab719b165; \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< cede8d2852570c79b9bbb9527255ae9ed3317b82; \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< c9e9bb757971485b4e8414b1744507af186d72c9
- Anyone running Linux 6.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

nvmet: pci-epf: fix use-after-free in nvmet\_pci\_epf\_exec\_iod\_work()

nvmet\_pci\_epf\_exec\_iod\_work() submits an I/O command with req-\>execute()
and then waits for the command to complete and transfers the data back
to the host. This wait is not needed for commands that do not transfer
data from the device to the host. To decide whether that wait is needed,
it reads iod-\>data\_len and iod-\>dma\_dir after calling req-\>execute().

However, once req-\>execute() is called, the command may complete
asynchronously on another CPU. For commands that do not require a
device-to-host data transfer, nvmet\_pci\_epf\_queue\_response() calls
nvmet\_pci\_epf\_complete\_iod() directly, which can free the iod before it
reads iod-\>data\_len and iod-\>dma\_dir, resulting in the KFENCE use-after-
free:

 BUG: KFENCE: use-after-free read in nvmet\_pci\_epf\_exec\_iod\_work+0x288/0x798 \[nvmet\_pci\_epf\]

 Use-after-free read at 0x00000000fdfa6d03 (in kfence-\#63):
  nvmet\_pci\_epf\_exec\_iod\_work+0x288/0x798 \[nvmet\_pci\_epf\]
  process\_one\_work+0x15c/0x4f0
  worker\_thread+0x18c/0x30c
  kthread+0x130/0x140
  ret\_from\_fork+0x10/0x20

 kfence-\#63: 0x00000000e3de0e71-0x00000000c938ad62, size=712, cache=kmalloc-1k

 allocated by task 10 on cpu 0 at 73.995480s (0.005122s ago):
  mempool\_kmalloc+0x1c/0x28
  mempool\_alloc\_noprof+0x40/0x9c
  nvmet\_pci\_epf\_poll\_sqs\_work+0xd4/0x344 \[nvmet\_pci\_epf\]
  process\_one\_work+0x15c/0x4f0
  worker\_thread+0x18c/0x30c
  kthread+0x130/0x140
  ret\_from\_fork+0x10/0x20

 freed by task 131 on cpu 3 at 73.995521s (0.008385s ago):
  mempool\_kfree+0x10/0x20
  mempool\_free+0x44/0x64
  nvmet\_pci\_epf\_free\_iod+0x88/0x98 \[nvmet\_pci\_epf\]
  nvmet\_pci\_epf\_cq\_work+0xfc/0x280 \[nvmet\_pci\_epf\]
  process\_one\_work+0x15c/0x4f0
  worker\_thread+0x18c/0x30c
  kthread+0x130/0x140
  ret\_from\_fork+0x10/0x20

Fix this by referring to iod-\>data\_len and iod-\>dma\_dir before calling
req-\>execute(). The remaining iod accesses such as iod-\>status are only
reached on the device-to-host read path. In this case,
nvmet\_pci\_epf\_queue\_response() signals iod-\>done instead of freeing the
iod, so the iod stays valid.

## Affected and fixed versions

- Linux: \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< 20be486d1c225402b067391e72ff5b0dd8ebff76; \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< 1ed1eeaef55cebf2d74b3ef104c20bdab719b165; \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< cede8d2852570c79b9bbb9527255ae9ed3317b82; \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< c9e9bb757971485b4e8414b1744507af186d72c9 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-80787. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-80787.md
Affected: Linux >= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, < 20be486d1c225402b067391e72ff5b0dd8ebff76; >= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, < 1ed1eeaef55cebf2d74b3ef104c20bdab719b165; >= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, < cede8d2852570c79b9bbb9527255ae9ed3317b82; >= 0faa0fe6f90ea59b10d1b0f…
Fixed in: Linux 20be486d1c225402b067391e72ff5b0dd8ebff76, Linux 1ed1eeaef55cebf2d74b3ef104c20bdab719b165

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-80787 being exploited?

There is no confirmed exploitation: CVE-2026-80787 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-80787?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-80787?

Linux \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< 20be486d1c225402b067391e72ff5b0dd8ebff76; \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< 1ed1eeaef55cebf2d74b3ef104c20bdab719b165; \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< cede8d2852570c79b9bbb9527255ae9ed3317b82; \>= 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186, \< c9e9bb757971485b4e8414b1744507af186d72c9; Linux 6.14.

### Is there a fix for CVE-2026-80787?

Yes. Fixed in Linux 20be486d1c225402b067391e72ff5b0dd8ebff76, Linux 1ed1eeaef55cebf2d74b3ef104c20bdab719b165. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-80787?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/20be486d1c225402b067391e72ff5b0dd8ebff76>
- other: <https://git.kernel.org/stable/c/1ed1eeaef55cebf2d74b3ef104c20bdab719b165>
- other: <https://git.kernel.org/stable/c/cede8d2852570c79b9bbb9527255ae9ed3317b82>
- other: <https://git.kernel.org/stable/c/c9e9bb757971485b4e8414b1744507af186d72c9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-80787>

HTML: <https://flawdb.com/CVE-2026-80787> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-80787>
