CVEvulnerability
CVE-2021-3738
8.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2022-03-02
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 8.8 HIGH — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 6.5 MEDIUM — AV:N/AC:L/Au:S/C:P/I:P/A:P
- Weaknesses
- CWE-416
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.
Affected configurations
• samba samba (>= 4.0.0 < 4.13.14)
• samba samba (>= 4.14.0 < 4.14.10)
• samba samba (>= 4.15.0 < 4.15.2)
Related
Weakness · CWE (1)
- CWE-416 Use After Free weakness
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2021726 Issue Tracking, Third Party Advisory
- https://bugzilla.samba.org/show_bug.cgi?id=14468 Issue Tracking, Patch, Vendor Advisory
- https://security.gentoo.org/glsa/202309-06 security.gentoo.org
- https://www.samba.org/samba/security/CVE-2021-3738.html Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2021726 Issue Tracking, Third Party Advisory
- https://bugzilla.samba.org/show_bug.cgi?id=14468 Issue Tracking, Patch, Vendor Advisory
- https://security.gentoo.org/glsa/202309-06 security.gentoo.org
- https://www.samba.org/samba/security/CVE-2021-3738.html Vendor Advisory