CVE-2026-120376

Samba: samba4: samba: nmbd host announcement reads past the packet and can stop the daemon

Published Dec 4, 2026 CVSS 3.1 · 5.9 Medium EPSS n/a KEV · Not listed
Description
An **out-of-bounds read** flaw has been found in the process_host_announce() function in source3/nmbd/nmbd_incomingdgrams.c of the NetBIOS browse handling in the **Samba** package. The function reads the announcement comment without checking that the comment is inside the datagram. The read continues until it finds a zero byte. The same missing check applies to a local master announcement. A network attacker or user who can reach nmbd can send one datagram to UDP port 138 and nmbd can stop and stay stopped until it is started again, leading to a denial of service.

Analysis

No analysis available yet

Remediation

Vendor Workaround

Disable nmbd where it is not required, or to filter UDP port 138 so the datagram cannot reach nmbd. Not running nmbd, or dropping UDP port 138 before it reaches nmbd, stops the datagram from reaching process_dgram(). The disable netbios setting does not do this. nmbd does not consult that setting.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description An **out-of-bounds read** flaw has been found in the process_host_announce() function in source3/nmbd/nmbd_incomingdgrams.c of the NetBIOS browse handling in the **Samba** package. The function reads the announcement comment without checking that the comment is inside the datagram. The read continues until it finds a zero byte. The same missing check applies to a local master announcement. A network attacker or user who can reach nmbd can send one datagram to UDP port 138 and nmbd can stop and stay stopped until it is started again, leading to a denial of service.
Title Samba: samba4: samba: nmbd host announcement reads past the packet and can stop the daemon
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
Redhat rhel Els
Weaknesses CWE-125
CPEs cpe:/a:redhat:openshift:4
cpe:/a:redhat:openshift:5
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
Redhat rhel Els
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Dec 4, 2026, 8:28 AM
Reserved
Nov 2, 2026, 2:54 AM
Status
Awaiting Analysis
Published
Dec 4, 2026, 7:17 AM
Modified
Dec 4, 2026, 9:17 AM