# CVE-2026-90172: smb: smbdirect: destroy QP before mem pools on accept failure

> 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.49% (percentile 35, 2026-11-26)
- **Published:** 2026-09-17T16:06:59.794Z
- **Modified:** 2026-10-19T09:19:07.087Z

## Who should check

- Anyone running Linux \>= eb3ed1e9048cf7b2a38112f48e0f1b772bb7860d, \< 959813a3752b459ed77b0b3eaf30b9f4c6204260; \>= eb3ed1e9048cf7b2a38112f48e0f1b772bb7860d, \< 383a9480f5f40bc46454cce27ccfad532cedad9c
- Anyone running Linux 7.1

## Description

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

smb: smbdirect: destroy QP before mem pools on accept failure

On the rdma\_accept\_failed error path of
smbdirect\_accept\_connect\_request(), the receive io posted just above is
owned by the QP (recv\_io is set to NULL after a successful post).  The
error path fell through to smbdirect\_connection\_destroy\_mem\_pools()
before smbdirect\_connection\_destroy\_qp(), so the mem pools and the
recv\_io slab cache were destroyed while that recv\_io was still
outstanding on the QP.

The drain in smbdirect\_connection\_destroy\_qp() (ib\_drain\_qp()) is what
runs the recv completion that returns the recv\_io to the free list, so
destroying the pools first leaves the object outstanding at
kmem\_cache\_destroy() time ("Slab cache still has objects") and later
frees it into an already-destroyed mempool (mempool\_free\_bulk
NULL-pointer dereference).

Give rdma\_accept\_failed its own teardown that drains the QP first, then
destroys the mem pools, and returns.  The remaining labels
(post\_recv\_io\_failed onward) run before the recv\_io was ever posted, so
they keep the mem-pools-then-qp order.

The outstanding recv\_io at kmem\_cache\_destroy() time:

\[ 3487.344647\] =============================================================================
\[ 3487.349942\] BUG smbdirect\_recv\_io\_cache\_ffff88811ba99000 (Not tainted): Objects remaining on \_\_kmem\_cache\_shutdown()
\[ 3487.356078\] -----------------------------------------------------------------------------
\[ 3487.356078\]
\[ 3487.356738\] Object 0xffff8881511c3440 @offset=13376
\[ 3487.358464\] Allocated in mempool\_alloc\_noprof+0x18c/0x290 age=1194 cpu=6 pid=22254
\[ 3487.361197\]  mempool\_alloc\_noprof+0x18c/0x290
\[ 3487.361542\]  smbdirect\_connection\_create\_mem\_pools+0x405/0x780
\[ 3487.361972\]  smbdirect\_accept\_connect\_request+0x5a8/0x1b80
\[ 3487.362359\]  smbdirect\_listen\_rdma\_event\_handler+0x1579/0x1b90
\[ 3487.362779\]  cma\_cm\_event\_handler+0x9c/0x230
\[ 3487.363096\]  cma\_ib\_req\_handler+0x2682/0x45d0
\[ 3487.363414\]  cm\_process\_work+0x56/0x3d0
\[ 3487.363676\]  cm\_work\_handler+0x8a0e/0xd000
\[ 3487.367496\]  process\_scheduled\_works+0xa07/0x13a0
\[ 3487.367859\]  worker\_thread+0x7c9/0xc80
\[ 3487.368148\]  kthread+0x341/0x430
\[ 3487.368407\]  ret\_from\_fork+0x3a8/0x7a0
\[ 3487.368704\]  ret\_from\_fork\_asm+0x1a/0x30
\[ 3487.370307\] Slab 0xffffea0005447000 objects=19 used=1 fp=0xffff8881511c0040 flags=0x100000000000240(workingset\|head\|node=0\|zone=2)
\[ 3487.372840\] ------------\[ cut here \]------------
\[ 3487.373195\] WARNING: mm/slub.c:1244 at \_\_slab\_err+0x1a/0x30, CPU\#6: kworker/6:84/22254
\[ 3487.373759\] Modules linked in:
\[ 3487.373993\] CPU: 6 UID: 0 PID: 22254 Comm: kworker/6:84 Tainted: G    B               7.1.0-next-20260623+ \#88 PREEMPT(lazy)
\[ 3487.374778\] Tainted: \[B\]=BAD\_PAGE
\[ 3487.377830\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-debian-1.17.0-1 04/01/2014
\[ 3487.378515\] Workqueue: ib\_cm cm\_work\_handler
\[ 3487.378820\] RIP: 0010:\_\_slab\_err+0x1a/0x30
\[ 3487.379129\] Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 44 00 00 e8 36 00 00 00 bf 05 00 00 00 be 01 00 00 00 e8 f7 75 45 00 90 \<0f\> 0b 90 c3 cc cc cc cc cc 66 66 66 66 2e 0f 1f 84 00 00 00 00 00
\[ 3487.383255\] RSP: 0018:ffff888220fc7050 EFLAGS: 00010093
\[ 3487.383643\] RAX: ffffffff8168e60a RBX: ffff88810955e640 RCX: ffff88821c381d80
\[ 3487.384158\] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff870fa080
\[ 3487.384662\] RBP: ffff888220fc7068 R08: ffffffff870fa087 R09: 1ffffffff0e1f410
\[ 3487.385192\] R10: dffffc0000000000 R11: fffffbfff0e1f411 R12: ffffea0005447210
\[ 3487.385674\] R13: ffffea0005447000 R14: ffff888220fc7068 R15: ffff88812a8ab300
\[ 3487.388932\] FS:  0000000000000000(0000) GS:ffff888427e76000(0000) knlGS:0000000000000000
\[ 3487.389529\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[ 3487.389934\] CR2: 00007ffcf2d84fd8 CR3: 0000000111d64006 CR4: 0000000000f72ef0
\[ 3487.390440\] PKRU: 55555554
\[ 3487.390641\] Call Trace:
\[ 3487.390826\]  \<TASK\>
\[ 3
---truncated---

## Affected and fixed versions

- Linux: \>= eb3ed1e9048cf7b2a38112f48e0f1b772bb7860d, \< 959813a3752b459ed77b0b3eaf30b9f4c6204260; \>= eb3ed1e9048cf7b2a38112f48e0f1b772bb7860d, \< 383a9480f5f40bc46454cce27ccfad532cedad9c (cvelist)
- Linux: 7.1 (cvelist)

## Mitigation

- Upgrade Linux to 383a9480f5f40bc46454cce27ccfad532cedad9c 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-90172. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-90172.md
Affected: Linux >= eb3ed1e9048cf7b2a38112f48e0f1b772bb7860d, < 959813a3752b459ed77b0b3eaf30b9f4c6204260; >= eb3ed1e9048cf7b2a38112f48e0f1b772bb7860d, < 383a9480f5f40bc46454cce27ccfad532cedad9c; Linux 7.1
Fixed in: Linux 959813a3752b459ed77b0b3eaf30b9f4c6204260, Linux 383a9480f5f40bc46454cce27ccfad532cedad9c

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

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

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

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

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

Linux \>= eb3ed1e9048cf7b2a38112f48e0f1b772bb7860d, \< 959813a3752b459ed77b0b3eaf30b9f4c6204260; \>= eb3ed1e9048cf7b2a38112f48e0f1b772bb7860d, \< 383a9480f5f40bc46454cce27ccfad532cedad9c; Linux 7.1.

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

Yes. Fixed in Linux 959813a3752b459ed77b0b3eaf30b9f4c6204260, Linux 383a9480f5f40bc46454cce27ccfad532cedad9c. Upgrade Linux to 383a9480f5f40bc46454cce27ccfad532cedad9c or later.

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

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/959813a3752b459ed77b0b3eaf30b9f4c6204260>
- other: <https://git.kernel.org/stable/c/383a9480f5f40bc46454cce27ccfad532cedad9c>

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

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