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

Read the record on cve.org

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.

ProductVersions
Samba Samba3.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

Weaknesses

  • CWE-789 Memory Allocation with Excessive Size Value

References

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.