{"id":"CVE-2026-139230","state":"PUBLISHED","title":"ksmbd: fix fd_limit accounting across durable reconnects","description":"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.","publishedAt":"2026-11-30T13:32:49.576Z","updatedAt":"2026-11-30T13:32:49.576Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"883670dc0b57bc1ca3b71fe00f40dfce1ab8cb7b","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"fcaa65fd23d3cbc69eeca395d6673413577698d8","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"7ec499897018d15f4f845491aee227adca9d0452","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"df5c868f6b80ca16c171cfac5e4e6c9be83ba4c2","versionType":"git"},{"version":"8df4bcdb0a4232192b2445256c39b787d58ef14d","status":"affected","versionType":"git"},{"version":"6.6.32","status":"affected","lessThan":"6.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/vfs_cache.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/vfs_cache.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139230.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139230","state":"PUBLISHED","datePublished":"2026-11-30T13:32:49.576Z","dateUpdated":"2026-11-30T13:32:49.576Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.921Z"},"containers":{"cna":{"title":"ksmbd: fix fd_limit accounting across durable reconnects","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"883670dc0b57bc1ca3b71fe00f40dfce1ab8cb7b","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"fcaa65fd23d3cbc69eeca395d6673413577698d8","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"7ec499897018d15f4f845491aee227adca9d0452","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"df5c868f6b80ca16c171cfac5e4e6c9be83ba4c2","versionType":"git"},{"version":"8df4bcdb0a4232192b2445256c39b787d58ef14d","status":"affected","versionType":"git"},{"version":"6.6.32","status":"affected","lessThan":"6.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/vfs_cache.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/vfs_cache.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/883670dc0b57bc1ca3b71fe00f40dfce1ab8cb7b"},{"url":"https://git.kernel.org/stable/c/fcaa65fd23d3cbc69eeca395d6673413577698d8"},{"url":"https://git.kernel.org/stable/c/7ec499897018d15f4f845491aee227adca9d0452"},{"url":"https://git.kernel.org/stable/c/df5c868f6b80ca16c171cfac5e4e6c9be83ba4c2"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:49.576Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.32"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}