Vulnerability record · CVE-2021-3738 · published 2 March 2022
CVE-2021-3738: Samba use after free vulnerability
Samba · Samba
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.
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=2021726 | Issue TrackingThird Party Advisory |
| https://bugzilla.samba.org/show_bug.cgi?id=14468 | Issue TrackingPatchVendor Advisory |
| https://security.gentoo.org/glsa/202309-06 | |
| https://www.samba.org/samba/security/CVE-2021-3738.html | Vendor Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2021726 | Issue TrackingThird Party Advisory |
| https://bugzilla.samba.org/show_bug.cgi?id=14468 | Issue TrackingPatchVendor Advisory |
| https://security.gentoo.org/glsa/202309-06 | |
| https://www.samba.org/samba/security/CVE-2021-3738.html | Vendor Advisory |
Track CVE-2021-3738 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-3738), CISA KEV, FIRST EPSS (scores of 2026-11-23). This page is refreshed as NVD updates the record.