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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:49.576Z
- Modified: 2026-11-30T14:18:44.873Z
- Assigned by: Linux

## Description

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

ksmbd: fix fd_limit accounting across durable reconnects

A disconnected durable handle keeps its ksmbd_file and the fd_limit
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 ksmbd_open_fd() 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 fd_limit 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 STATUS_INSUFFICIENT_RESOURCES mapping.

(As written by CVE List.)

## Affected

- Linux Linux: from c8efcc786146a951091588e5fa7e3c754850cb3c before 883670dc0b57bc1ca3b71fe00f40dfce1ab8cb7b; from c8efcc786146a951091588e5fa7e3c754850cb3c before fcaa65fd23d3cbc69eeca395d6673413577698d8; from c8efcc786146a951091588e5fa7e3c754850cb3c before 7ec499897018d15f4f845491aee227adca9d0452; from c8efcc786146a951091588e5fa7e3c754850cb3c before df5c868f6b80ca16c171cfac5e4e6c9be83ba4c2; 8df4bcdb0a4232192b2445256c39b787d58ef14d; from 6.6.32 before 6.7; 6.9 (not affected: before 6.9; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/883670dc0b57bc1ca3b71fe00f40dfce1ab8cb7b>
- <https://git.kernel.org/stable/c/fcaa65fd23d3cbc69eeca395d6673413577698d8>
- <https://git.kernel.org/stable/c/7ec499897018d15f4f845491aee227adca9d0452>
- <https://git.kernel.org/stable/c/df5c868f6b80ca16c171cfac5e4e6c9be83ba4c2>

## Sources

- CVE List: [CVE-2026-139230](https://www.cve.org/CVERecord?id=CVE-2026-139230), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139230](https://nvd.nist.gov/vuln/detail/CVE-2026-139230), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139230 · Whole record: https://cve.day/CVE-2026-139230.json · Rebuilt by cve.day 2026-11-30T14:32:56.382Z
