CVE-2026-139230: ksmbd: fix fd_limit accounting across durable reconnects

Published Nov 30, 2026
·
Updated

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

ksmbd: fix fdlimit accounting across durable reconnects

A disconnected durable handle keeps its ksmbdfile and the fdlimit reservation taken at its initial open. Reconnecting allocates another volatile ID and takes another reservation for the same file. Final close returns only one reservation, so repeated reconnects permanently reduce the server-wide open-file budget.

Move reservation into ksmbdopenfd() and release it on every creation failure. Keep the reservation until final close, including while a durable handle is disconnected. Make ID allocation independent of fdlimit so reconnects neither consume nor return slots. This also avoids returning an unreserved slot when persistent ID allocation fails.

New opens continue to return -EMFILE when the budget is exhausted, keeping the existing STATUSINSUFFICIENTRESOURCES mapping.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description

Frequently Asked Questions

1

Who is exposed to this issue?

Systems running the Linux kernel SMB server component, ksmbd, are exposed when they handle durable SMB connections that disconnect and reconnect. Repeated durable reconnects can reduce the server-wide open-file budget over time.

2

What would an attacker or client need to do to trigger the problem?

A client needs to establish a durable handle, disconnect it, and repeatedly reconnect it. Each reconnect can consume an additional fd_limit reservation for the same file, while final close releases only one reservation.

3

How would this affect the server in practice?

The server-wide open-file budget can be permanently depleted by repeated reconnects. Once exhausted, new opens continue to fail with -EMFILE, mapped to STATUS_INSUFFICIENT_RESOURCES for SMB clients.

4

Is there a configuration-only workaround if patching cannot happen immediately?

The provided information does not identify a configuration workaround. Reducing exposure to repeated durable-handle reconnect activity may limit triggering, but no specific mitigation is stated.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203