Skip to content
Fencer Vulns
high 8.8

CVE-2022-0336 json

The Samba AD DC includes checks when adding service principals names (SPNs) to an account to ensure that SPNs do not alias with those alrea…

published 2022-08-29 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-15499

cvss
8.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.8%
EPSS 1.8% chance of exploitation in 30 days, percentile 78%
public exploits
0
none known

Summary

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.

Patch / fix

  • samba samba 4.13.17, 4.14.12, 4.15.4
  • samba Debian 14, Debian 13, Debian 12 2:4.16.0+dfsg-2

debian advisories DEBIAN-CVE-2022-0336

  • samba Ubuntu 20.04 LTS 2:4.13.17~dfsg-0ubuntu0.21.04.1

ubuntu advisories UBUNTU-CVE-2022-0336

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • samba SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 +1 more 4.15.4+git.324.8332acf1a63-3.54.1
  • sssd SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.16.1-7.28.9
  • gnutls SLES for SAP 12 SP5, SLES 12 SP5 3.4.17-8.4.1
  • p11-kit SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 0.23.2-8.3.2
  • apparmor SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 2.8.2-56.6.3
  • libnettle SLES for SAP 12 SP5, SLES 12 SP5 3.1-21.3.2
  • ca-certificates SLES for SAP 12 SP5, SLES 12 SP5 1_201403302107-15.3.3
  • yast2-samba-client SLES for SAP 12 SP5, SLES 12 SP5 3.1.23-3.3.1

suse advisories SUSE-SU-2022:0323-1SUSE-SU-2022:0283-1

  • samba openSUSE Tumbleweed 4.15.5+git.328.f1f29505d84-1.1
  • samba openSUSE Leap 15.3 4.15.4+git.324.8332acf1a63-150300.3.25.3
  • ldb openSUSE Leap 15.3 2.4.1-150300.3.10.1
  • tdb openSUSE Leap 15.3 1.4.4-150300.3.3.2
  • krb5 openSUSE Leap 15.3 1.19.2-150300.8.3.2
  • sssd openSUSE Leap 15.3 1.16.1-150300.23.17.3
  • talloc openSUSE Leap 15.3 2.3.3-150300.3.3.2
  • tevent openSUSE Leap 15.3 0.11.0-150300.3.3.2

opensuse advisories openSUSE-SU-2024:11807-1openSUSE-SU-2022:0283-1

  • samba Alpine 3.16, Alpine 3.15 4.15.12-r0

alpine advisories ALPINE-CVE-2022-0336

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • samba Azure Linux 3.0 4.18.3-1

azure linux advisories AZL-37009

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

  • samba Arch Linux 4.15.5-1

arch linux advisories AVG-2648

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-0336 updated cvss 8.8

samba: Samba AD users with permission to write to an account can impersonate arbitrary services

  • Red Hat Enterprise Linux 6 samba, samba4, samba4-dc, samba-swat, samba4-libs, samba4-pidl, +17 more Red Hat Enterprise Linux 7 ctdb, samba, samba-dc, ctdb-tests, samba-libs, samba-pidl, +18 more Red Hat Enterprise Linux 8 ctdb, samba, libnetapi, ctdb-tests, samba-libs, samba-pidl, +24 more Red Hat Enterprise Linux 9 ctdb, samba, libldb, ldb-tools, libnetapi, samba-libs, +27 more Red Hat Storage 3 ctdb, samba, samba-dc, ctdb-tests, samba-libs, samba-pidl, +21 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.75% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

  • n/a Samba

Classification

Weakness
  • CWE-276 Incorrect Default Permissions

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.