CVE-2021-3738: samba Use After Free
Vulnerability summary
CVE-2021-3738 is a high (CVSS 8.8) Use After Free vulnerability in samba. EPSS estimates a 2.05% chance of exploitation in the next 30 days, higher than 81% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 7 · Related 5Timeline
- 02-03-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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 metrics
5 scores · 4 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.05%
Chance of exploitation in the next 30 days
Percentile
81%
Versus all other CVEs
30-day change
+0.11 pp
From 1.93% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Alpine1 product
- samba≥ 4.0.0, < 4.13.17-r0 | ≥ 4.0.0, < 4.14.12-r0 | ≥ 4.0.0, < 4.15.2-r0
Debian1 product
- samba< 2:4.13.14+dfsg-1
Samba1 product
- samba≥ 4.0.0, < 4.13.14 | ≥ 4.14.0, < 4.14.10 | ≥ 4.15.0, < 4.15.2
Ubuntu1 product
- sambaAll versions (No fix recorded) | < 2:4.13.14+dfsg-0ubuntu0.20.04.1 | < 2:4.13.14+dfsg-0ubuntu1
4 vendors · 4 products
References
11 links- security.gentoo.org/glsa/202309-06Vendor Advisory