Samba: samba4: smbd listener counts a failed fork as a child and exhausts max smbd processes
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Red HatRed Hat Enterprise Linux 10 | — | Not listed |
| Red HatRed Hat Enterprise Linux 6 | — | Not listed |
| Red HatRed Hat Enterprise Linux 7 | — | Not listed |
| Red HatRed Hat Enterprise Linux 8 | — | Not listed |
| Red HatRed Hat Enterprise Linux 9 | — | Not listed |
| Red HatRed Hat OpenShift Container Platform 4 | — | Not listed |
| Red HatRed Hat OpenShift Container Platform 5 | — | Not listed |
| SambaSamba |
≥ 3.4.0 (no fix yet)→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-135111 samba No fixed version in this record
Original description The description as published by the source.
An incorrect child count after a failed fork issue has been found in the smbd_accept_connection() function in source3/smbd/server.c of the smbd listener in the Samba package. The parent stores each failed attempt to create a worker in its list of children. The handler that runs when a child exits removes a process the kernel reports. A failed creation has no process for that handler to remove. A network attacker or user can open connections to the file server while the host cannot create another process. Each failed creation stays in the parent's count of children. When an administrator has set a maximum number of smbd processes, and the count reaches that maximum, the listener closes later connections and leaves those clients without a worker. The count remains after the host can create processes again, so clients stay unable to connect until smbd is restarted.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory access.redhat.com
- advisory github.com
- advisory nvd.nist.gov
- package gitlab.com
- patch gitlab.com
- patch gitlab.com
- patch gitlab.com
- report bugzilla.redhat.com
- report bugzilla.samba.org
- web access.redhat.com
- web github.com