ksmbd: fix fd_limit accounting across durable reconnects

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linuxc8efcc786146a951091588e5fa7e3c754850cb3c to before 883670dc0b57bc1ca3b71fe00f40dfce1ab8cb7b Affectedc8efcc786146a951091588e5fa7e3c754850cb3c to before fcaa65fd23d3cbc69eeca395d6673413577698d8 Affectedc8efcc786146a951091588e5fa7e3c754850cb3c to before 7ec499897018d15f4f845491aee227adca9d0452 Affectedc8efcc786146a951091588e5fa7e3c754850cb3c to before df5c868f6b80ca16c171cfac5e4e6c9be83ba4c2 Affected8df4bcdb0a4232192b2445256c39b787d58ef14d Affected6.6.32 to before 6.7 Affected
Linux Linux6.9 Affectedbefore 6.9 Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.