samba: Double-free in Samba AD DC KDC with PKINIT
Published Nov 28, 2018
6.5
MEDIUMCVSS 3.1
EPSS 4.59%
Description
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.
Affected products
- Vendor n/a Product Samba Defaultn/a
- Version 4.7.12StatusaffectedConstraints-
- Version 4.8.7StatusaffectedConstraints-
- Version 4.9.3StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| n/a | Samba | n/a |
|
Configuration 1
Configuration 2
- 12.04
- 14.04
- 16.04
- 18.04
- 18.10
Configuration 3
- 9.0
No data.
Red Hat Enterprise Linux 6
samba4
Not affected
Red Hat Enterprise Linux 7
samba
Not affected
Red Hat Enterprise Linux 8
samba
Not affected
Red Hat Storage 3
samba
Not affected
Red Hat Virtualization 4
samba
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | samba4 | Not affected | n/a |
| Red Hat Enterprise Linux 7 | samba | Not affected | n/a |
| Red Hat Enterprise Linux 8 | samba | Not affected | n/a |
| Red Hat Storage 3 | samba | Not affected | n/a |
| Red Hat Virtualization 4 | samba | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
AV:N/AC:L/Au:S/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (26 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.59% (0.04586) | 91.35th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.59% (0.04586) | 90.40th | v5 (v2026.06.15) |
| May 29, 2026 | 9.45% (0.09452) | 92.94th | v4 (v2025.03.14) |
| Mar 10, 2026 | 7.11% (0.07105) | 91.38th | v4 (v2025.03.14) |
| Oct 28, 2025 | 9.74% (0.09745) | 92.58th | v4 (v2025.03.14) |
| Oct 27, 2025 | 10.94% (0.10936) | 93.10th | v4 (v2025.03.14) |
| Oct 1, 2025 | 9.74% (0.09745) | 92.69th | v4 (v2025.03.14) |
| Aug 31, 2025 | 11.12% (0.11121) | 93.20th | v4 (v2025.03.14) |
| Aug 30, 2025 | 16.95% (0.16952) | 94.71th | v4 (v2025.03.14) |
| Mar 30, 2025 | 6.79% (0.06788) | 90.41th | v4 (v2025.03.14) |
| Mar 29, 2025 | 9.14% (0.09136) | 87.67th | v4 (v2025.03.14) |
| Mar 17, 2025 | 6.79% (0.06788) | 90.62th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.17% (0.01170) | 85.63th | v3 (v2023.03.01) |
| Jul 17, 2024 | 1.17% (0.01170) | 85.14th | v3 (v2023.03.01) |
| Apr 20, 2024 | 0.83% (0.00828) | 81.76th | v3 (v2023.03.01) |
| Nov 22, 2023 | 0.90% (0.00899) | 80.88th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.70% (0.00704) | 77.71th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.00% (0.00997) | 81.26th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.10% (0.01104) | 54.09th | v2 (v2022.01.01) |
| Sep 17, 2022 | 1.10% (0.01104) | 52.45th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.10% (0.01104) | 50.41th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.10% (0.01104) | 28.85th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.31% (0.02314) | 53.75th | v1 |
| Jan 6, 2022 | 2.31% (0.02314) | 53.29th | v1 |
| Sep 1, 2021 | 2.31% (0.02314) | 78.25th | v1 |
| Apr 14, 2021 | 2.31% (0.02314) | 0.00th | v1 |
References (12)
- http://www.securityfocus.com/bid/106023 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2018-16841 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1642545 Issue Tracking
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16841 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-16841
- https://security.gentoo.org/glsa/202003-52 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://security.netapp.com/advisory/ntap-20181127-0001/ x_refsource_CONFIRMThird Party Advisory
- https://usn.ubuntu.com/3827-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3827-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-16841
- https://www.debian.org/security/2018/dsa-4345 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.samba.org/samba/security/CVE-2018-16841.html x_refsource_CONFIRMPatchVendor Advisory
Change history (0)
No recorded changes yet.