cve.bz

CVE-2018-16841 Double Free

6.5 mediumEPSS 4.6%Fix available

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

On this page
Samba from version 4.3.0 and before versions 4.7.12, 4.8.7 and 4.9.3 are vulnerable to a denial of service. When configured to accept smart-card authentication, Samba's KDC will call talloc_free() twice on the same memory if the principal in a validly signed certificate does not match the principal in the AS-REQ. This is only possible after authentication with a trusted certificate. talloc is robust against further corruption from a double-free with talloc_free() and directly calls abort(), terminating the KDC process.

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
4.6% (unchanged from 4.6% a week ago; 4.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-415 Double Free
CWE-416 Use After Free
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-16841 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16841?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16841?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-16841 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.3.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_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9samba2:4.5.12+dfsg-2+deb9u4DSA-4345-1
Debian12, 13, 14samba2:4.9.2+dfsg-2DEBIAN-CVE-2018-16841
Ubuntu14.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.14.04.19UBUNTU-CVE-2018-16841 USN-3827-1
Ubuntu16.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.16.04.18UBUNTU-CVE-2018-16841 USN-3827-1
Ubuntu18.04:LTSsamba2:4.7.6+dfsg~ubuntu-0ubuntu2.5UBUNTU-CVE-2018-16841 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-16841
Alpinev3.7samba4.7.6-r2ALPINE-CVE-2018-16841
Alpinev3.8samba4.8.8-r0ALPINE-CVE-2018-16841
Alpinev3.9, v3.10, v3.11 and 13 moresamba4.8.7-r0ALPINE-CVE-2018-16841

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

References

Check your stackJSON