Incorrect Default Permissions Affecting samba package, versions <4.13.17~dfsg-0ubuntu1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.3% (69th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Default Permissions vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU2204-SAMBA-2779706
  • published31 Jan 2022
  • disclosed29 Aug 2022

Introduced: 31 Jan 2022

CVE-2022-0336  (opens in a new tab)
CWE-276  (opens in a new tab)

How to fix?

Upgrade Ubuntu:22.04 samba to version 4.13.17~dfsg-0ubuntu1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream samba package and not the samba package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

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.

CVSS Scores

version 3.1