8.8

CVE-2021-3738: samba Use After Free

CVSS: 8.8v3.1HighModified
AliasesALPINE-CVE-2021-3738UBUNTU-CVE-2021-3738DEBIAN-CVE-2021-3738
Published 02-03-2022Last modified 03-08-2024

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.

Overall risk
36/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
2.05%
0%100%
Low · +0.11 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 7 · Related 5

Timeline

  1. 02-03-2022
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last 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

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

21-09-202621-10-2026
EPSS score
2.05%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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
Show all 11 references