ubuntu-cve-2022-0336
Vulnerability from osv_ubuntu
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": [
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "ctdb",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "libnss-winbind",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "libpam-winbind",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "libsmbclient",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "libwbclient0",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "python3-samba",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "registry-tools",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "samba",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "samba-common",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "samba-common-bin",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "samba-dsdb-modules",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "samba-libs",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "samba-testsuite",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "samba-vfs-modules",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "smbclient",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
},
{
"binary_name": "winbind",
"binary_version": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "samba",
"purl": "pkg:deb/ubuntu/samba@2:4.13.17~dfsg-0ubuntu0.21.04.1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2:4.13.17~dfsg-0ubuntu0.21.04.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2:4.10.7+dfsg-0ubuntu2",
"2:4.10.7+dfsg-0ubuntu3",
"2:4.11.1+dfsg-3ubuntu1",
"2:4.11.1+dfsg-3ubuntu2",
"2:4.11.1+dfsg-3ubuntu4",
"2:4.11.5+dfsg-1ubuntu1",
"2:4.11.5+dfsg-1ubuntu2",
"2:4.11.6+dfsg-0ubuntu1",
"2:4.11.6+dfsg-0ubuntu1.1",
"2:4.11.6+dfsg-0ubuntu1.2",
"2:4.11.6+dfsg-0ubuntu1.3",
"2:4.11.6+dfsg-0ubuntu1.4",
"2:4.11.6+dfsg-0ubuntu1.5",
"2:4.11.6+dfsg-0ubuntu1.6",
"2:4.11.6+dfsg-0ubuntu1.8",
"2:4.11.6+dfsg-0ubuntu1.9",
"2:4.11.6+dfsg-0ubuntu1.10",
"2:4.13.14+dfsg-0ubuntu0.20.04.1",
"2:4.13.14+dfsg-0ubuntu0.20.04.2",
"2:4.13.14+dfsg-0ubuntu0.20.04.3",
"2:4.13.14+dfsg-0ubuntu0.20.04.4"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2022-0336",
"modified": "2026-04-22T07:41:07Z",
"published": "2022-01-31T00:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2022-0336"
},
{
"type": "REPORT",
"url": "https://www.samba.org/samba/security/CVE-2022-0336.html"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-5260-1"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2022-0336"
}
],
"related": [
"USN-5260-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2022-0336"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.