CVE-2026-135111

Samba: samba4: smbd listener counts a failed fork as a child and exhausts max smbd processes

Published Dec 1, 2026 CVSS 3.1 · 5.9 Medium EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The smbd listener in Samba incorrectly counts failed fork attempts as child processes, causing the listener to reach its configured maximum and refuse new connections. If an attacker repeatedly initiates connections that fail to spawn worker processes, the parent process continually inflates its child count. Once the count hits the configured limit, subsequent connections are closed, and the affected clients are left without service until the smbd process is restarted. This flaw is a classic case of child process cleanup error (CWE-772) and results in a denial of service against the Samba file server.

Affected Systems

The vulnerability affects Samba across multiple Red Hat platforms, including Red Hat Enterprise Linux 6, 7, 8, 9, the OpenShift Container Platform 4 and 5, and the standalone Samba package. Specific version information is not provided in the advisory, so all versions prior to the published fix are potentially impacted.

Risk and Exploitability

With a CVSS score of 5.9 the issue is considered medium severity, and EPSS data is unavailable. Because the flaw is triggered by open network connections and does not require special privileges, an attacker can potentially exploit it from the network. The recommendation is to apply any updated Samba or RHEL packages that contain the fix or, if unavailable, to reboot the smbd service to clear the incorrect child count until a patch is released. No usable workaround is documented, and the issue is not listed in the CISA KEV catalog.

Remediation

Vendor Workaround

Red Hat is not aware of a practical temporary workaround that fully mitigates this issue or meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.


OpenCVE Recommended Actions

  • Install the latest Samba/RHEL packages that contain the fix for the child count issue.
  • When no patch is available, restart smbd to clear the inflated child counter and restore connection capacity.
  • Use logging and firewall controls to detect and block repeated failed connection attempts that may trigger the flaw.

Generated by OpenCVE AI on December 1, 2026 at 23:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Red Hat
Red Hat enterprise Linux
Red Hat red Hat Openshift Container Platform 5
Redhat openshift Container Platform
Redhat red Hat Openshift Container Platform 5
Samba
Samba samba
Vendors & Products Red Hat
Red Hat enterprise Linux
Red Hat red Hat Openshift Container Platform 5
Redhat openshift Container Platform
Redhat red Hat Openshift Container Platform 5
Samba
Samba samba
Type Values Removed Values Added
Description 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.
Title Samba: samba4: smbd listener counts a failed fork as a child and exhausts max smbd processes
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
Redhat rhel Els
Weaknesses CWE-772
CPEs cpe:/a:redhat:openshift:4
cpe:/a:redhat:openshift:5
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
Redhat rhel Els
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Dec 1, 2026, 3:22 PM
Reserved
Nov 23, 2026, 12:08 PM
Status
Awaiting Analysis
Published
Dec 1, 2026, 1:17 PM
Modified
Dec 1, 2026, 4:18 PM