CentOS 9 : samba-4.18.5-100.el9

medium Nessus Plugin ID 191226

Synopsis

The remote CentOS host is missing one or more security updates for ctdb.

Description

The remote CentOS Linux 9 host has packages installed that are affected by multiple vulnerabilities as referenced in the samba-4.18.5-100.el9 build changelog.

- An out-of-bounds read vulnerability was found in Samba due to insufficient length checks in winbindd_pam_auth_crap.c. When performing NTLM authentication, the client replies to cryptographic challenges back to the server. These replies have variable lengths, and Winbind fails to check the lan manager response length. When Winbind is used for NTLM authentication, a maliciously crafted request can trigger an out-of-bounds read in Winbind, possibly resulting in a crash. (CVE-2022-2127)

- A vulnerability was found in Samba's SMB2 packet signing mechanism. The SMB2 packet signing is not enforced if an admin configured server signing = required or for SMB2 connections to Domain Controllers where SMB2 packet signing is mandatory. This flaw allows an attacker to perform attacks, such as a man-in- the-middle attack, by intercepting the network traffic and modifying the SMB2 messages between client and server, affecting the integrity of the data. (CVE-2023-3347)

- An infinite loop vulnerability was found in Samba's mdssvc RPC service for Spotlight. When parsing Spotlight mdssvc RPC packets sent by the client, the core unmarshalling function sl_unpack_loop() did not validate a field in the network packet that contains the count of elements in an array-like structure. By passing 0 as the count value, the attacked function will run in an endless loop consuming 100% CPU. This flaw allows an attacker to issue a malformed RPC request, triggering an infinite loop, resulting in a denial of service condition. (CVE-2023-34966)

- A Type Confusion vulnerability was found in Samba's mdssvc RPC service for Spotlight. When parsing Spotlight mdssvc RPC packets, one encoded data structure is a key-value style dictionary where the keys are character strings, and the values can be any of the supported types in the mdssvc protocol. Due to a lack of type checking in callers of the dalloc_value_for_key() function, which returns the object associated with a key, a caller may trigger a crash in talloc_get_size() when talloc detects that the passed-in pointer is not a valid talloc pointer. With an RPC worker process shared among multiple client connections, a malicious client or attacker can trigger a process crash in a shared RPC mdssvc worker process, affecting all other clients this worker serves. (CVE-2023-34967)

- A path disclosure vulnerability was found in Samba. As part of the Spotlight protocol, Samba discloses the server-side absolute path of shares, files, and directories in the results for search queries. This flaw allows a malicious client or an attacker with a targeted RPC request to view the information that is part of the disclosed path. (CVE-2023-34968)

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

Solution

Update the CentOS 9 Stream ctdb package.

See Also

https://kojihub.stream.centos.org/koji/buildinfo?buildID=35021

Plugin Details

Severity: Medium

ID: 191226

File Name: centos9_samba-4_18_5-100.nasl

Version: 1.1

Type: local

Agent: unix

Published: 2/29/2024

Updated: 4/26/2024

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5.4

Temporal Score: 4

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

CVSS Score Source: CVE-2023-3347

CVSS v3

Risk Factor: Medium

Base Score: 5.9

Temporal Score: 5.2

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

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

Vulnerability Information

CPE: cpe:/a:centos:centos:9, p-cpe:/a:centos:centos:ctdb, p-cpe:/a:centos:centos:libnetapi, p-cpe:/a:centos:centos:libnetapi-devel, p-cpe:/a:centos:centos:libsmbclient, p-cpe:/a:centos:centos:libsmbclient-devel, p-cpe:/a:centos:centos:libwbclient, p-cpe:/a:centos:centos:libwbclient-devel, p-cpe:/a:centos:centos:python3-samba, p-cpe:/a:centos:centos:python3-samba-dc, p-cpe:/a:centos:centos:python3-samba-devel, p-cpe:/a:centos:centos:python3-samba-test, p-cpe:/a:centos:centos:samba, p-cpe:/a:centos:centos:samba-client, p-cpe:/a:centos:centos:samba-client-libs, p-cpe:/a:centos:centos:samba-common, p-cpe:/a:centos:centos:samba-common-libs, p-cpe:/a:centos:centos:samba-common-tools, p-cpe:/a:centos:centos:samba-dc-libs, p-cpe:/a:centos:centos:samba-dcerpc, p-cpe:/a:centos:centos:samba-devel, p-cpe:/a:centos:centos:samba-krb5-printing, p-cpe:/a:centos:centos:samba-ldb-ldap-modules, p-cpe:/a:centos:centos:samba-libs, p-cpe:/a:centos:centos:samba-pidl, p-cpe:/a:centos:centos:samba-test, p-cpe:/a:centos:centos:samba-test-libs, p-cpe:/a:centos:centos:samba-tools, p-cpe:/a:centos:centos:samba-usershares, p-cpe:/a:centos:centos:samba-vfs-iouring, p-cpe:/a:centos:centos:samba-winbind, p-cpe:/a:centos:centos:samba-winbind-clients, p-cpe:/a:centos:centos:samba-winbind-krb5-locator, p-cpe:/a:centos:centos:samba-winbind-modules, p-cpe:/a:centos:centos:samba-winexe

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

Exploit Ease: No known exploits are available

Patch Publication Date: 7/20/2023

Vulnerability Publication Date: 7/20/2023

Reference Information

CVE: CVE-2022-2127, CVE-2023-3347, CVE-2023-34966, CVE-2023-34967, CVE-2023-34968

IAVA: 2023-A-0376-S