cve.bz

CVE-2016-2123 samba samba: Heap-based Buffer Overflow

8.8 highEPSS 6.2%Fix available

High (8.8) in samba samba. EPSS 6.2% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in samba versions 4.0.0 to 4.5.2. The Samba routine ndr_pull_dnsp_name contains an integer wrap problem, leading to an attacker-controlled memory overwrite. ndr_pull_dnsp_name parses data from the Samba Active Directory ldb database. Any user who can write to the dnsRecord attribute over LDAP can trigger this memory corruption. By default, all authenticated LDAP users can write to the dnsRecord attribute on new DNS objects. This makes the defect a remote privilege escalation.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
6.2% (unchanged from 6.2% a week ago; 6.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-122 Heap-based Buffer Overflow
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-2123 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-2123?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-2123?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-2123 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
samba:sambafrom 4.0.0 through 4.0.26
samba:sambafrom 4.1.0 through 4.1.23
samba:sambafrom 4.2.0 through 4.2.14
samba:sambafrom 4.3.0 before 4.3.13
samba:sambafrom 4.4.0 before 4.4.8
samba:sambafrom 4.5.0 before 4.5.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8samba2:4.2.14+dfsg-0+deb8u2DSA-3740-1
Debian12, 13, 14samba2:4.5.2+dfsg-2DEBIAN-CVE-2016-2123
Ubuntu14.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.14.04.4UBUNTU-CVE-2016-2123 USN-3158-1
Ubuntu16.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.16.04.3UBUNTU-CVE-2016-2123 USN-3158-1
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Desktop 12 SP2, Linux Enterprise High Availability Extension 12 SP1 and 7 moresamba4.2.4-28.3.1SUSE-SU-2016:3272-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise High Availability Extension 12 SP2, Linux Enterprise Server 12 SP2 and 3 moresamba4.4.2-31.1SUSE-SU-2016:3271-1
SUSELinux Enterprise High Availability Extension 12, Linux Enterprise Server 12-LTSS, Linux Enterprise Server for SAP Applications 12samba4.2.4-18.30.1SUSE-SU-2016:3299-1
openSUSETumbleweedsamba4.14.6+git.182.2205d5224e3-1.1openSUSE-SU-2024:11365-1
Alpinev3.2, v3.3samba4.2.14-r1ALPINE-CVE-2016-2123
Alpinev3.4samba4.4.5-r2ALPINE-CVE-2016-2123

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

Red Hat Enterprise Linux 5, 6 and 7 are not affected by this flaw because we do not ship Samba with the AD DNS Server, which is the vulnerable component.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5sambaNot affected
Red Hat Enterprise Linux 5samba3xNot affected
Red Hat Enterprise Linux 6sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 7sambaNot affected
Red Hat Storage 3sambaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-2123.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON