CVE-2019-14861 Memory corruption in samba

Medium 5.3 Published Updated

Authenticated users can trigger memory corruption in Samba AD DC via crafted DNS records, potentially leading to code execution or service crashes.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-14861?

CVE-2019-14861 is a medium-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 10 Dec 2019. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

All Samba versions 4.x.x before 4.9.17, 4.10.x before 4.10.11 and 4.11.x before 4.11.3 have an issue, where the (poorly named) dnsserver RPC pipe provides administrative facilities to modify DNS records and zones. Samba, when acting as an AD DC, stores DNS records in LDAP. In AD, the default permissions on the DNS partition allow creation of new records by authenticated users. This is used for example to allow machines to self-register in DNS. If a DNS record was created that case-insensitively matched the name of the zone, the ldb_qsort() and dns_name_compare() routines could be confused into reading memory prior to the list of DNS entries when responding to DnssrvEnumRecords() or DnssrvEnumRecords2() and so following invalid memory as a pointer.

Weakness: CWE-276

Which versions are affected by CVE-2019-14861?

It affects 5 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Opensuse Leap, Samba Samba.

How do I fix CVE-2019-14861?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2019-14861 being exploited?

There is no known exploitation of CVE-2019-14861 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2019-14861, DEBIAN-CVE-2019-14861, ECHO-fe8b-bfba-a188, GHSA-jhj7-p3xq-vh37, UBUNTU-CVE-2019-14861.

Is CVE-2019-14861 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free