Samba: smb2 pipe transceive allocates maxoutputresponse before the read
- State
- Published
- Severity
- 6.5 Medium
- Published
- Nov 26, 2026
- Updated
- Nov 27, 2026
- Reserved
- Nov 23, 2026
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.
| Product | Versions |
|---|---|
| Samba Samba | 3.5.0 and later Affected |
| Red Hat Enterprise Linux 10 Red Hat | |
| Red Hat Enterprise Linux 6 Red Hat | |
| Red Hat Enterprise Linux 6 Red Hat | |
| Red Hat Enterprise Linux 7 Red Hat | |
| Red Hat Enterprise Linux 8 Red Hat | |
| Red Hat Enterprise Linux 9 Red Hat | |
| Red Hat OpenShift Container Platform 4 Red Hat | |
| Red Hat OpenShift Container Platform 4 Red Hat | |
| Red Hat OpenShift Container Platform 5 Red Hat | |
| Red Hat OpenShift Container Platform 5 Red Hat |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 6.5 Medium | redhat |
Weaknesses
- CWE-789 Memory Allocation with Excessive Size Value
References
- https://access.redhat.com/security/cve/CVE-2026-135107Vulnerability Database
- RHBZ#2472623Issue Tracker
- https://bugzilla.samba.org/show_bug.cgi?id=16156
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.