{"api_version":"1","generated_at":"2026-04-23T02:20:14+00:00","cve":"CVE-2021-3738","urls":{"html":"https://cve.report/CVE-2021-3738","api":"https://cve.report/api/cve/CVE-2021-3738.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3738","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3738"},"summary":{"title":"CVE-2021-3738","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.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-03-02 23:15:00","updated_at":"2023-09-17 09:15:00"},"problem_types":["CWE-416"],"metrics":[],"references":[{"url":"https://bugzilla.samba.org/show_bug.cgi?id=14468","name":"https://bugzilla.samba.org/show_bug.cgi?id=14468","refsource":"MISC","tags":[],"title":"14468 – (CVE-2021-3738) CVE-2021-3738 [EMBARGOED][SECURITY] crash in dsdb stack","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202309-06","name":"GLSA-202309-06","refsource":"GENTOO","tags":[],"title":"Samba: Multiple Vulnerabilities (GLSA 202309-06) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.samba.org/samba/security/CVE-2021-3738.html","name":"https://www.samba.org/samba/security/CVE-2021-3738.html","refsource":"MISC","tags":[],"title":"Samba - Security Announcement Archive","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2021726","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2021726","refsource":"MISC","tags":[],"title":"2021726 – (CVE-2021-3738) CVE-2021-3738 samba: Use after free in Samba AD DC RPC server","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3738","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3738","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"3738","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"samba","cpe5":"samba","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-3738","qid":"178884","title":"Debian Security Update for samba (DSA 5003-1)"},{"cve":"CVE-2021-3738","qid":"183470","title":"Debian Security Update for samba (CVE-2021-3738)"},{"cve":"CVE-2021-3738","qid":"198583","title":"Ubuntu Security Notification for Samba Vulnerability (USN-5142-1)"},{"cve":"CVE-2021-3738","qid":"282091","title":"Fedora Security Update for freeipa (FEDORA-2021-1d77047c61)"},{"cve":"CVE-2021-3738","qid":"282156","title":"Fedora Security Update for freeipa (FEDORA-2021-12af2614da)"},{"cve":"CVE-2021-3738","qid":"296061","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 42.113.1 Missing (CPUJAN2022)"},{"cve":"CVE-2021-3738","qid":"354310","title":"Amazon Linux Security Advisory for samba : ALAS2022-2022-022"},{"cve":"CVE-2021-3738","qid":"354496","title":"Amazon Linux Security Advisory for samba : ALAS2022-2022-224"},{"cve":"CVE-2021-3738","qid":"354550","title":"Amazon Linux Security Advisory for samba : ALAS-2022-224"},{"cve":"CVE-2021-3738","qid":"501490","title":"Alpine Linux Security Update for samba"},{"cve":"CVE-2021-3738","qid":"501779","title":"Alpine Linux Security Update for samba"},{"cve":"CVE-2021-3738","qid":"502027","title":"Alpine Linux Security Update for samba"},{"cve":"CVE-2021-3738","qid":"504394","title":"Alpine Linux Security Update for samba"},{"cve":"CVE-2021-3738","qid":"671280","title":"EulerOS Security Update for samba (EulerOS-SA-2022-1246)"},{"cve":"CVE-2021-3738","qid":"671315","title":"EulerOS Security Update for samba (EulerOS-SA-2022-1258)"},{"cve":"CVE-2021-3738","qid":"671372","title":"EulerOS Security Update for samba (EulerOS-SA-2022-1295)"},{"cve":"CVE-2021-3738","qid":"671384","title":"EulerOS Security Update for samba (EulerOS-SA-2022-1311)"},{"cve":"CVE-2021-3738","qid":"690244","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for samba (646923b0-41c7-11ec-a3b2-005056a311d1)"},{"cve":"CVE-2021-3738","qid":"710751","title":"Gentoo Linux Samba Multiple Vulnerabilities (GLSA 202309-06)"},{"cve":"CVE-2021-3738","qid":"751345","title":"OpenSUSE Security Update for samba and ldb (openSUSE-SU-2021:3647-1)"},{"cve":"CVE-2021-3738","qid":"901954","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for samba (8905)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-3738","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"samba","version":{"version_data":[{"version_value":"Affects all versions since samba 4.0 | Fixedin samba v4.15.2, v4.14.10 and v4.13.14"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-416 - Use After Free"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://www.samba.org/samba/security/CVE-2021-3738.html","url":"https://www.samba.org/samba/security/CVE-2021-3738.html"},{"refsource":"MISC","name":"https://bugzilla.samba.org/show_bug.cgi?id=14468","url":"https://bugzilla.samba.org/show_bug.cgi?id=14468"},{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2021726","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2021726"},{"refsource":"GENTOO","name":"GLSA-202309-06","url":"https://security.gentoo.org/glsa/202309-06"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]}},"nvd":{"publishedDate":"2022-03-02 23:15:00","lastModifiedDate":"2023-09-17 09:15:00","problem_types":["CWE-416"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.5},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15.0","versionEndExcluding":"4.15.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14.0","versionEndExcluding":"4.14.10","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.13.14","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"3738","Ordinal":"215857","Title":"CVE-2021-3738","CVE":"CVE-2021-3738","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3738","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}