CVE-2026-135107: Samba file server reserves a client-chosen amount of memory for a named-pipe reply

ByLinuxtastic

December 1, 2026 #CVE, #Samba

Samba’s file server reserves memory for a named-pipe response using a size the client chose, and it does not keep that size within the maximum the client and server had already agreed at negotiation. An SMB2 IOCTL on a named pipe carries a MaxOutputResponse field; smbd allocates that much before it reads the pipe and holds it until the request ends. Any authenticated user who can open a named pipe, which on most file servers is every user with a session, can ask for very large responses on many connections and run the server out of memory. The record puts the affected range at every release from 3.5.0, and Red Hat says it knows of no practical workaround. There is no Samba release with the fix on 1 December 2026; this page is a draft until one can be named. Until then, limit who can open a session at all, and give smbd a memory ceiling it can hit without taking the host down.

CVE-2026-135107 at a glance.

ComponentSamba, the file server’s SMB2 named-pipe ioctl handling: smbd_smb2_ioctl_pipe_write_done() in source3/smbd/smb2_ioctl_named_pipe.c. Every Samba build has it; this is smbd, not the AD DC
Affected versionsSamba 3.5.0 and every later release, per the Red Hat CNA record (“every release from 3.5.0 is affected”); 4.25.2 of 30 November 2026 is the newest release and its notes do not carry the fix
Fixed inNot established on 1 December 2026. The record names Samba bug 16156; samba.org has no advisory page for this CVE, its security history has no entry, and the 4.25.2 and 4.25.1 release notes do not mention it. The bug tracker refused our reader; no merge request is named. This row will be updated when a release carries the fix
SeverityRed Hat (CNA) CVSS 3.1 6.5 Medium (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), CWE-789 (memory allocation with excessive size); NVD Awaiting Analysis with the CNA score. Red Hat Moderate, every RHEL release and RHCOS Fix deferred; Ubuntu Medium; Debian “minor issue”, no DSA planned for trixie
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS 0.81% (54th percentile) on 30 November 2026
Who is exposedEvery Samba file server, member server and domain controller that accepts SMB2 or SMB3 sessions from users it does not fully trust: departmental file servers, NAS boxes built on Samba, home-directory servers, print servers (the spooler is a named pipe) and any share with guest access. The attacker needs a session (PR:L) and nothing else; the outcome is smbd exhausting memory, which on a small NAS is the whole box. Unlike the three AD DC flaws of the same fortnight, RHEL-family builds are affected and Red Hat lists them as “Fix deferred”
PublishedRed Hat CNA record 26 November 2026 (Red Hat’s page gives a public date of 21 November); this page built 1 December 2026, last updated 1 December 2026

What it is

Named pipes are how SMB clients talk to the services behind a file server: the srvsvc pipe for share enumeration, spoolss for printing, lsarpc and samr for accounts, winreg for the registry. A client opens one through the IPC$ share and then drives it with IOCTL requests using the FSCTL_PIPE_TRANSCEIVE code, which writes a request to the pipe and reads the reply in one round trip. The request names how large a reply the client is prepared to receive, MaxOutputResponse. The record describes what smbd did with that number: it “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”, and “reserves that memory before it reads the pipe and holds it until the request ends.”

The negotiated limit the record refers to is the SMB2 MaxTransactSize, which both sides exchange at session setup and which bounds every other transaction; a MaxOutputResponse far above it should have been refused. Because the allocation happens before the pipe is read and lasts until the request completes, a client can keep many such requests outstanding. “Repeating this on more connections can exhaust memory and keep the file service unavailable while those requests continue.” The CWE is 789, an allocation whose size the attacker chose, and the 3.5.0 start of the range is where Samba’s SMB2 named-pipe support arrived, so there is no old release to fall back to.

No fix is public. The record names Samba bug 16156 and no merge request; samba.org has no advisory for this id, the 4.25.2 release of 30 November 2026 closes a different CVE, and Red Hat’s own packages are “Fix deferred” across RHEL 6 to 10. Red Hat’s mitigation statement is that it “is not aware of a practical temporary workaround” and advises applying updates when they are released. The finding is credited to AISLE Research with Red Hat Product Security.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. Every distribution’s samba package includes smbd, so every row is affected on the upstream range.

DistributionStatusFixed package
AlpineNot consulted for this page; the samba package is affected on the upstream range—
Debianvulnerable in bookworm (2:4.17.12+dfsg-0+deb12u4), trixie (2:4.22.11+dfsg-0+deb13u1), forky and sid (2:4.25.1+dfsg-1); trixie marked no-dsa, “Minor issue, revisit when fixed upstream”; Debian bug 1155844; source “(unfixed)”nothing on 1 December 2026
UbuntuMedium (page 27 November, updated 30 November); samba needs evaluation on every release from 14.04 to 26.10nothing on 1 December 2026
RHEL, Rocky, Alma, CentOS StreamModerate, 6.5, CWE-789; samba on RHEL 6, 7, 8, 9 and 10 and the RHCOS builds for OpenShift 4 and 5 all Fix deferrednothing on 1 December 2026
openSUSE/SLENot consulted for this page—
NAS and appliance firmware built on Samba (Synology, QNAP, TrueNAS, OpenMediaVault and others), Arch, Fedora, self-built SambaThe upstream range applies; appliance vendors ship their own buildsthe release that carries the fix for bug 16156, when there is one

How to check

Three questions, in order: is smbd running and reachable, who can open a session on it, and is it already under memory pressure. No version check helps, since every release is affected and none is fixed.

# 1. is the file server up, on which addresses, and at what version (every version is affected until a fix ships)
systemctl is-active smb smbd 2>/dev/null; ss -tlnp | grep -E ':445 |:139 '
smbd -V 2>/dev/null; dpkg -l samba 2>/dev/null | awk '/^ii/{print $2, $3}'; rpm -q samba 2>/dev/null

# 2. who can get a session: guest access and host restrictions are the only gates in front of a named pipe
testparm -s 2>/dev/null | grep -iE 'map to guest|guest ok|hosts allow|hosts deny|restrict anonymous|server min protocol'
smbstatus -b 2>/dev/null | tail -n +4 | awk '{print $2}' | sort | uniq -c | sort -rn | head

# 3. memory: the per-connection smbd processes and their resident size, biggest first
ps -C smbd -o pid,rss,etimes,args --sort=-rss | head -15
systemctl show smb smbd -p MemoryMax -p MemoryCurrent 2>/dev/null

A file server reachable only from a trusted subnet, with guest access off, is exposed to its own users and nobody else, which is a scheduling matter until the fix appears. A server with map to guest = Bad User or a guest ok share reachable from a wider network can be exhausted by anyone who can reach port 445. An smbd child with a resident size far above its siblings and a long etimes is worth a look at which client it belongs to in smbstatus.

How to fix it

Upgrade to the release that carries the fix once it exists and restart smbd; this page will name it. Red Hat says there is no practical workaround, and we have not found one that bounds MaxOutputResponse from configuration. What can be done is to reduce who can open a session, and to make sure that a memory-exhausted smbd takes down the file service and not the host.

# when the fixed release is packaged
apt update && apt install --only-upgrade samba && systemctl restart smbd
dnf upgrade samba && systemctl restart smb

# interim: no guest sessions, and only the subnets that need SMB
#   in [global] of smb.conf:  map to guest = Never
#                             hosts allow = 10.20.30.0/24 127.0.0.1
#                             hosts deny  = ALL
testparm -s && systemctl reload smbd

# interim: a memory ceiling for the service, so exhaustion kills smbd rather than everything else on the host
systemctl set-property smbd.service MemoryMax=4G      # smb.service on the RHEL family
systemctl edit smbd.service   # add: [Service] Restart=on-failure RestartSec=5

The memory ceiling is a blast-radius control: the service still goes down under attack, but the database or hypervisor sharing the host does not. What not to do: do not disable IPC$ or named pipes in the belief that it removes the path, because SMB clients need the pipes to enumerate shares and print, and Samba does not offer a supported way to serve files without them; and do not raise smb2 max trans or similar limits “to make the server more tolerant”, since the bug is precisely that the client’s number was never compared with them.

Sources

  • CVE-2026-135107 at CVE.org — the Red Hat CNA record (26 November 2026, updated 27 November): the description naming the function and the file, affected from 3.5.0, CVSS 3.1 6.5, CWE-789, reference to Samba bug 16156
  • Red Hat CVE page and its security data record — Moderate, “every release from 3.5.0 is affected”, “not aware of a practical temporary workaround”, Fix deferred on every RHEL and RHCOS stream, acknowledgement to AISLE Research; Red Hat bug 2472623
  • Samba bug 16156 — the tracking bug named in the record; refused our reader on 1 December
  • Samba security releases and the 4.25.2 release notes (30 November 2026) — no entry for this CVE on 1 December 2026
  • NVD entry — Awaiting Analysis; published 26 November; the CNA score, CWE-789
  • Distribution trackers: Debian (vulnerable in every suite, unfixed, trixie no-dsa, bug 1155844) · Ubuntu (Medium, needs evaluation) · SUSE (not consulted)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00809, percentile 0.538, dated 30 November 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.