# CVE-2026-99563: smb: smbdirect: release failed pending sockets of a listener

- **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.61% (percentile 43, 2026-11-28)
- **Published:** 2026-11-19T14:45:41.720Z
- **Modified:** 2026-11-22T11:16:56.470Z

## Who should check

- Anyone running Linux \>= dc691b91ad1677def14582a279e56fd943b52f94, \< c13279523ed5da31ca7bba761115afdbd40e06eb; \>= dc691b91ad1677def14582a279e56fd943b52f94, \< df7e97ff4f114e1dc2188d11339b8d0299c4a77f; \>= dc691b91ad1677def14582a279e56fd943b52f94, \< 328c7e307e8411899e2f90beae83da9e4c45d700
- Anyone running Linux 7.1

## Description

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

smb: smbdirect: release failed pending sockets of a listener

A child of a listener only left the listen.pending or listen.ready
list via smbdirect\_socket\_accept() or when the listener was
destroyed. So every connection that failed before it was accepted
(negotiate timeout, peer disconnect, invalid negotiate request, ...)
stayed on the list and counted against the backlog until the listener
was destroyed. After about backlog (10 for ksmbd) such connections
smbdirect\_listen\_connect\_request() rejected every new connection with
-EBUSY, so an unauthenticated peer was able to permanently stop
ksmbd from accepting SMB-Direct connections.

Now a failed child moves itself to a new listen.orphaned list at the
end of smbdirect\_socket\_cleanup\_work(), after the disconnect was
started, and queues listen.purge\_orphaned\_work, which releases it
with smbdirect\_socket\_release(), without holding the listener's
rdma\_lock\_handler() lock, in the same way smbdirect\_socket\_destroy()
does for the remaining children. Orphaned sockets still count against
the backlog until they are released.

sc-\>accept.listener is now only changed under listener-\>listen.lock
and whoever clears it is responsible for releasing the socket:
smbdirect\_socket\_accept(), purge\_orphaned\_work or the destroy of the
listener.

In order to make that work:

- a struct smbdirect\_socket that is a listener is now freed via
  kfree\_rcu(), so that a child can dereference sc-\>accept.listener
  under rcu\_read\_lock(), even if the listener is released concurrently.

- smbdirect\_listen\_connect\_request() adds nsc to the listen.pending
  list and sets nsc-\>accept.listener before it calls
  smbdirect\_accept\_connect\_request(), and always returns 0 so the
  rdma\_cm core keeps the connection id and nsc owns it. On a non-zero
  return it schedules nsc's teardown with
  smbdirect\_socket\_schedule\_cleanup(), which orphans it off the
  listener so that purge\_orphaned\_work releases it; nsc destroys its
  own connection id with rdma\_destroy\_id() in that teardown. The
  teardown has to be deferred because the rdma\_cm core holds nsc's
  id\_priv-\>handler\_mutex across the handler, so nsc-\>rdma.cm\_id must
  not be destroyed synchronously from here. That same handler\_mutex
  (and the listener's) also guarantees nsc can't go away under us,
  so setting the listener before the call is safe and lets a failure
  orphan nsc.

- smbdirect\_accept\_negotiate\_recv\_work() no longer moves a socket to
  the ready list if it already failed or no longer belongs to the
  listener. Every accepting socket has a listener, so if
  sc-\>accept.listener is already cleared, it no longer sends a
  negotiate response, as the socket is about to be released.

- smbdirect\_socket\_destroy() of the listener disables
  purge\_orphaned\_work and also releases the orphaned sockets.

## Affected and fixed versions

- Linux: \>= dc691b91ad1677def14582a279e56fd943b52f94, \< c13279523ed5da31ca7bba761115afdbd40e06eb; \>= dc691b91ad1677def14582a279e56fd943b52f94, \< df7e97ff4f114e1dc2188d11339b8d0299c4a77f; \>= dc691b91ad1677def14582a279e56fd943b52f94, \< 328c7e307e8411899e2f90beae83da9e4c45d700 (cvelist)
- Linux: 7.1 (cvelist)

## Technologies

Linux kernel

## Mitigation

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

Details: https://flawdb.com/CVE-2026-99563.md
Affected: Linux >= dc691b91ad1677def14582a279e56fd943b52f94, < c13279523ed5da31ca7bba761115afdbd40e06eb; >= dc691b91ad1677def14582a279e56fd943b52f94, < df7e97ff4f114e1dc2188d11339b8d0299c4a77f; >= dc691b91ad1677def14582a279e56fd943b52f94, < 328c7e307e8411899e2f90beae83da9e4c45d700; Linux 7.1
Fixed in: Linux 328c7e307e8411899e2f90beae83da9e4c45d700

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

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

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

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

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

Linux \>= dc691b91ad1677def14582a279e56fd943b52f94, \< c13279523ed5da31ca7bba761115afdbd40e06eb; \>= dc691b91ad1677def14582a279e56fd943b52f94, \< df7e97ff4f114e1dc2188d11339b8d0299c4a77f; \>= dc691b91ad1677def14582a279e56fd943b52f94, \< 328c7e307e8411899e2f90beae83da9e4c45d700; Linux 7.1.

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

Yes. Fixed in Linux 328c7e307e8411899e2f90beae83da9e4c45d700. Upgrade Linux to 328c7e307e8411899e2f90beae83da9e4c45d700 or later.

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

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/c13279523ed5da31ca7bba761115afdbd40e06eb>
- other: <https://git.kernel.org/stable/c/df7e97ff4f114e1dc2188d11339b8d0299c4a77f>
- other: <https://git.kernel.org/stable/c/328c7e307e8411899e2f90beae83da9e4c45d700>

## 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-99563>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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