cve.bz

CVE-2018-16851 NULL Pointer Dereference

6.5 mediumEPSS 3.3%Fix available

Medium (6.5). EPSS 3.3% estimated probability of exploitation activity in the next 30 days.

On this page
Samba from version 4.0.0 and before versions 4.7.12, 4.8.7, 4.9.3 is vulnerable to a denial of service. During the processing of an LDAP search before Samba's AD DC returns the LDAP entries to the client, the entries are cached in a single memory object with a maximum size of 256MB. When this size is reached, the Samba process providing the LDAP service will follow the NULL pointer, terminating the process. There is no further vulnerability associated with this issue, merely a denial of service.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
3.3% (unchanged from 3.3% a week ago; 3.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
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-2018-16851 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16851?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16851?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-2018-16851 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 before 4.7.12
samba:sambafrom 4.8.0 before 4.8.7
samba:sambafrom 4.9.0 before 4.9.3
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10
debian:debian_linux8.0
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8samba2:4.2.14+dfsg-0+deb8u11DLA-1607-1
Debian9samba2:4.5.12+dfsg-2+deb9u4DSA-4345-1
Debian12, 13, 14samba2:4.9.2+dfsg-2DEBIAN-CVE-2018-16851
Ubuntu14.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.14.04.19UBUNTU-CVE-2018-16851 USN-3827-1
Ubuntu16.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.16.04.18UBUNTU-CVE-2018-16851 USN-3827-1
Ubuntu18.04:LTSsamba2:4.7.6+dfsg~ubuntu-0ubuntu2.5UBUNTU-CVE-2018-16851 USN-3827-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise Module for Basesystem 15, Linux Enterprise Module for Package Hub 15samba4.7.11+git.140.6bd0e5b30d8-4.21.1SUSE-SU-2018:4066-1
openSUSETumbleweedsamba4.14.6+git.182.2205d5224e3-1.1openSUSE-SU-2024:11365-1
Alpinev3.6samba4.6.16-r2ALPINE-CVE-2018-16851
Alpinev3.7samba4.7.6-r2ALPINE-CVE-2018-16851
Alpinev3.8samba4.8.8-r0ALPINE-CVE-2018-16851
Alpinev3.9, v3.10, v3.11 and 13 moresamba4.8.7-r0ALPINE-CVE-2018-16851

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 Moderate.

Red Hat's statement

This flaw does not affect the version of samba shipped with Red Hat Enterprise Linux because there is no support for samba as Active Directory Domain Controller.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 7sambaNot affected
Red Hat Enterprise Linux 8sambaNot affected
Red Hat Storage 3sambaNot affected
Red Hat Virtualization 4sambaNot 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-2018-16851.

References

Check your stackJSON