CVE-2026-139230
JSON

Not scored

ksmbd: fix fd_limit accounting across durable reconnects

Severity
Not scored
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2026-139230 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-139230 changed 2026-11-30Public domain