{"id":"CVE-2026-139230","aliases":["CVE-2026-139230"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: fix fd_limit accounting across durable reconnects","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix fd_limit accounting across durable reconnects\n\nA disconnected durable handle keeps its ksmbd_file and the fd_limit\nreservation taken at its initial open. Reconnecting allocates another\nvolatile ID and takes another reservation for the same file. Final close\nreturns only one reservation, so repeated reconnects permanently reduce\nthe server-wide open-file budget.\n\nMove reservation into ksmbd_open_fd() and release it on every creation\nfailure. Keep the reservation until final close, including while a durable\nhandle is disconnected. Make ID allocation independent of fd_limit so\nreconnects neither consume nor return slots. This also avoids returning an\nunreserved slot when persistent ID allocation fails.\n\nNew opens continue to return -EMFILE when the budget is exhausted, keeping\nthe existing STATUS_INSUFFICIENT_RESOURCES mapping.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix fd_limit accounting across durable reconnects\n\nA disconnected durable handle keeps its ksmbd_file and the fd_limit\nreservation taken at its initial open. Reconnecting allocates another\nvolatile ID and takes another reservation for the same file. Final close\nreturns only one reservation, so repeated reconnects permanently reduce\nthe server-wide open-file budget.\n\nMove reservation into ksmbd_open_fd() and release it on every creation\nfailure. Keep the reservation until final close, including while a durable\nhandle is disconnected. Make ID allocation independent of fd_limit so\nreconnects neither consume nor return slots. This also avoids returning an\nunreserved slot when persistent ID allocation fails.\n\nNew opens continue to return -EMFILE when the budget is exhausted, keeping\nthe existing STATUS_INSUFFICIENT_RESOURCES mapping.","source":"cvelist"}],"published":"2026-11-30T13:32:49.576Z","modified":"2026-11-30T14:18:44.873Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"883670dc0b57bc1ca3b71fe00f40dfce1ab8cb7b","status":"affected"},{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"fcaa65fd23d3cbc69eeca395d6673413577698d8","status":"affected"},{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"7ec499897018d15f4f845491aee227adca9d0452","status":"affected"},{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"df5c868f6b80ca16c171cfac5e4e6c9be83ba4c2","status":"affected"},{"type":"git","version":"8df4bcdb0a4232192b2445256c39b787d58ef14d","status":"affected"},{"type":"semver","introduced":"6.6.32","fixed":"6.7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/883670dc0b57bc1ca3b71fe00f40dfce1ab8cb7b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fcaa65fd23d3cbc69eeca395d6673413577698d8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7ec499897018d15f4f845491aee227adca9d0452","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df5c868f6b80ca16c171cfac5e4e6c9be83ba4c2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139230","url":"https://www.cve.org/CVERecord?id=CVE-2026-139230","licence":"CVE Terms of Use","modified":"2026-11-30T13:32:49.576Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139230","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139230","licence":"Public domain","modified":"2026-11-30T14:18:44.873Z"}],"updatedAt":"2026-11-30T14:32:56.382Z","epss":{"score":0.00201,"percentile":0.10483,"date":"2026-12-01T12:00:22.000Z"}}