Bug 2587264 (CVE-2026-139230) - CVE-2026-139230 kernel: kernel: ksmbd: Denial of Service via improper file descriptor accounting
Summary: CVE-2026-139230 kernel: kernel: ksmbd: Denial of Service via improper file de...
Keywords:
Status: NEW
Alias: CVE-2026-139230
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 15:09 UTC by OSIDB Bzimport
Modified: 2026-12-01 13:49 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 15:09:23 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.