CVE-2021-3738

samba: Use after free in Samba AD DC RPC server

Published Mar 2, 2022 CVSS 3.1 · 8.8 High EPSS 2.0% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5003-1 samba security update
EUVD EUVD EUVD-2021-27014 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.
Ubuntu USN Ubuntu USN USN-5142-1 Samba vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 3, 2024, 5:01 PM
Reserved
Aug 26, 2021, 12:00 AM
Status
Modified
Published
Mar 2, 2022, 11:15 PM
Modified
Jun 17, 2026, 4:05 AM
Severity
Moderate
Public date
Nov 9, 2021, 12:00 AM