CVE-2026-135111

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.

Statement

Red Hat Product Security has rated this vulnerability with a Moderate security impact. This vulnerability affects Samba's smbd listener handling.

A network attacker or user can reach the listener before SMB session setup. Exploitation requires max smbd processes to be set to a non-zero value, and it requires process creation to fail while the counted children are still below that value. The documented default of the parameter is 0, and with that default the listener allows the connection.

AC (Attack Complexity): High. A connection that fork() accepts is a real child, and smbd_sig_chld_handler() removes that child when it exits, so the attacker's own successful connections do not leave the counter full. The counter reaches the limit and stays there only when fork() returns -1. On a host that can still create a process, the attacker cannot force that return. The kernel returns -1 when it cannot create another process, such as when a process limit is already exhausted or a memory allocation fails.

A (Availability): High. Once the count reaches the configured limit, the listener closes new connections and keeps closing them after the kernel can create processes again, until the parent is restarted.

The vulnerable code was introduced in Samba 3.4.0, when the parent began counting children after fork(). The accept-loop was rewrote in commit e0232934fbf and kept that check. Samba 4.25.2 is the first release that corrects the accept path.
Red Hat Enterprise Linux 6, 7, 8, 9, and 10 ship samba builds, and each of those builds contains the vulnerable listener and are affected to this flaw.

Red Hat OpenShift and Red Hat In-Vehicle Operating System consume those Red Hat Enterprise Linux builds. Both products therefore carry the same vulnerable listener, and the same default configuration, as the Red Hat Enterprise Linux build they consume.

Samba shipped with Red Hat Enterprise Linux has max smbd processes defaults to 0. A customer who leaves that limit at the default keeps the listener accepting new connections. Red Hat has rated Red Hat Enterprise Linux, Red Hat OpenShift, and Red Hat In-Vehicle Operating System Low until an administrator sets a non-zero limit. The Affects table records that rating.

Mitigation

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.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score5.9N/AN/A
Attack VectorNetworkN/AN/A
Attack ComplexityHighN/AN/A
Privileges RequiredNoneN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityNoneN/AN/A
Integrity ImpactNoneN/AN/A
Availability ImpactHighN/AN/A

Vector

Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Understanding the Weakness (CWE)

Availability

Technical Impact: DoS: Resource Consumption (Other); DoS: Resource Consumption (Memory); DoS: Resource Consumption (CPU)

An attacker that can influence the allocation of resources that are not properly released could deplete the available resource pool and prevent all other processes from accessing the same type of resource. Frequently-affected resources include memory, CPU, disk space, power or battery, etc.

Acknowledgements

Red Hat would like to thank Muhammad Daffa for reporting this issue.

Frequently Asked Questions

Want to get errata notifications? Sign up here.