openSUSE 15 Security Update : samba (openSUSE-SU-2022:0283-1)

high Nessus Plugin ID 157325

Language:

Synopsis

The remote SUSE host is missing one or more security updates.

Description

The remote SUSE Linux SUSE15 host has packages installed that are affected by multiple vulnerabilities as referenced in the openSUSE-SU-2022:0283-1 advisory.

- A flaw was found in samba. Spaces used in a string around a domain name (DN), while supposed to be ignored, can cause invalid DN strings with spaces to instead write a zero-byte into out-of-bounds memory, resulting in a crash. The highest threat from this vulnerability is to system availability.
(CVE-2020-27840)

- A flaw was found in Samba's libldb. Multiple, consecutive leading spaces in an LDAP attribute can lead to an out-of-bounds memory write, leading to a crash of the LDAP server process handling the request. The highest threat from this vulnerability is to system availability. (CVE-2021-20277)

- ec_verify in kdc/kdc_preauth_ec.c in the Key Distribution Center (KDC) in MIT Kerberos 5 (aka krb5) before 1.18.4 and 1.19.x before 1.19.2 allows remote attackers to cause a NULL pointer dereference and daemon crash. This occurs because a return value is not properly managed in a certain situation. (CVE-2021-36222)

- All versions of Samba prior to 4.13.16 are vulnerable to a malicious client using an SMB1 or NFS race to allow a directory to be created in an area of the server file system not exported under the share definition. Note that SMB1 has to be enabled, or the share also available via NFS in order for this attack to succeed. (CVE-2021-43566)

- All versions of Samba prior to 4.15.5 are vulnerable to a malicious client using a server symlink to determine if a file or directory exists in an area of the server file system not exported under the share definition. SMB1 with unix extensions has to be enabled in order for this attack to succeed. Clients that have write access to the exported part of the file system under a share via SMB1 unix extensions or via NFS can create symlinks that point to arbitrary files or directories on the server filesystem. Clients can then use SMB1 unix extension information queries to determine if the target of the symlink exists or not by examining error codes returned from the smbd server. There is no ability to access these files or directories, only to determine if they exist or not. If SMB1 is turned off and only SMB2 is used, or unix extensions are not enabled then there is no way to discover if a symlink points to a valid target or not via SMB2. For this reason, even if symlinks are created via NFS, if the Samba server does not allow SMB1 with unix extensions there is no way to exploit this bug. Finding out what files or directories exist on a file server can help attackers guess system user names or the exact operating system release and applications running on the server hosting Samba which may help mount further attacks. SMB1 has been disabled on Samba since version 4.11.0 and onwards. Exploitation of this bug has not been seen in the wild. (CVE-2021-44141)

- samba: Out-of-bounds heap read/write vulnerability in VFS module vfs_fruit allows code execution (CVE-2021-44142)

- 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. (CVE-2022-0336)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://bugzilla.suse.com/1139519

https://bugzilla.suse.com/1183572

https://bugzilla.suse.com/1183574

https://bugzilla.suse.com/1188571

https://bugzilla.suse.com/1191227

https://bugzilla.suse.com/1191532

https://bugzilla.suse.com/1192684

https://bugzilla.suse.com/1193690

https://bugzilla.suse.com/1194859

https://bugzilla.suse.com/1195048

http://www.nessus.org/u?dafccda9

https://www.suse.com/security/cve/CVE-2020-27840

https://www.suse.com/security/cve/CVE-2021-20277

https://www.suse.com/security/cve/CVE-2021-20316

https://www.suse.com/security/cve/CVE-2021-36222

https://www.suse.com/security/cve/CVE-2021-43566

https://www.suse.com/security/cve/CVE-2021-44141

https://www.suse.com/security/cve/CVE-2021-44142

https://www.suse.com/security/cve/CVE-2022-0336

Plugin Details

Severity: High

ID: 157325

File Name: openSUSE-2022-0283-1.nasl

Version: 1.8

Type: local

Agent: unix

Published: 2/2/2022

Updated: 11/1/2023

Supported Sensors: Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: High

Score: 8.9

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2021-44142

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 8.4

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:H/RL:O/RC:C

CVSS Score Source: CVE-2022-0336

Vulnerability Information

CPE: p-cpe:/a:novell:opensuse:apache2-mod_apparmor, p-cpe:/a:novell:opensuse:apparmor-abstractions, p-cpe:/a:novell:opensuse:apparmor-parser, p-cpe:/a:novell:opensuse:apparmor-parser-lang, p-cpe:/a:novell:opensuse:apparmor-profiles, p-cpe:/a:novell:opensuse:apparmor-utils, p-cpe:/a:novell:opensuse:apparmor-utils-lang, p-cpe:/a:novell:opensuse:ctdb, p-cpe:/a:novell:opensuse:ctdb-pcp-pmda, p-cpe:/a:novell:opensuse:krb5, p-cpe:/a:novell:opensuse:krb5-32bit, p-cpe:/a:novell:opensuse:krb5-client, p-cpe:/a:novell:opensuse:krb5-devel, p-cpe:/a:novell:opensuse:krb5-devel-32bit, p-cpe:/a:novell:opensuse:krb5-mini, p-cpe:/a:novell:opensuse:krb5-mini-devel, p-cpe:/a:novell:opensuse:krb5-plugin-kdb-ldap, p-cpe:/a:novell:opensuse:krb5-plugin-preauth-otp, p-cpe:/a:novell:opensuse:krb5-plugin-preauth-pkinit, p-cpe:/a:novell:opensuse:krb5-plugin-preauth-spake, p-cpe:/a:novell:opensuse:krb5-server, p-cpe:/a:novell:opensuse:ldb-tools, p-cpe:/a:novell:opensuse:libapparmor-devel, p-cpe:/a:novell:opensuse:libapparmor1, p-cpe:/a:novell:opensuse:libapparmor1-32bit, p-cpe:/a:novell:opensuse:libipa_hbac-devel, p-cpe:/a:novell:opensuse:libipa_hbac0, p-cpe:/a:novell:opensuse:libldb-devel, p-cpe:/a:novell:opensuse:libldb2, p-cpe:/a:novell:opensuse:libldb2-32bit, p-cpe:/a:novell:opensuse:libnfsidmap-sss, p-cpe:/a:novell:opensuse:libsamba-policy-devel, p-cpe:/a:novell:opensuse:libsamba-policy-python3-devel, p-cpe:/a:novell:opensuse:libsamba-policy0-python3, p-cpe:/a:novell:opensuse:libsamba-policy0-python3-32bit, p-cpe:/a:novell:opensuse:libsamba-policy0-python3-64bit, p-cpe:/a:novell:opensuse:libsss_certmap-devel, p-cpe:/a:novell:opensuse:libsss_certmap0, p-cpe:/a:novell:opensuse:libsss_idmap-devel, p-cpe:/a:novell:opensuse:libsss_idmap0, p-cpe:/a:novell:opensuse:libsss_nss_idmap-devel, p-cpe:/a:novell:opensuse:libsss_nss_idmap0, p-cpe:/a:novell:opensuse:libsss_simpleifp-devel, p-cpe:/a:novell:opensuse:libsss_simpleifp0, p-cpe:/a:novell:opensuse:libtalloc-devel, p-cpe:/a:novell:opensuse:libtalloc2, p-cpe:/a:novell:opensuse:libtalloc2-32bit, p-cpe:/a:novell:opensuse:libtdb-devel, p-cpe:/a:novell:opensuse:libtdb1, p-cpe:/a:novell:opensuse:libtdb1-32bit, p-cpe:/a:novell:opensuse:libtevent-devel, p-cpe:/a:novell:opensuse:libtevent0, p-cpe:/a:novell:opensuse:libtevent0-32bit, p-cpe:/a:novell:opensuse:pam_apparmor, p-cpe:/a:novell:opensuse:pam_apparmor-32bit, p-cpe:/a:novell:opensuse:perl-apparmor, p-cpe:/a:novell:opensuse:python3-apparmor, p-cpe:/a:novell:opensuse:python3-ipa_hbac, p-cpe:/a:novell:opensuse:python3-ldb, p-cpe:/a:novell:opensuse:python3-ldb-32bit, p-cpe:/a:novell:opensuse:python3-ldb-devel, p-cpe:/a:novell:opensuse:python3-sss-murmur, p-cpe:/a:novell:opensuse:python3-sss_nss_idmap, p-cpe:/a:novell:opensuse:python3-sssd-config, p-cpe:/a:novell:opensuse:python3-talloc, p-cpe:/a:novell:opensuse:python3-talloc-32bit, p-cpe:/a:novell:opensuse:python3-talloc-devel, p-cpe:/a:novell:opensuse:python3-tdb, p-cpe:/a:novell:opensuse:python3-tdb-32bit, p-cpe:/a:novell:opensuse:python3-tevent, p-cpe:/a:novell:opensuse:python3-tevent-32bit, p-cpe:/a:novell:opensuse:ruby-apparmor, p-cpe:/a:novell:opensuse:samba, p-cpe:/a:novell:opensuse:samba-ad-dc, p-cpe:/a:novell:opensuse:samba-ad-dc-libs, p-cpe:/a:novell:opensuse:samba-ad-dc-libs-32bit, p-cpe:/a:novell:opensuse:samba-ceph, p-cpe:/a:novell:opensuse:samba-client, p-cpe:/a:novell:opensuse:samba-client-32bit, p-cpe:/a:novell:opensuse:samba-client-64bit, p-cpe:/a:novell:opensuse:samba-client-libs, p-cpe:/a:novell:opensuse:samba-client-libs-32bit, p-cpe:/a:novell:opensuse:samba-devel, p-cpe:/a:novell:opensuse:samba-devel-32bit, p-cpe:/a:novell:opensuse:samba-dsdb-modules, p-cpe:/a:novell:opensuse:samba-gpupdate, p-cpe:/a:novell:opensuse:samba-ldb-ldap, p-cpe:/a:novell:opensuse:samba-libs, p-cpe:/a:novell:opensuse:samba-libs-32bit, p-cpe:/a:novell:opensuse:samba-libs-64bit, p-cpe:/a:novell:opensuse:samba-libs-python3, p-cpe:/a:novell:opensuse:samba-libs-python3-32bit, p-cpe:/a:novell:opensuse:samba-libs-python3-64bit, p-cpe:/a:novell:opensuse:samba-python3, p-cpe:/a:novell:opensuse:samba-test, p-cpe:/a:novell:opensuse:samba-tool, p-cpe:/a:novell:opensuse:samba-winbind, p-cpe:/a:novell:opensuse:samba-winbind-libs, p-cpe:/a:novell:opensuse:samba-winbind-libs-32bit, p-cpe:/a:novell:opensuse:sssd, p-cpe:/a:novell:opensuse:sssd-ad, p-cpe:/a:novell:opensuse:sssd-common, p-cpe:/a:novell:opensuse:sssd-dbus, p-cpe:/a:novell:opensuse:sssd-ipa, p-cpe:/a:novell:opensuse:sssd-krb5, p-cpe:/a:novell:opensuse:sssd-krb5-common, p-cpe:/a:novell:opensuse:sssd-ldap, p-cpe:/a:novell:opensuse:sssd-proxy, p-cpe:/a:novell:opensuse:sssd-tools, p-cpe:/a:novell:opensuse:sssd-wbclient, p-cpe:/a:novell:opensuse:sssd-wbclient-devel, p-cpe:/a:novell:opensuse:sssd-winbind-idmap, p-cpe:/a:novell:opensuse:talloc-man, p-cpe:/a:novell:opensuse:tdb-tools, p-cpe:/a:novell:opensuse:tevent-man, cpe:/o:novell:opensuse:15.3

Required KB Items: Host/local_checks_enabled, Host/cpu, Host/SuSE/release, Host/SuSE/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/1/2022

Vulnerability Publication Date: 3/24/2021

Reference Information

CVE: CVE-2020-27840, CVE-2021-20277, CVE-2021-20316, CVE-2021-36222, CVE-2021-43566, CVE-2021-44141, CVE-2021-44142, CVE-2022-0336

IAVA: 2021-A-0140-S, 2021-A-0487-S, 2022-A-0020-S, 2022-A-0054-S

IAVB: 2021-B-0054-S