Vulnerability DatabaseCVE-2026-120376

CVE-2026-120376: 
Samba vulnerability analysis and mitigation

Overview

CVE-2026-120376 is an out-of-bounds read vulnerability in the process_host_announce() function within source3/nmbd/nmbd_incomingdgrams.c of Samba's NetBIOS browse handling. The flaw allows an unauthenticated network attacker to send a single crafted UDP datagram to port 138, causing the nmbd daemon to crash and remain stopped until manually restarted. All Samba versions from 3.0.0 onward are affected, as well as Red Hat products shipping Samba (including RHEL variants and OpenShift CoreOS images). It was published on December 4, 2026, with a CVSS v3.1 base score of 5.9 (Medium) (Red Hat Advisory, Github Advisory).

Technical details

The root cause is CWE-125 (Out-of-bounds Read): the process_host_announce() function reads an announcement comment from a NetBIOS datagram without first verifying that the comment field lies within the datagram boundaries. The read proceeds byte-by-byte until a null (zero) byte is encountered, potentially reading beyond the allocated buffer into unmapped memory. The same missing bounds check also affects local master announcements. Additionally, the Red Hat Bugzilla report details a related vector in process_election() within nmbd_elections.c, where fixed-offset reads occur without validating the election body length, reachable via a crafted SMBtrans mailslot datagram with manipulated DataOffset/DataLength values. No authentication or user interaction is required; the attacker only needs network reachability to UDP port 138 (Red Hat Advisory, Red Hat Bugzilla).

Impact

Successful exploitation causes the nmbd daemon to crash and remain stopped until manually restarted, resulting in a complete loss of NetBIOS name service availability. There is no demonstrated confidentiality or integrity impact — the vulnerability is purely a denial-of-service condition. In environments relying on nmbd for Windows network browsing and NetBIOS name resolution, this could disrupt file sharing and network discovery services until an administrator intervenes (Red Hat Advisory, Github Advisory).

Exploitability

No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation at this time (Github Advisory). The EPSS score is 0.0, reflecting a currently low probability of exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Attack complexity is rated High because, while the out-of-bounds read always occurs, nmbd exits only when strlen() reaches unmapped memory before encountering a null byte — a condition the attacker cannot directly control (Red Hat Advisory).

Exploitation steps

  1. Reconnaissance: Identify hosts running Samba's nmbd daemon with UDP port 138 accessible, using network scanning tools such as Nmap (nmap -sU -p 138 <target>) or passive NetBIOS traffic analysis.
  2. Craft malicious datagram: Construct a NetBIOS datagram addressed to a name nmbd is listening for (e.g., the workgroup or host name), containing a host announcement or local master announcement packet where the announcement comment field extends beyond the datagram boundary — specifically, omitting the null terminator within the datagram payload.
  3. Send datagram to UDP port 138: Transmit the single crafted UDP datagram to the target's UDP port 138 using a raw socket tool or custom script.
  4. Trigger out-of-bounds read: nmbd's process_host_announce() reads past the end of the datagram buffer seeking a null byte, eventually accessing unmapped memory and causing a segmentation fault.
  5. Achieve denial of service: nmbd crashes and remains stopped, disrupting NetBIOS name services until an administrator manually restarts the daemon (Red Hat Advisory, Red Hat Bugzilla).

Indicators of compromise

  • Network: Unexpected or malformed UDP datagrams arriving on port 138 from external or untrusted IP addresses; single-packet bursts to UDP/138 targeting NetBIOS browse announcement or election mailslot paths.
  • Logs: System logs (e.g., /var/log/samba/log.nmbd) showing nmbd process termination with a segmentation fault or signal 11 (SIGSEGV); absence of expected nmbd heartbeat or registration log entries following the crash.
  • Process: Sudden disappearance of the nmbd process from the process list (ps aux | grep nmbd) without a scheduled restart; repeated nmbd crash-restart cycles if a watchdog is configured.
  • File System: Core dump files generated in the Samba working directory or /var/lib/samba/ following an unexpected nmbd crash.

Mitigation and workarounds

Red Hat recommends disabling nmbd where it is not required, or filtering UDP port 138 at the network perimeter or host firewall to prevent untrusted datagrams from reaching nmbd. Note that the disable netbios Samba configuration setting does not prevent nmbd from processing these datagrams. A patch is referenced in the GitHub Advisory (GHSA-mgpj-j7w6-4rpw), though specific fixed Samba version numbers have not yet been published. The proposed code fix involves propagating the election payload length into process_election() and rejecting undersized bodies before any fixed-offset reads (Red Hat Advisory, Github Advisory, Red Hat Bugzilla).

Community reactions

Red Hat Product Security rated this vulnerability as Moderate impact, noting that while the flaw is reachable in the default nmbd configuration without authentication, the High attack complexity (due to the probabilistic nature of the crash) limits the overall severity. Red Hat credited AISLE Research with discovering and reporting the issue. The CVE status remains "Awaiting Analysis" as of publication, and no significant broader media coverage or notable researcher commentary beyond the official advisories has been observed (Red Hat Advisory, Github Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Affected

OpenShift

openshift/ose-rhel-coreos-8

Affected

RHEL 8

samba.src

Affected

RHEL 9

samba.src

Affected

RHEL 10

samba.src

Affected

Source: This report was generated using AI

Related Samba vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-135109HIGH7.5
  • Samba logoSamba
  • samba-tools
NoNoDec 04, 2026
CVE-2026-125628HIGH7.5
  • Samba logoSamba
  • ctdb-ceph-mutex
NoYesNov 30, 2026
CVE-2026-120376MEDIUM5.9
  • Samba logoSamba
  • ldb-tools
NoNoDec 04, 2026
CVE-2026-135111MEDIUM5.9
  • Samba logoSamba
  • ctdb-pcp-pmda
NoYesDec 01, 2026
CVE-2026-120377NONEN/A
  • Samba logoSamba
  • samba
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management