cve.bz

CVE-2021-3738 samba samba: Use After Free

8.8 highEPSS 2.0%Fix available

High (8.8) in samba samba. EPSS 2.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3738 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3738?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3738?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3738 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
samba:sambafrom 4.0.0 before 4.13.14
samba:sambafrom 4.14.0 before 4.14.10
samba:sambafrom 4.15.0 before 4.15.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11samba2:4.13.13+dfsg-1~deb11u2DSA-5003-1
Debian12, 13, 14samba2:4.13.14+dfsg-1DEBIAN-CVE-2021-3738
Ubuntu20.04:LTSsamba2:4.13.14+dfsg-0ubuntu0.20.04.1UBUNTU-CVE-2021-3738 USN-5142-1
Ubuntu22.04:LTSsamba2:4.13.14+dfsg-0ubuntu1UBUNTU-CVE-2021-3738
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTSsambano fix listedUBUNTU-CVE-2021-3738
SUSEEnterprise Storage 7ldb2.2.2-4.6.1SUSE-SU-2022:0361-1
SUSEEnterprise Storage 7samba4.13.13+git.545.5897c2d94f3-3.12.1SUSE-SU-2022:0361-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Python 2 15 SP3samba4.13.13+git.528.140935f8d6a-3.12.1SUSE-SU-2021:3647-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3ldb2.2.2-3.3.1SUSE-SU-2021:3647-1
openSUSELeap 15.3ldb2.2.2-3.3.1openSUSE-SU-2021:3647-1
openSUSELeap 15.3samba4.13.13+git.528.140935f8d6a-3.12.1openSUSE-SU-2021:3647-1
openSUSETumbleweedsamba4.15.2+git.193.a4d6307f1fd-1.1openSUSE-SU-2024:11631-1
Alpinev3.13samba4.13.17-r0ALPINE-CVE-2021-3738
Alpinev3.14samba4.14.12-r0ALPINE-CVE-2021-3738
Alpinev3.15, v3.16, v3.17 and 7 moresamba4.15.2-r0ALPINE-CVE-2021-3738
Azure Linux2sambano fix listedAZL-8905
Azure Linux3samba4.18.3-1AZL-37005

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 7sambaNot affected
Red Hat Enterprise Linux 8sambaNot affected
Red Hat Enterprise Linux 9sambaNot affected
Red Hat Storage 3sambaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3738.

References

Check your stackJSON