# CVE-2026-31557: nvmet: move async event work off nvmet-wq

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.55% (percentile 40, 2026-11-28)
- **CWE:** CWE-667
- **Published:** 2026-04-24T14:35:40.544Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< ede147a85d1d4c075d13ba190453d6b09ecbea37; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< a8a3fb2888e2c4fd5410a19ac1623cc78a2383ec; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< 49c7c50ee6325a084216e94395e067ecde8088fa; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< ca111c9d8d6c9d5735878d933a1716c4be86c2d1; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< 25ceffc1dabec3b93f458b437aae26f4da293f87; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< 2922e3507f6d5caa7f1d07f145e186fc6f317a4e; d44ff3b100b94e9f23b1e8dbe688eee9bb867ac9; 84026f8c9357c62a9d3e4c554ffd10ccab813654; \>= 5.15.42, \< 5.16; \>= 5.17.10, \< 5.18
- Anyone running Linux 5.18

## Description

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

nvmet: move async event work off nvmet-wq

For target nvmet\_ctrl\_free() flushes ctrl-\>async\_event\_work.
If nvmet\_ctrl\_free() runs on nvmet-wq, the flush re-enters workqueue
completion for the same worker:-

A. Async event work queued on nvmet-wq (prior to disconnect):
  nvmet\_execute\_async\_event()
     queue\_work(nvmet\_wq, &ctrl-\>async\_event\_work)

  nvmet\_add\_async\_event()
     queue\_work(nvmet\_wq, &ctrl-\>async\_event\_work)

B. Full pre-work chain (RDMA CM path):
  nvmet\_rdma\_cm\_handler()
     nvmet\_rdma\_queue\_disconnect()
       \_\_nvmet\_rdma\_queue\_disconnect()
         queue\_work(nvmet\_wq, &queue-\>release\_work)
           process\_one\_work()
             lock((wq\_completion)nvmet-wq)  \<--------- 1st
             nvmet\_rdma\_release\_queue\_work()

C. Recursive path (same worker):
  nvmet\_rdma\_release\_queue\_work()
     nvmet\_rdma\_free\_queue()
       nvmet\_sq\_destroy()
         nvmet\_ctrl\_put()
           nvmet\_ctrl\_free()
             flush\_work(&ctrl-\>async\_event\_work)
               \_\_flush\_work()
                 touch\_wq\_lockdep\_map()
                 lock((wq\_completion)nvmet-wq) \<--------- 2nd

Lockdep splat:

  ============================================
  WARNING: possible recursive locking detected
  6.19.0-rc3nvme+ \#14 Tainted: G                 N
  --------------------------------------------
  kworker/u192:42/44933 is trying to acquire lock:
  ffff888118a00948 ((wq\_completion)nvmet-wq){+.+.}-{0:0}, at: touch\_wq\_lockdep\_map+0x26/0x90

  but task is already holding lock:
  ffff888118a00948 ((wq\_completion)nvmet-wq){+.+.}-{0:0}, at: process\_one\_work+0x53e/0x660

  3 locks held by kworker/u192:42/44933:
   \#0: ffff888118a00948 ((wq\_completion)nvmet-wq){+.+.}-{0:0}, at: process\_one\_work+0x53e/0x660
   \#1: ffffc9000e6cbe28 ((work\_completion)(&queue-\>release\_work)){+.+.}-{0:0}, at: process\_one\_work+0x1c5/0x660
   \#2: ffffffff82d4db60 (rcu\_read\_lock){....}-{1:3}, at: \_\_flush\_work+0x62/0x530

  Workqueue: nvmet-wq nvmet\_rdma\_release\_queue\_work \[nvmet\_rdma\]
  Call Trace:
   \_\_flush\_work+0x268/0x530
   nvmet\_ctrl\_free+0x140/0x310 \[nvmet\]
   nvmet\_cq\_put+0x74/0x90 \[nvmet\]
   nvmet\_rdma\_free\_queue+0x23/0xe0 \[nvmet\_rdma\]
   nvmet\_rdma\_release\_queue\_work+0x19/0x50 \[nvmet\_rdma\]
   process\_one\_work+0x206/0x660
   worker\_thread+0x184/0x320
   kthread+0x10c/0x240
   ret\_from\_fork+0x319/0x390

Move async event work to a dedicated nvmet-aen-wq to avoid reentrant
flush on nvmet-wq.

## Affected and fixed versions

- Linux: \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< ede147a85d1d4c075d13ba190453d6b09ecbea37; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< a8a3fb2888e2c4fd5410a19ac1623cc78a2383ec; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< 49c7c50ee6325a084216e94395e067ecde8088fa; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< ca111c9d8d6c9d5735878d933a1716c4be86c2d1; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< 25ceffc1dabec3b93f458b437aae26f4da293f87; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< 2922e3507f6d5caa7f1d07f145e186fc6f317a4e; d44ff3b100b94e9f23b1e8dbe688eee9bb867ac9; 84026f8c9357c62a9d3e4c554ffd10ccab813654; \>= 5.15.42, \< 5.16; \>= 5.17.10, \< 5.18 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 5.18 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-31557.md
Affected: Linux >= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, < ede147a85d1d4c075d13ba190453d6b09ecbea37; >= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, < a8a3fb2888e2c4fd5410a19ac1623cc78a2383ec; >= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, < 49c7c50ee6325a084216e94395e067ecde8088fa; >= 8832cf922151e9dfa282173…
Fixed in: Linux 49c7c50ee6325a084216e94395e067ecde8088fa, Linux 25ceffc1dabec3b93f458b437aae26f4da293f87, Linux 2922e3507f6d5caa7f1d07f145e186fc6f317a4e, Linux 5.16, Linux 5.18

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-31557 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< ede147a85d1d4c075d13ba190453d6b09ecbea37; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< a8a3fb2888e2c4fd5410a19ac1623cc78a2383ec; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< 49c7c50ee6325a084216e94395e067ecde8088fa; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< ca111c9d8d6c9d5735878d933a1716c4be86c2d1; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< 25ceffc1dabec3b93f458b437aae26f4da293f87; \>= 8832cf922151e9dfa2821736beb0ae2dd3968b6e, \< 2922e3507f6d5caa7f1d07f145e186fc6f317a4e; d44ff3b100b94e9f23b1e8dbe688eee9bb867ac9; 84026f8c9357c62a9d3e4c554ffd10ccab813654; \>= 5.15.42, \< 5.16; \>= 5.17.10, \< 5.18; Linux 5.18.

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

Yes. Fixed in Linux 49c7c50ee6325a084216e94395e067ecde8088fa, Linux 25ceffc1dabec3b93f458b437aae26f4da293f87, Linux 2922e3507f6d5caa7f1d07f145e186fc6f317a4e, Linux 5.16, Linux 5.18. Upgrade Linux to 5.18 or later.

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

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

- patch: <https://git.kernel.org/stable/c/49c7c50ee6325a084216e94395e067ecde8088fa>
- patch: <https://git.kernel.org/stable/c/ca111c9d8d6c9d5735878d933a1716c4be86c2d1>
- patch: <https://git.kernel.org/stable/c/25ceffc1dabec3b93f458b437aae26f4da293f87>
- patch: <https://git.kernel.org/stable/c/2922e3507f6d5caa7f1d07f145e186fc6f317a4e>
- other: <https://git.kernel.org/stable/c/ede147a85d1d4c075d13ba190453d6b09ecbea37>
- other: <https://git.kernel.org/stable/c/a8a3fb2888e2c4fd5410a19ac1623cc78a2383ec>

## 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-31557>

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