Bug 13310

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: Mikhail Novosyolov <m.novosyolov>
Status: RESOLVED DUPLICATE QA Contact: ROSA Linux Bugs <bugs>
Severity: normal    
Priority: Normal CC: m.novosyolov, s.matveev, v.potapov, y.tumanov
Version: All   
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-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-45141, CVE-2023-0922,
Whiteboard:
Platform: 2021.1 ROSA Vulnerability identifier:
RPM Package: ISO-related:
Bad POT generating: Upstream:

Description Yury 2023-05-03 18:02:34 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-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-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-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
Comment 1 Vladimir Potapov 2023-10-20 11:50:16 MSK

*** This bug has been marked as a duplicate of bug 13935 ***