Vulnerability · Published Mar 2, 2022 · Assigned by redhat
CVE-2021-3738
High 8.8
In plain English
A high-severity use-after-free in samba. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | samba | 4.15.2-r0 | ALPINE-CVE-2021-3738 |
| Alpine:v3.21 | samba | 4.15.2-r0 | ALPINE-CVE-2021-3738 |
| Alpine:v3.22 | samba | 4.15.2-r0 | ALPINE-CVE-2021-3738 |
| Alpine:v3.23 | samba | 4.15.2-r0 | ALPINE-CVE-2021-3738 |
| Alpine:v3.24 | samba | 4.15.2-r0 | ALPINE-CVE-2021-3738 |
| Debian:12 | samba | 2:4.13.14+dfsg-1 | DEBIAN-CVE-2021-3738 |
| Debian:13 | samba | 2:4.13.14+dfsg-1 | DEBIAN-CVE-2021-3738 |
| Debian:14 | samba | 2:4.13.14+dfsg-1 | DEBIAN-CVE-2021-3738 |
| Ubuntu:22.04:LTS | samba | 2:4.13.14+dfsg-0ubuntu1 | UBUNTU-CVE-2021-3738 |
Affected products (as reported)
Weakness: CWE-416