Samba’s file server is one listening process that forks a worker for every client, and max smbd processes is the smb.conf ceiling on how many workers it will run, “intended as a stopgap to prevent degrading service to clients in the event that the server has insufficient resources”. The ceiling is enforced by counting children, and the record describes what happens when a fork fails: “the parent stores each failed attempt to create a worker in its list of children”, the SIGCHLD handler that trims the list only removes processes the kernel reports exiting, and a failed fork has no process to report, so “each failed creation stays in the parent’s count of children”. Once the count reaches the ceiling “the listener closes later connections”, and because “the count remains after the host can create processes again”, clients “stay unable to connect until smbd is restarted”. Red Hat rates it Moderate and scores it 5.9. If your smb.conf sets max smbd processes, know that a restart clears the condition, watch the child count, and take the fix when your distribution ships it; a server that leaves the parameter at its default of 0 is outside the described flaw.
CVE-2026-135111 at a glance.
| Component | Samba, the smbd listener: smbd_accept_connection() in source3/smbd/server.c, where a new connection is forked to a worker and the worker is added to the parent’s child list |
| Affected versions | Samba 3.4.0 onward, per the Red Hat CNA record, which lists RHEL 7, 8, 9 and 10 and the OpenShift CoreOS images as affected and RHEL 6 as unknown |
| Fixed in | Samba master, commit bec3630c643f581a10132e61400d960d17eb960e (“CVE-2026-135111: s3:smbd: Don’t record a child with pid -1 when fork() fails”, autobuild 30 November 2026, from merge request 4872); no Samba release carries it on 1 December 2026. The current release is 4.25.2 of 30 November, whose security entry is CVE-2026-120377, and samba.org’s security page has no entry for this CVE. The one-line change is public on the project’s GitHub mirror |
| Severity | Red Hat (CNA) CVSS 3.1 5.9 Medium (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H), Red Hat severity Moderate, CWE-772 (missing release of resource after effective lifetime); NVD Awaiting Analysis with the CNA score. The AC:H is that the host must be unable to fork at the moment the connections arrive. Debian, Ubuntu, SUSE and Alpine pages unreachable on 1 December |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS: no score yet on 1 December 2026 |
| Who is exposed | Samba file servers on Linux whose smb.conf sets max smbd processes to a non-zero value (the default is 0, no limit, per the parameter’s documentation) and that can be driven to a state where fork() fails: a process-count limit (RLIMIT_NPROC, a pids.max cgroup, a TasksMax on the unit) or memory exhaustion, with a network attacker or user opening connections at that moment. The result is that every later SMB client is refused until an administrator restarts smbd. Samba AD domain controllers forking for LDAP and netlogon under the same parameter run the same listener code, but the record and the fix are about the file server |
| Published | Made public 21 November 2026 per the record’s timeline, reported to Red Hat 24 November, CVE record 1 December 2026; this page built 1 December 2026, last updated 1 December 2026 |
What it is
The bug is a single comparison, and the fix commit and the master source read for this page show it. In smbd_accept_connection() the listener first checks allowable_number_of_smbd_processes(), which returns true when the parameter is 0 or when num_children is below it, then calls fork(). The child branch handles the connection. In the parent, the code that recorded the new worker read if (pid != 0) before calling add_child_pid(), and fork() signals failure by returning -1, which is also not zero. So a failed fork logged “fork() failed” and then added a child with pid -1 to the list and incremented num_children. The SIGCHLD handler decrements the count when the kernel reports a real child exiting; a child that never existed never exits, so the count never comes back down.
That turns a transient condition into a permanent one. A host that briefly cannot fork, because a runaway process hit the user’s process limit, a container’s pids.max was reached, or memory was exhausted, refuses connections for the duration anyway; without the bug, service returns when the condition clears. With it, every connection attempted during the window adds a phantom child, and if enough arrive to reach max smbd processes the ceiling stays reached after the host recovers, because the phantoms are never reaped. The listener then closes every new connection at the allowable_number_of_smbd_processes() check, before it even tries to fork. The merge request’s author reproduced it on master with max smbd processes = 5 and a preloaded fork() that returned EAGAIN: clients got NT_STATUS_CONNECTION_RESET, and with the fix the count stayed at two and connections worked.
The fix changes the comparison to if (pid > 0), the same explicit fork-failure handling the other fork sites in server.c and winbindd_dual.c already used, and the master tree read for this page carries it. It is one line in one file, reviewed by Anoop C S, Ralph Boehme and Andrew Bartlett, and the author offered backports once it was in master; no release has picked it up yet, and Samba’s own security page does not list the CVE, so this page says “no release yet” and will be updated when one appears. The reporter is Muhammad Daffa, credited by Red Hat, and Red Hat records that it “is not aware of a practical temporary workaround”. The Samba Bugzilla entry (16328) and the GitLab commit pages refuse automated readers; the facts here are from the record, the merge request, the GitHub mirror of the commit and of the source, and Red Hat’s bug.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. Most trackers had no page or refused automated readers on the day the record was published, which the rows say rather than guess.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Tracker unreachable on 1 December 2026 (client error); nothing inferred | — |
| Debian | Tracker unreachable on 1 December 2026 (client error on two attempts); nothing inferred. Every Debian samba package is a 4.x build inside the record’s range | — |
| Ubuntu | Tracker unreachable on 1 December 2026 (server error on four attempts across two sessions); nothing inferred | — |
| RHEL, Rocky, Alma, CentOS Stream | Moderate, CVSS 5.9; samba on RHEL 7, 8, 9 and 10 affected per the CNA record, RHEL 6 (samba and samba4) unknown; OpenShift 4 and 5 CoreOS images affected; no erratum; Red Hat bug 2583142 (NEW, no fixed version); Fedora 43, 44 and rawhide clones open | nothing on 1 December 2026 |
| openSUSE/SLE | Tracker unreachable on 1 December 2026 (client error); nothing inferred | — |
| Upstream tarballs, NAS firmware, container images | The master commit applies to every 3.4.0 or later build; no release carries it | commit bec3630c on master |
How to check
Three questions, in order: does this server set max smbd processes at all, is the phantom-child condition present right now, and what on the host could make fork() fail. The first is the gate; a server that leaves the parameter at 0 never reaches the code that refuses connections, whatever the count says.
# 1. is the ceiling set? (0 or absent means no limit and the refusal path never runs)
testparm -s 2>/dev/null | grep -i 'max smbd processes'
smbd -V 2>/dev/null; dpkg -s samba 2>/dev/null | grep '^Version'; rpm -q samba 2>/dev/null
# 2. the parent's child count against the workers that exist: a gap that persists is the phantom count
smbcontrol smbd num-children 2>/dev/null # what the listener believes
pgrep -c -x smbd # listener + real workers (expect num-children + 1)
grep -h 'smbd_accept_connection: fork() failed' /var/log/samba/log.smbd /var/log/samba/*.log 2>/dev/null | tail -5
# 3. what could make fork() fail here
systemctl show -p TasksMax --value smb.service 2>/dev/null; systemctl show -p TasksMax --value smbd.service 2>/dev/null
cat /sys/fs/cgroup/system.slice/smb.service/pids.max /sys/fs/cgroup/system.slice/smbd.service/pids.max 2>/dev/null
ulimit -u; cat /proc/sys/kernel/pid_max; cat /proc/sys/kernel/threads-max
free -m | head -2A server with no max smbd processes line, or one set to 0, is outside the described flaw and needs only the eventual update. On a server that sets it, a num-children that exceeds the real worker count by a stable margin, with “fork() failed” lines in the log, is the condition the record describes, and if the count has reached the ceiling the clients are already being refused; a restart clears it. Step 3 says how close the host is to the trigger: a TasksMax or pids.max not much larger than the ceiling, or a host that swaps, is one where an ordinary busy evening can start the sequence without any attacker.
How to fix it
There is no fixed release on 1 December 2026. When your distribution ships a samba update that names this CVE, install it and restart the service; the listener is the process with the bug, so a restart of smbd is required, and it also resets the child count. Until then the controls are on the server’s own configuration.
# nothing to install yet; these show when something arrives
apt list --upgradable 2>/dev/null | grep '^samba/'
dnf updateinfo info --cve CVE-2026-135111 2>/dev/null
zypper list-patches --cve=CVE-2026-135111 2>/dev/null
# self-built: cherry-pick bec3630c643f581a10132e61400d960d17eb960e (one line in source3/smbd/server.c) and rebuild
# clearing the condition on a server that has hit it (existing sessions reconnect)
systemctl restart smb.service 2>/dev/null || systemctl restart smbd.serviceRed Hat records no workaround that meets its criteria, and the one that follows from the record is a trade: the refusal path only runs when max smbd processes is set, so a server that can afford to unset it is outside the flaw, but the parameter exists to stop a resource-starved host degrading for everyone, and removing it swaps a permanent refusal for a possible slowdown. The better interim measures keep the ceiling and attack the trigger: give the unit a TasksMax and the host a process limit comfortably above the ceiling so that the ceiling, not a fork failure, is what stops new workers, and watch num-children so that a drifting count is restarted before it reaches the limit. What not to do: do not raise max smbd processes to a huge number as a fix, since that defeats its purpose and only delays the refusal; and do not read a refused connection as a Samba crash, since the listener is alive and will serve again the moment it is restarted.
# keep the ceiling but make fork failure unlikely before it is reached: a drop-in for the unit
mkdir -p /etc/systemd/system/smb.service.d
printf '[Service]\nTasksMax=4096\n' > /etc/systemd/system/smb.service.d/tasksmax.conf # well above max smbd processes
systemctl daemon-reload && systemctl restart smb.service
# and a cron check that restarts the listener if the believed count runs ahead of reality
# */5 * * * * root n=$(smbcontrol smbd num-children 2>/dev/null); r=$(($(pgrep -c -x smbd)-1)); [ "${n:-0}" -gt $((r+8)) ] && systemctl restart smb.serviceThe restart check is blunt and drops nothing clients cannot recover from, since SMB clients reconnect, but it belongs only on a server that has set the ceiling; elsewhere it solves nothing.
Sources
- CVE-2026-135111 at CVE.org — the Red Hat CNA record (1 December 2026): the description, “3.4.0 onward”, the RHEL and OpenShift rows, CVSS 3.1 5.9, Moderate, CWE-772, the no-workaround statement, the timeline and the credit to Muhammad Daffa
- Fix commit bec3630c on the Samba GitHub mirror — “CVE-2026-135111: s3:smbd: Don’t record a child with pid -1 when fork() fails”: the one-line diff in
source3/smbd/server.c, the reviewers, autobuild 30 November 2026 - Samba merge request 4872 — the author’s description, the reproduction with
max smbd processes = 5and a failingfork(), the backport offer - source3/smbd/server.c on master and the max smbd processes documentation — the fixed comparison,
allowable_number_of_smbd_processes(), and the parameter’s purpose and default of 0 - Red Hat bug 2583142 — NEW, no fixed version, the Fedora clones; Samba bug 16328 and the second commit named in the record refuse automated readers
- Samba security releases and release history — no entry for this CVE; 4.25.2 of 30 November 2026 the current release
- NVD entry — Awaiting Analysis; published 1 December; the CNA’s score and CWE; no CPEs
- Distribution trackers: Red Hat (Moderate, RHEL 7 to 10 affected, no erratum) · Debian, Ubuntu, SUSE and Alpine (unreachable on 1 December)
- CISA KEV catalogue 2026.11.30, not listed · EPSS: no score on 1 December 2026
Related reading
- CVE-2026-135107: Samba file server reserves a client-chosen amount of memory for a named-pipe reply — the other smbd availability flaw of November, and one way to put a host under the memory pressure this one needs
- CVE-2026-125628: Samba AD DC LDAP worker crashes on an extended response sent before binding — the AD DC side of the same month
- CVE-2026-125634: Samba AD DC crashes when a computer account drops its name — same reporter batch
- CVE-2026-99563: Linux kernel SMB Direct listener keeps failed connections until nothing can connect — the same shape of bug, a failed connection that is never released, in the kernel’s SMB server
- Security advisories — every Linux-relevant CVE we track, newest first, with the component index
This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.
