{"schemaVersion":3,"id":"CVE-2021-3738","aliases":["ALPINE-CVE-2021-3738","UBUNTU-CVE-2021-3738","DEBIAN-CVE-2021-3738"],"status":"published","duplicateOf":null,"title":null,"description":"In DCE/RPC it is possible to share the handles (cookies for resource state) between multiple connections via a mechanism called 'association groups'. These handles can reference connections to our sam.ldb database. However while the database was correctly shared, the user credentials state was only pointed at, and when one connection within that association group ended, the database would be left pointing at an invalid 'struct session_info'. The most likely outcome here is a crash, but it is possible that the use-after-free could instead allow different user state to be pointed at and this might allow more privileged access.","dates":{"published":"2022-03-02T00:00:00.000Z","modified":"2024-08-03T17:01:07.949Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02046,"percentile":0.81019,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.11199999999999995,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.01934},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01918,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01918,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01918,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01918,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01934,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01934,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01934,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01934,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02046,"percentile":0.81019}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.01934,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02046,"percentile":0.81019}]},"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"}],"affected":[{"vendor":"alpine","product":"samba","name":"samba","label":"samba","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/samba","purlType":"apk","versions":[{"text":"≥ 4.0.0, < 4.13.17-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.14.12-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.15.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.13.17-r0 | ≥ 4.0.0, < 4.14.12-r0 | ≥ 4.0.0, < 4.15.2-r0","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"samba","label":"Samba","category":"server-app"}},"hubHref":null},{"vendor":"debian","product":"samba","name":"samba","label":"samba","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/samba","purlType":"deb","versions":[{"text":"< 2:4.13.14+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:4.13.14+dfsg-1","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":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2:4.13.14+dfsg-0ubuntu0.20.04.1","noFixRecorded":false,"fixedIn":null},{"text":"< 2:4.13.14+dfsg-0ubuntu1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2:4.13.14+dfsg-0ubuntu0.20.04.1 | < 2:4.13.14+dfsg-0ubuntu1","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"samba","label":"Samba","category":"server-app"}},"hubHref":null},{"vendor":"samba","product":"samba","name":"Samba","label":"samba","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0, < 4.13.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.14.0, < 4.14.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.15.0, < 4.15.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.13.14 | ≥ 4.14.0, < 4.14.10 | ≥ 4.15.0, < 4.15.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"samba","label":"Samba","category":"server-app"}},"hubHref":"/vendor/samba/samba"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.samba.org/samba/security/CVE-2021-3738.html","label":"www.samba.org/samba/security/CVE-2021-3738.html","hostname":"www.samba.org","tags":["REPORT","Vendor Advisory"]},{"url":"https://bugzilla.samba.org/show_bug.cgi?id=14468","label":"bugzilla.samba.org/show_bug.cgi?id=14468","hostname":"bugzilla.samba.org","tags":["Issue Tracking","Patch","Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2021726","label":"bugzilla.redhat.com/show_bug.cgi?id=2021726","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202309-06","label":"security.gentoo.org/glsa/202309-06","hostname":"security.gentoo.org","tags":["Vendor Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-3738","label":"security.alpinelinux.org/vuln/CVE-2021-3738","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3738","label":"ubuntu.com/security/CVE-2021-3738","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.samba.org/samba/history/samba-4.13.14.html","label":"www.samba.org/samba/history/samba-4.13.14.html","hostname":"www.samba.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5142-1","label":"ubuntu.com/security/notices/USN-5142-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3738","label":"www.cve.org/CVERecord?id=CVE-2021-3738","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3738","label":"security-tracker.debian.org/tracker/CVE-2021-3738","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3738","label":"nvd.nist.gov/vuln/detail/CVE-2021-3738","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-5003-1","MGASA-2021-0585","OPENSUSE-SU-2021:3647-1","OPENSUSE-SU-2024:11631-1","SUSE-SU-2021:3647-1","SUSE-SU-2022:0361-1","USN-5142-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:3647-1","OPENSUSE-SU-2024:11631-1","SUSE-SU-2021:3647-1","SUSE-SU-2022:0361-1","USN-5142-1"]},"timeline":[{"kind":"published","date":"2022-03-02T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T17:01:07.949Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T20:11:17.362Z","stale":false,"partial":false}}