{"schemaVersion":3,"id":"CVE-2018-16841","aliases":["ALPINE-CVE-2018-16841","UBUNTU-CVE-2018-16841","DEBIAN-CVE-2018-16841"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-11-28T14:00:00.000Z","modified":"2024-08-05T10:32:54.002Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":5.7,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":5.7,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true}]},"epss":{"probability":0.04586,"percentile":0.91526,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.04586},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04586,"percentile":0.91526}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04586,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04586,"percentile":0.91526}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"},{"id":"CWE-415","name":"Double Free","description":"The product calls free() twice on the same memory address.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/415.html"}],"affected":[{"vendor":"alpine","product":"samba","name":"samba","label":"samba","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/samba","purlType":"apk","versions":[{"text":"≥ 4.3.0, < 4.8.7-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.3.0, < 4.6.16-r2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.3.0, < 4.7.6-r2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.3.0, < 4.8.8-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.3.0, < 4.8.7-r0 | ≥ 4.3.0, < 4.6.16-r2 | ≥ 4.3.0, < 4.7.6-r2 | ≥ 4.3.0, < 4.8.8-r0","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"samba","label":"Samba","category":"server-app"}},"hubHref":null},{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"12.04","noFixRecorded":false,"fixedIn":null},{"text":"14.04","noFixRecorded":false,"fixedIn":null},{"text":"16.04","noFixRecorded":false,"fixedIn":null},{"text":"18.04","noFixRecorded":false,"fixedIn":null},{"text":"18.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"12.04 | 14.04 | 16.04 | 18.04 | 18.10","eol":{"isEol":true,"eolDate":"2017-04-28T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"12.04","label":"12.04 'Precise Pangolin' (LTS)","eolFrom":"2017-04-28T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"12.04.5"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"samba","name":"samba","label":"samba","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/samba","purlType":"deb","versions":[{"text":"< 2:4.9.2+dfsg-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:4.9.2+dfsg-2","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"samba","label":"Samba","category":"server-app"}},"hubHref":null},{"vendor":"ubuntu","product":"samba","name":"samba","label":"samba","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/samba","purlType":"deb","versions":[{"text":"< 2:4.3.11+dfsg-0ubuntu0.14.04.19","noFixRecorded":false,"fixedIn":null},{"text":"< 2:4.3.11+dfsg-0ubuntu0.16.04.18","noFixRecorded":false,"fixedIn":null},{"text":"< 2:4.7.6+dfsg~ubuntu-0ubuntu2.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:4.3.11+dfsg-0ubuntu0.14.04.19 | < 2:4.3.11+dfsg-0ubuntu0.16.04.18 | < 2:4.7.6+dfsg~ubuntu-0ubuntu2.5","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"samba","label":"Samba","category":"server-app"}},"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"samba","product":"samba","name":"Samba","label":"samba","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.3.0, < 4.7.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.8.0, < 4.8.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.9.0, < 4.9.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.3.0, < 4.7.12 | ≥ 4.8.0, < 4.8.7 | ≥ 4.9.0, < 4.9.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"samba","label":"Samba","category":"server-app"}},"hubHref":"/vendor/samba/samba"},{"vendor":"[unknown]","product":"samba","name":"samba","label":"samba","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.7.12","noFixRecorded":false,"fixedIn":null},{"text":"4.8.7","noFixRecorded":false,"fixedIn":null},{"text":"4.9.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.7.12 | 4.8.7 | 4.9.3","eol":{"isEol":true,"eolDate":"2019-03-19T00:00:00.000Z","matchMethod":"name_exact","cycle":{"name":"4.7","label":"4.7","eolFrom":"2019-03-19T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"4.7.12"},"product":{"name":"samba","label":"Samba","category":"server-app"}},"hubHref":"/vendor/unknown/samba"}],"affectedCount":7,"eol":{"hasEol":true,"count":3},"references":[{"url":"http://www.securityfocus.com/bid/106023","label":"www.securityfocus.com/bid/106023","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/3827-2/","label":"usn.ubuntu.com/3827-2/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/3827-1/","label":"usn.ubuntu.com/3827-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20181127-0001/","label":"security.netapp.com/advisory/ntap-20181127-0001/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16841","label":"bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16841","hostname":"bugzilla.redhat.com","tags":["X Refsource CONFIRM","Issue Tracking","Third Party Advisory"]},{"url":"https://www.debian.org/security/2018/dsa-4345","label":"www.debian.org/security/2018/dsa-4345","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://www.samba.org/samba/security/CVE-2018-16841.html","label":"www.samba.org/samba/security/CVE-2018-16841.html","hostname":"www.samba.org","tags":["X Refsource CONFIRM","Patch","Vendor Advisory","REPORT"]},{"url":"https://security.gentoo.org/glsa/202003-52","label":"security.gentoo.org/glsa/202003-52","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-16841","label":"security.alpinelinux.org/vuln/CVE-2018-16841","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-16841","label":"ubuntu.com/security/CVE-2018-16841","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-3827-1","label":"ubuntu.com/security/notices/USN-3827-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-3827-2","label":"ubuntu.com/security/notices/USN-3827-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-16841","label":"www.cve.org/CVERecord?id=CVE-2018-16841","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-16841","label":"security-tracker.debian.org/tracker/CVE-2018-16841","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-4345-1","MGASA-2019-0011","OPENSUSE-SU-2024:11365-1","SUSE-SU-2018:4066-1","USN-3827-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11365-1","SUSE-SU-2018:4066-1","USN-3827-1"]},"timeline":[{"kind":"published","date":"2018-11-28T14:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T10:32:54.002Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T11:01:42.776Z","stale":false,"partial":false}}