Description
The Samba AD DC includes checks when adding service principals names (SPNs) to an account to ensure that SPNs do not alias with those already in the database. Some of these checks are able to be bypassed if an account modification re-adds an SPN that was previously present on that account, such as one added when a computer is joined to a domain. An attacker who has the ability to write to an account can exploit this to perform a denial-of-service attack by adding an SPN that matches an existing service. Additionally, an attacker who can intercept traffic can impersonate existing services, resulting in a loss of confidentiality and integrity.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Samba | Affects Samba v4.0.0 and later, Fixed in samba v4.13.17, v4.14.12, v4.15.4. | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | samba | 2:4.16.0+dfsg-2 | — |
| Debian 13 | samba | 2:4.16.0+dfsg-2 | — |
| Debian 12 | samba | 2:4.16.0+dfsg-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | samba | 2:4.13.17~dfsg-0ubuntu0.21.04.1 | USN-5260-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | apparmor | 2.13.6-150300.3.11.2 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | krb5 | 1.19.2-150300.8.3.2 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | ldb | 2.4.1-150300.3.10.1 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | libapparmor | 2.13.6-150300.3.11.1 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | samba | 4.15.4+git.324.8332acf1a63-150300.3.25.3 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | sssd | 1.16.1-150300.23.17.3 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | talloc | 2.3.3-150300.3.3.2 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | talloc-man | 2.3.3-150300.3.3.1 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | tdb | 1.4.4-150300.3.3.2 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | tevent | 0.11.0-150300.3.3.2 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | tevent-man | 0.11.0-150300.3.3.1 | SUSE-SU-2022:0283-1 |
| SLES 12 SP5 | apparmor | 2.8.2-56.6.3 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | ca-certificates | 1_201403302107-15.3.3 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | gnutls | 3.4.17-8.4.1 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | libnettle | 3.1-21.3.2 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | p11-kit | 0.23.2-8.3.2 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | samba | 4.15.4+git.324.8332acf1a63-3.54.1 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | sssd | 1.16.1-7.28.9 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | yast2-samba-client | 3.1.23-3.3.1 | SUSE-SU-2022:0323-1 |
| SLES 2 | samba | 4.15.4+git.324.8332acf1a63-150300.3.25.3 | SUSE-SU-2022:0283-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | apparmor | 2.8.2-56.6.3 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | ca-certificates | 1_201403302107-15.3.3 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | gnutls | 3.4.17-8.4.1 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | libnettle | 3.1-21.3.2 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | p11-kit | 0.23.2-8.3.2 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | samba | 4.15.4+git.324.8332acf1a63-3.54.1 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | sssd | 1.16.1-7.28.9 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | yast2-samba-client | 3.1.23-3.3.1 | SUSE-SU-2022:0323-1 |
| SLE Micro 5.1 | apparmor | 2.13.6-150300.3.11.2 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | krb5 | 1.19.2-150300.8.3.2 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | ldb | 2.4.1-150300.3.10.1 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | libapparmor | 2.13.6-150300.3.11.1 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | sssd | 1.16.1-150300.23.17.3 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | talloc | 2.3.3-150300.3.3.2 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | tdb | 1.4.4-150300.3.3.2 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | tevent | 0.11.0-150300.3.3.2 | SUSE-SU-2022:0283-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | samba | 4.15.5+git.328.f1f29505d84-1.1 | openSUSE-SU-2024:11807-1 |
| openSUSE Leap 15.3 | apparmor | 2.13.6-150300.3.11.2 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | krb5 +1 | 1.19.2-150300.8.3.2 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | ldb | 2.4.1-150300.3.10.1 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | libapparmor | 2.13.6-150300.3.11.1 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | samba | 4.15.4+git.324.8332acf1a63-150300.3.25.3 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | sssd | 1.16.1-150300.23.17.3 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | talloc | 2.3.3-150300.3.3.2 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | talloc-man | 2.3.3-150300.3.3.1 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | tdb | 1.4.4-150300.3.3.2 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | tevent | 0.11.0-150300.3.3.2 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | tevent-man | 0.11.0-150300.3.3.1 | openSUSE-SU-2022:0283-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.16 | samba | 4.15.12-r0 | — |
| Alpine v3.15 | samba | 4.15.12-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | samba +29 | 2:4.17.5-0.amzn2023.0.2 | ALAS2023-2023-032 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | samba | 4.18.3-1 | — |
| Azure Linux 2 (CBL-Mariner) | samba | No fix yet | — |
Advisories 10
- WID-SEC-2022-0432 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 11, 2026
- WID-SEC-2022-0302 Xerox FreeFlow Print Server: Mehrere Schwachstellen ermöglichen Ausführen von beliebigem Programmcode mit Administratorrechten BSI CERT-Bund (WID) · Oct 11, 2026
- USN-5260-1 samba vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- openSUSE-SU-2022:0283-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0283-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0323-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11807-1 ctdb-4.15.5+git.328.f1f29505d84-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-1335 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 6, 2025
- ALAS2023-2023-032 Important: samba security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 15, 2024
- WID-SEC-2022-0466 Samba: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 21, 2023
References
- https://www.samba.org/samba/security/CVE-2022-0336.html
- https://bugzilla.samba.org/show_bug.cgi?id=14950
- https://github.com/samba-team/samba/commit/1a5dc817c0c9379bbaab14c676681b42b0039a3c
- https://github.com/samba-team/samba/commit/c58ede44f382bd0125f761f0479c8d48156be400
- https://bugzilla.redhat.com/show_bug.cgi?id=2046134
- https://access.redhat.com/security/cve/CVE-2022-0336
- GLSA-202309-06 vendor-advisory