CVE-2018-16841 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() twi...
MediumCVSS 6.5
EPSS 4.6%
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/samba(Debian:12) | < 2:4.9.2+dfsg-2 | 2:4.9.2+dfsg-2 |
| debian/samba(Debian:13) | < 2:4.9.2+dfsg-2 | 2:4.9.2+dfsg-2 |
| debian/samba(Debian:14) | < 2:4.9.2+dfsg-2 | 2:4.9.2+dfsg-2 |
| samba | >= 4.3.0, < 4.7.12 | 4.7.12 |
| samba | >= 4.8.0, < 4.8.7 | 4.8.7 |
| samba | >= 4.9.0, < 4.9.3 | 4.9.3 |
| Canonical Ubuntu Linux | = 12.04 | No fix listed |
| Canonical Ubuntu Linux | = 14.04 | No fix listed |
| Canonical Ubuntu Linux | = 16.04 | No fix listed |
| Canonical Ubuntu Linux | = 18.04 | No fix listed |
| Canonical Ubuntu Linux | = 18.10 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| [UNKNOWN] samba | = 4.7.12 | No fix listed |
| [UNKNOWN] samba | = 4.8.7 | No fix listed |
| [UNKNOWN] samba | = 4.9.3 | No fix listed |
| alpine/samba(Alpine:v3.10) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.11) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.12) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.13) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.14) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.15) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.16) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.17) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.18) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.19) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
Show 9 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/samba(Alpine:v3.20) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.21) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.22) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.23) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.24) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
| alpine/samba(Alpine:v3.6) | >= 4.3.0, < 4.6.16-r2 | 4.6.16-r2 |
| alpine/samba(Alpine:v3.7) | >= 4.3.0, < 4.7.6-r2 | 4.7.6-r2 |
| alpine/samba(Alpine:v3.8) | >= 4.8.0, < 4.8.8-r0 | 4.8.8-r0 |
| alpine/samba(Alpine:v3.9) | >= 4.8.0, < 4.8.7-r0 | 4.8.7-r0 |
References
- Debian Security Tracker CVE-2018-16841 vendor-advisory
- 106023 third-party-advisory vdb-entry
- bugzilla.redhat.com issue-tracking third-party-advisory
- GLSA-202003-52 third-party-advisory vendor-advisory
- security.netapp.com third-party-advisory
- USN-3827-1 third-party-advisory vendor-advisory
- USN-3827-2 third-party-advisory vendor-advisory
- DSA-4345 third-party-advisory vendor-advisory
- www.samba.org patch vendor-advisory
- security.alpinelinux.org vendor-advisory