Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
PendingCVE-2026-139230

ksmbd: fix fd_limit accounting across durable reconnects

Published 30/11/2026 · Updated 30/11/2026 · 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.

Affected products and versions

Linux Linuxc8efcc786146a951091588e5fa7e3c754850cb3c – < 883670dc0b57bc1ca3b71fe00f40dfce1ab8cb7b · c8efcc786146a951091588e5fa7e3c754850cb3c – < fcaa65fd23d3cbc69eeca395d6673413577698d8 · c8efcc786146a951091588e5fa7e3c754850cb3c – < 7ec499897018d15f4f845491aee227adca9d0452 · c8efcc786146a951091588e5fa7e3c754850cb3c – < df5c868f6b80ca16c171cfac5e4e6c9be83ba4c2 · 8df4bcdb0a4232192b2445256c39b787d58ef14d · 6.6.32 – < 6.7Fixed in: 883670dc0b57bc1ca3b71fe00f40dfce1ab8cb7b · fcaa65fd23d3cbc69eeca395d6673413577698d8 · 7ec499897018d15f4f845491aee227adca9d0452 · df5c868f6b80ca16c171cfac5e4e6c9be83ba4c2 · 6.7
Linux Linux6.9Fixed in: 6.12.119 · 6.18.65 · 7.3.6 · 7.4-rc1

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.