CVE-2026-135107

Description

An uncontrolled memory allocation flaw has been found in the smbd_smb2_ioctl_pipe_write_done() function in source3/smbd/smb2_ioctl_named_pipe.c of the SMB2 named-pipe ioctl handling in the samba package. The file server reserves memory for a named-pipe response using a size chosen by the client. It does not keep that size within the maximum the client and the server have already agreed. A low-privileged network attacker or user who can open a named pipe can request a very large response. The file server reserves that memory before it reads the pipe and holds it until the request ends. Repeating this on more connections can exhaust memory and keep the file service unavailable while those requests continue.

Statement

Red Hat Product Security has rated this vulnerability with a Moderate security impact. This vulnerability affects Samba's SMB2 named-pipe FSCTL_PIPE_TRANSCEIVE handling.

The caller must already be able to authenticate to the file server and open a named pipe on IPC$. That is available to an authenticated user in the default configuration. SMB 2.1 and later on TCP port 445 negotiate multi-credit, which lets one request ask for about 512 MiB. SMB 2.0 keeps the credit charge at 1, so the credit check rejects an output length above 64 KiB.

This vulnerability affects A (Availability), because one connection can hold about 512 MiB until the request ends, and further connections repeat that. The file service stays unavailable while the attacker keeps those requests outstanding.

The vulnerable code was introduced in Samba 3.5.0, when SMB2 FSCTL_PIPE_TRANSCEIVE support was added. The handler later moved to source3/smbd/smb2_ioctl_named_pipe.c. Every release from 3.5.0 is affected. 

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. Customers are advised to apply the relevant security updates when they become available.

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 Score6.5N/AN/A
Attack VectorNetworkN/AN/A
Attack ComplexityLowN/AN/A
Privileges RequiredLowN/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:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Understanding the Weakness (CWE)

Availability

Technical Impact: DoS: Resource Consumption (Memory)

Not controlling memory allocation can result in a request for too much system memory, possibly leading to a crash of the application due to out-of-memory conditions, or the consumption of a large amount of memory on the system.

Acknowledgements

This issue was discovered by AISLE Research in partnership with Red Hat Product Security.

Frequently Asked Questions

Want to get errata notifications? Sign up here.