Bug 13935

Summary: [CVE 21] samba 4.15.5 CVEs found
Product: [ROSA-based products] ROSA Fresh Reporter: Yury <y.tumanov>
Component: System (kernel, glibc, systemd, bash, PAM...)Assignee: ROSA Linux Bugs <bugs>
Status: RESOLVED FIXED QA Contact: ROSA Linux Bugs <bugs>
Severity: blocker    
Priority: Highest CC: e.kosachev, i.gaptrakhmanov, s.matveev, v.potapov, y.tumanov
Version: AllFlags: v.potapov: secteam_verified+
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: CVE-2018-14628, CVE-2018-14629, CVE-2018-16841, CVE-2018-16851, CVE-2018-16852, CVE-2018-16853, CVE-2018-16857, CVE-2018-16860, CVE-2021-20251, CVE-2021-20254, CVE-2021-20277, CVE-2021-23192, CVE-2021-3670, CVE-2021-3671, CVE-2021-3738, CVE-2021-44142, CVE-2022-1615, CVE-2022-2031, CVE-2022-32742, CVE-2022-32743, CVE-2022-32744, CVE-2022-32745, CVE-2022-32746, CVE-2022-3437, CVE-2022-42898, CVE-2022-44640, CVE-2022-45141, CVE-2023-0614, CVE-2023-0922, CVE-2023-34966, CVE-2023-34967, CVE-2023-34968,
Whiteboard:
Platform: 2021.1 ROSA Vulnerability identifier:
RPM Package: ISO-related:
Bad POT generating: Upstream:

Description Yury 2023-10-18 20:30:50 MSK
Please patch CVEs for package samba version 4.15.5
  
INFO (CVEs are): samba 4.15.5
 cves found
CVE-2018-14628
Desc: An information leak vulnerability was discovered in Samba's LDAP server. Due to missing access control checks, an authenticated but unprivileged attacker could discover the names and preserved attributes of deleted objects in the LDAP store.
Link: https://nvd.nist.gov/vuln/detail/CVE-2018-14628
Severity: MEDIUM
CVE-2018-14629
Desc: A denial of service vulnerability was discovered in Samba's LDAP server before versions 4.7.12, 4.8.7, and 4.9.3. A CNAME loop could lead to infinite recursion in the server. An unprivileged local attacker could create such an entry, leading to denial of service.
Link: https://nvd.nist.gov/vuln/detail/CVE-2018-14629
Severity: MEDIUM
CVE-2018-16841
Desc: Samba from version 4.3.0 and before versions 4.7.12, 4.8.7 and 4.9.3 are vulnerable to a denial of service. When configured to accept smart-card authentication, Samba's KDC will call talloc_free() twice on the same memory if the principal in a validly signed certificate does not match the principal in the AS-REQ. This is only possible after authentication with a trusted certificate. talloc is robust against further corruption from a double-free with talloc_free() and directly calls abort(), terminating the KDC process.
Link: https://nvd.nist.gov/vuln/detail/CVE-2018-16841
Severity: MEDIUM
CVE-2018-16851
Desc: Samba from version 4.0.0 and before versions 4.7.12, 4.8.7, 4.9.3 is vulnerable to a denial of service. During the processing of an LDAP search before Samba's AD DC returns the LDAP entries to the client, the entries are cached in a single memory object with a maximum size of 256MB. When this size is reached, the Samba process providing the LDAP service will follow the NULL pointer, terminating the process. There is no further vulnerability associated with this issue, merely a denial of service.
Link: https://nvd.nist.gov/vuln/detail/CVE-2018-16851
Severity: MEDIUM
CVE-2018-16852
Desc: Samba from version 4.9.0 and before version 4.9.3 is vulnerable to a NULL pointer de-reference. During the processing of an DNS zone in the DNS management DCE/RPC server, the internal DNS server or the Samba DLZ plugin for BIND9, if the DSPROPERTY_ZONE_MASTER_SERVERS property or DSPROPERTY_ZONE_SCAVENGING_SERVERS property is set, the server will follow a NULL pointer and terminate. There is no further vulnerability associated with this issue, merely a denial of service.
Link: https://nvd.nist.gov/vuln/detail/CVE-2018-16852
Severity: MEDIUM
CVE-2018-16853
Desc: Samba from version 4.7.0 has a vulnerability that allows a user in a Samba AD domain to crash the KDC when Samba is built in the non-default MIT Kerberos configuration. With this advisory the Samba Team clarify that the MIT Kerberos build of the Samba AD DC is considered experimental. Therefore the Samba Team will not issue security patches for this configuration. Additionally, Samba 4.7.12, 4.8.7 and 4.9.3 have been issued as security releases to prevent building of the AD DC with MIT Kerberos unless --with-experimental-mit-ad-dc is specified to the configure command.
Link: https://nvd.nist.gov/vuln/detail/CVE-2018-16853
Severity: MEDIUM
CVE-2018-16857
Desc: Samba from version 4.9.0 and before version 4.9.3 that have AD DC configurations watching for bad passwords (to restrict brute forcing of passwords) in a window of more than 3 minutes may not watch for bad passwords at all. The primary risk from this issue is with regards to domains that have been upgraded from Samba 4.8 and earlier. In these cases the manual testing done to confirm an organisation's password policies apply as expected may not have been re-done after the upgrade.
Link: https://nvd.nist.gov/vuln/detail/CVE-2018-16857
Severity: MEDIUM
CVE-2018-16860
Desc: A flaw was found in samba's Heimdal KDC implementation, versions 4.8.x up to, excluding 4.8.12, 4.9.x up to, excluding 4.9.8 and 4.10.x up to, excluding 4.10.3, when used in AD DC mode. A man in the middle attacker could use this flaw to intercept the request to the KDC and replace the user name (principal) in the request with any desired user name (principal) that exists in the KDC effectively obtaining a ticket for that principal.
Link: https://nvd.nist.gov/vuln/detail/CVE-2018-16860
Severity: HIGH
CVE-2021-20251
Desc: A flaw was found in samba. A race condition in the password lockout code may lead to the risk of brute force attacks being successful if special conditions are met.
Link: https://nvd.nist.gov/vuln/detail/CVE-2021-20251
Severity: MEDIUM
CVE-2021-20254
Desc: A flaw was found in samba. The Samba smbd file server must map Windows group identities (SIDs) into unix group ids (gids). The code that performs this had a flaw that could allow it to read data beyond the end of the array in the case where a negative cache entry had been added to the mapping cache. This could cause the calling code to return those values into the process token that stores the group membership for a user. The highest threat from this vulnerability is to data confidentiality and integrity.
Link: https://nvd.nist.gov/vuln/detail/CVE-2021-20254
Severity: MEDIUM
CVE-2021-20277
Desc: 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.
Link: https://nvd.nist.gov/vuln/detail/CVE-2021-20277
Severity: HIGH
CVE-2021-23192
Desc: A flaw was found in the way samba implemented DCE/RPC. If a client to a Samba server sent a very large DCE/RPC request, and chose to fragment it, an attacker could replace later fragments with their own data, bypassing the signature requirements.
Link: https://nvd.nist.gov/vuln/detail/CVE-2021-23192
Severity: HIGH
CVE-2021-3670
Desc: MaxQueryDuration not honoured in Samba AD DC LDAP
Link: https://nvd.nist.gov/vuln/detail/CVE-2021-3670
Severity: MEDIUM
CVE-2021-3671
Desc: A null pointer de-reference was found in the way samba kerberos server handled missing sname in TGS-REQ (Ticket Granting Server - Request). An authenticated user could use this flaw to crash the samba server.
Link: https://nvd.nist.gov/vuln/detail/CVE-2021-3671
Severity: MEDIUM
CVE-2021-3738
Desc: In DCE/RPC it is possible to share the handles (cookies for resource state) between multiple connections via a mechanism called 'association groups'. These handles can reference connections to our sam.ldb database. However while the database was correctly shared, the user credentials state was only pointed at, and when one connection within that association group ended, the database would be left pointing at an invalid 'struct session_info'. The most likely outcome here is a crash, but it is possible that the use-after-free could instead allow different user state to be pointed at and this might allow more privileged access.
Link: https://nvd.nist.gov/vuln/detail/CVE-2021-3738
Severity: HIGH
CVE-2021-44142
Desc: The Samba vfs_fruit module uses extended file attributes (EA, xattr) to provide "...enhanced compatibility with Apple SMB clients and interoperability with a Netatalk 3 AFP fileserver." Samba versions prior to 4.13.17, 4.14.12 and 4.15.5 with vfs_fruit configured allow out-of-bounds heap read and write via specially crafted extended file attributes. A remote attacker with write access to extended file attributes can execute arbitrary code with the privileges of smbd, typically root.
Link: https://nvd.nist.gov/vuln/detail/CVE-2021-44142
Severity: HIGH
CVE-2022-1615
Desc: In Samba, GnuTLS gnutls_rnd() can fail and give predictable random values.
Link: https://nvd.nist.gov/vuln/detail/CVE-2022-1615
Severity: MEDIUM
CVE-2022-2031
Desc: A flaw was found in Samba. The security vulnerability occurs when KDC and the kpasswd service share a single account and set of keys, allowing them to decrypt each other's tickets. A user who has been requested to change their password, can exploit this flaw to obtain and use tickets to other services.
Link: https://nvd.nist.gov/vuln/detail/CVE-2022-2031
Severity: HIGH
CVE-2022-32742
Desc: A flaw was found in Samba. Some SMB1 write requests were not correctly range-checked to ensure the client had sent enough data to fulfill the write, allowing server memory contents to be written into the file (or printer) instead of client-supplied data. The client cannot control the area of the server memory written to the file (or printer).
Link: https://nvd.nist.gov/vuln/detail/CVE-2022-32742
Severity: MEDIUM
CVE-2022-32743
Desc: Samba does not validate the Validated-DNS-Host-Name right for the dNSHostName attribute which could permit unprivileged users to write it.
Link: https://nvd.nist.gov/vuln/detail/CVE-2022-32743
Severity: HIGH
CVE-2022-32744
Desc: A flaw was found in Samba. The KDC accepts kpasswd requests encrypted with any key known to it. By encrypting forged kpasswd requests with its own key, a user can change other users' passwords, enabling full domain takeover.
Link: https://nvd.nist.gov/vuln/detail/CVE-2022-32744
Severity: HIGH
CVE-2022-32745
Desc: A flaw was found in Samba. Samba AD users can cause the server to access uninitialized data with an LDAP add or modify the request, usually resulting in a segmentation fault.
Link: https://nvd.nist.gov/vuln/detail/CVE-2022-32745
Severity: HIGH
CVE-2022-32746
Desc: A flaw was found in the Samba AD LDAP server. The AD DC database audit logging module can access LDAP message values freed by a preceding database module, resulting in a use-after-free issue. This issue is only possible when modifying certain privileged attributes, such as userAccountControl.
Link: https://nvd.nist.gov/vuln/detail/CVE-2022-32746
Severity: MEDIUM
CVE-2022-3437
Desc: A heap-based buffer overflow vulnerability was found in Samba within the GSSAPI unwrap_des() and unwrap_des3() routines of Heimdal. The DES and Triple-DES decryption routines in the Heimdal GSSAPI library allow a length-limited write buffer overflow on malloc() allocated memory when presented with a maliciously small packet. This flaw allows a remote user to send specially crafted malicious data to the application, possibly resulting in a denial of service (DoS) attack.
Link: https://nvd.nist.gov/vuln/detail/CVE-2022-3437
Severity: MEDIUM
CVE-2022-42898
Desc: PAC parsing in MIT Kerberos 5 (aka krb5) before 1.19.4 and 1.20.x before 1.20.1 has integer overflows that may lead to remote code execution (in KDC, kadmind, or a GSS or Kerberos application server) on 32-bit platforms (which have a resultant heap-based buffer overflow), and cause a denial of service on other platforms. This occurs in krb5_pac_parse in lib/krb5/krb/pac.c. Heimdal before 7.7.1 has "a similar bug."
Link: https://nvd.nist.gov/vuln/detail/CVE-2022-42898
Severity: HIGH
CVE-2022-44640
Desc: Heimdal before 7.7.1 allows remote attackers to execute arbitrary code because of an invalid free in the ASN.1 codec used by the Key Distribution Center (KDC).
Link: https://nvd.nist.gov/vuln/detail/CVE-2022-44640
Severity: CRITICAL
CVE-2022-45141
Desc: Since the Windows Kerberos RC4-HMAC Elevation of Privilege Vulnerability was disclosed by Microsoft on Nov 8 2022 and per RFC8429 it is assumed that rc4-hmac is weak, Vulnerable Samba Active Directory DCs will issue rc4-hmac encrypted tickets despite the target server supporting better encryption (eg aes256-cts-hmac-sha1-96).
Link: https://nvd.nist.gov/vuln/detail/CVE-2022-45141
Severity: CRITICAL
CVE-2023-0614
Desc: The fix in 4.6.16, 4.7.9, 4.8.4 and 4.9.7 for CVE-2018-10919 Confidential attribute disclosure vi LDAP filters was insufficient and an attacker may be able to obtain confidential BitLocker recovery keys from a Samba AD DC.
Link: https://nvd.nist.gov/vuln/detail/CVE-2023-0614
Severity: MEDIUM
CVE-2023-0922
Desc: The Samba AD DC administration tool, when operating against a remote LDAP server, will by default send new or reset passwords over a signed-only connection.
Link: https://nvd.nist.gov/vuln/detail/CVE-2023-0922
Severity: MEDIUM
CVE-2023-34966
Desc: 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.
Link: https://nvd.nist.gov/vuln/detail/CVE-2023-34966
Severity: HIGH
CVE-2023-34967
Desc: 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.
Link: https://nvd.nist.gov/vuln/detail/CVE-2023-34967
Severity: MEDIUM
CVE-2023-34968
Desc: 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.
Link: https://nvd.nist.gov/vuln/detail/CVE-2023-34968
Severity: MEDIUM
Comment 1 Yury 2023-10-19 22:58:02 MSK
*** Bug 13803 has been marked as a duplicate of this bug. ***
Comment 2 Vladimir Potapov 2023-10-20 11:49:44 MSK
*** Bug 13485 has been marked as a duplicate of this bug. ***
Comment 3 Vladimir Potapov 2023-10-20 11:50:16 MSK
*** Bug 13310 has been marked as a duplicate of this bug. ***
Comment 4 ilfat 2024-01-15 15:40:23 MSK
В rosa2021.15 samba версии 4.19.3, в которой все перечисленные CVE исправлены.

Осталось перенести её в rosa2021.1
Comment 5 Vladimir Potapov 2024-04-04 11:33:58 MSK
Закрыто обновлением самбы