# CVE-2026-90173: smb: smbdirect: free completion queues with ib\_free\_cq()

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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)
- **Published:** 2026-09-17T16:07:00.463Z
- **Modified:** 2026-10-19T09:19:07.217Z

## Who should check

- Anyone running Linux \>= 6073eb3e31756d569c4853fb22724525739d0e0c, \< 8a953b1a47fffb71e70767bc1e914401e3c2f27f; \>= 6073eb3e31756d569c4853fb22724525739d0e0c, \< fe2c0cacbcff9d56c03b296f68f22151c4223b04
- Anyone running Linux 7.1

## Description

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

smb: smbdirect: free completion queues with ib\_free\_cq()

smbdirect\_connection\_destroy\_qp() creates the send and receive completion
queues with ib\_alloc\_cq\_any(), which for IB\_POLL\_WORKQUEUE arms an
internal completion handler that runs ib\_cq\_poll\_work() on a workqueue.
Tearing those CQs down with ib\_destroy\_cq() frees them without first
cancelling that poll work.

If the provider posts a completion late -- for example Soft-RoCE (rxe)
posting an RNR error from rxe\_receiver() after rdma\_destroy\_qp() -- the
handler re-queues ib\_cq\_poll\_work() on the already-freed CQ, and a
follow-on access faults in rxe\_req\_notify\_cq().

Use ib\_free\_cq(), which cancel\_work\_sync()es the poll work before freeing
the CQ, so no completion handler can run against a freed queue.

\[ 1236.599526\] ==================================================================
\[ 1236.602142\] BUG: KASAN: slab-use-after-free in ib\_cq\_poll\_work+0xd0/0x1a0
\[ 1236.605524\] Read of size 8 at addr ffff888111865800 by task kworker/4:1H/82
\[ 1236.609017\]
\[ 1236.609270\] CPU: 4 UID: 0 PID: 82 Comm: kworker/4:1H Not tainted 7.2.0-rc3-next-20260717-virtme \#110 PREEMPT(lazy)
\[ 1236.609287\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-debian-1.17.0-1 04/01/2014
\[ 1236.609498\] Workqueue: ib-comp-wq ib\_cq\_poll\_work
\[ 1236.609525\] Call Trace:
\[ 1236.609536\]  \<TASK\>
\[ 1236.609545\]  \_\_dump\_stack+0x21/0x60
\[ 1236.609562\]  dump\_stack\_lvl+0xc2/0x100
\[ 1236.609573\]  print\_address\_description+0x77/0x200
\[ 1236.609587\]  ? ib\_cq\_poll\_work+0xd0/0x1a0
\[ 1236.609597\]  print\_report+0x58/0x70
\[ 1236.609607\]  kasan\_report+0x117/0x150
\[ 1236.609623\]  ? ib\_cq\_poll\_work+0xd0/0x1a0
\[ 1236.609636\]  ? process\_scheduled\_works+0x954/0x1600
\[ 1236.609650\]  ib\_cq\_poll\_work+0xd0/0x1a0
\[ 1236.609662\]  ? process\_scheduled\_works+0x954/0x1600
\[ 1236.609674\]  process\_scheduled\_works+0xc22/0x1600
\[ 1236.609698\]  ? \_\_pfx\_process\_scheduled\_works+0x10/0x10
\[ 1236.609713\]  ? \_\_pfx\_assign\_work+0x10/0x10
\[ 1236.609726\]  ? lock\_is\_held\_type+0x7b/0x110
\[ 1236.609741\]  worker\_thread+0x975/0xee0
\[ 1236.609757\]  ? \_\_pfx\_do\_raw\_spin\_lock+0x10/0x10
\[ 1236.609775\]  ? \_\_kthread\_parkme+0x21e/0x260
\[ 1236.609789\]  kthread+0x3a6/0x490
\[ 1236.609800\]  ? \_\_pfx\_worker\_thread+0x10/0x10
\[ 1236.609809\]  ? \_\_pfx\_kthread+0x10/0x10
\[ 1236.609820\]  ret\_from\_fork+0x55a/0xa20
\[ 1236.609835\]  ? \_\_pfx\_ret\_from\_fork+0x10/0x10
\[ 1236.609850\]  ? \_\_pfx\_kthread+0x10/0x10
\[ 1236.609861\]  ret\_from\_fork\_asm+0x1a/0x30
\[ 1236.609880\]  \</TASK\>
\[ 1236.609886\]
\[ 1236.661292\] Allocated by task 5076:
\[ 1236.662640\]  kasan\_save\_track+0x3e/0x80
\[ 1236.663842\]  \_\_kasan\_kmalloc+0x72/0x90
\[ 1236.664763\]  \_\_kmalloc\_noprof+0x2b0/0x5d0
\[ 1236.665356\]  \_\_ib\_alloc\_cq+0x284/0x1000
\[ 1236.666573\]  \_\_ib\_alloc\_cq\_any+0x23e/0x340
\[ 1236.668654\]  smbdirect\_connection\_create\_qp+0x6f7/0x1070
\[ 1236.669757\]  smbdirect\_accept\_connect\_request+0x500/0x1ca0
\[ 1236.672625\]  smbdirect\_listen\_rdma\_event\_handler+0x1655/0x1c50
\[ 1236.673930\]  cma\_listen\_handler+0x1bf/0x260
\[ 1236.674923\]  cma\_cm\_event\_handler+0x128/0x380
\[ 1236.676926\]  cma\_ib\_req\_handler+0x2d3d/0x4de0
\[ 1236.678368\]  cm\_process\_work+0xb0/0x530
\[ 1236.680454\]  cm\_queue\_work\_unlock+0xb1/0x230
\[ 1236.681673\]  cm\_work\_handler+0x969f/0xdca0
\[ 1236.682704\]  process\_scheduled\_works+0xc22/0x1600
\[ 1236.683447\]  worker\_thread+0x975/0xee0
\[ 1236.685901\]  kthread+0x3a6/0x490
\[ 1236.688164\]  ret\_from\_fork+0x55a/0xa20
\[ 1236.689522\]  ret\_from\_fork\_asm+0x1a/0x30
\[ 1236.690073\]
\[ 1236.690378\] Freed by task 5137:
\[ 1236.692242\]  kasan\_save\_track+0x3e/0x80
\[ 1236.694272\]  kasan\_save\_free\_info+0x40/0x50
\[ 1236.695514\]  \_\_kasan\_slab\_free+0x3a/0x60
\[ 1236.696773\]  kfree+0x14e/0x4e0
\[ 1236.697216\]  ib\_destroy\_cq\_user+0x18d/0x250
\[ 1236.699817\]  smbdirect\_connection\_destroy\_qp+0xf2/0x280
\[ 1236.702115\]  smbdirect\_socket\_destroy\_sync+0x1607/0x2720
\[ 1236.704062\]  smbdirect\_socket\_release+0x140/0x280
\[ 1236.705286\]  smb\_direct\_free\_transpor
---truncated---

## Affected and fixed versions

- Linux: \>= 6073eb3e31756d569c4853fb22724525739d0e0c, \< 8a953b1a47fffb71e70767bc1e914401e3c2f27f; \>= 6073eb3e31756d569c4853fb22724525739d0e0c, \< fe2c0cacbcff9d56c03b296f68f22151c4223b04 (cvelist)
- Linux: 7.1 (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-90173. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-90173.md
Affected: Linux >= 6073eb3e31756d569c4853fb22724525739d0e0c, < 8a953b1a47fffb71e70767bc1e914401e3c2f27f; >= 6073eb3e31756d569c4853fb22724525739d0e0c, < fe2c0cacbcff9d56c03b296f68f22151c4223b04; Linux 7.1
Fixed in: Linux 8a953b1a47fffb71e70767bc1e914401e3c2f27f

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

There is no confirmed exploitation: CVE-2026-90173 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-90173?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 6073eb3e31756d569c4853fb22724525739d0e0c, \< 8a953b1a47fffb71e70767bc1e914401e3c2f27f; \>= 6073eb3e31756d569c4853fb22724525739d0e0c, \< fe2c0cacbcff9d56c03b296f68f22151c4223b04; Linux 7.1.

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

Yes. Fixed in Linux 8a953b1a47fffb71e70767bc1e914401e3c2f27f. No fix listed yet: follow the vendor advisory.

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

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/8a953b1a47fffb71e70767bc1e914401e3c2f27f>
- other: <https://git.kernel.org/stable/c/fe2c0cacbcff9d56c03b296f68f22151c4223b04>

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

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