[Debian] High CVE: CVE-2022-2127/CVE-2022-3437/CVE-2023-34966/CVE-2023-34967/CVE-2023-34968 samba : multiple CVEs

Bug #2058868 reported by Yue Tao
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Wentao Zhang

Bug Description

CVE-2022-2127: https://nvd.nist.gov/vuln/detail/CVE-2022-2127

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-3437: https://nvd.nist.gov/vuln/detail/CVE-2022-3437

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.

CVE-2023-4091: https://nvd.nist.gov/vuln/detail/CVE-2023-4091

A vulnerability was discovered in Samba, where the flaw allows SMB clients to truncate files, even with read-only permissions when the Samba VFS module "acl_xattr" is configured with "acl_xattr:ignore system acls = yes". The SMB protocol allows opening files when the client requests read-only access but then implicitly truncates the opened file to 0 bytes if the client specifies a separate OVERWRITE create disposition request. The issue arises in configurations that bypass kernel file system permissions checks, relying solely on Samba's permissions.

CVE-2023-34966: https://nvd.nist.gov/vuln/detail/CVE-2023-34966

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-34967: https://nvd.nist.gov/vuln/detail/CVE-2023-34967

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-34968: https://nvd.nist.gov/vuln/detail/CVE-2023-34968

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.

Base Score: High


['libsmbclient_2:4.13.13+dfsg-1~deb11u5_amd64.deb===>libsmbclient_2:4.13.13+dfsg-1~deb11u6_amd64.deb', 'libwbclient0_2:4.13.13+dfsg-1~deb11u5_amd64.deb===>libwbclient0_2:4.13.13+dfsg-1~deb11u6_amd64.deb', 'samba-libs_2:4.13.13+dfsg-1~deb11u5_amd64.deb===>samba-libs_2:4.13.13+dfsg-1~deb11u6_amd64.deb']

Ghada Khalil (gkhalil)
tags: added: stx.10.0
removed: stx.9.0
summary: [Debian] High CVE:
- CVE-2022-2127/CVE-2022-3437/.../CVE-2023-34967/CVE-2023-34968 samba :
- multiple CVEs
+ CVE-2022-2127/CVE-2022-3437/CVE-2023-34966/CVE-2023-34967/CVE-2023-34968
+ samba : multiple CVEs
Wentao Zhang (wzhang4)
Changed in starlingx:
assignee: nobody → Wentao Zhang (wzhang4)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/tools/+/917286

Changed in starlingx:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (master)

Reviewed: https://review.opendev.org/c/starlingx/tools/+/917286
Committed: https://opendev.org/starlingx/tools/commit/8dea40d0250eb0bae049e7125f71cd6f23df8c16
Submitter: "Zuul (22348)"
Branch: master

commit 8dea40d0250eb0bae049e7125f71cd6f23df8c16
Author: Wentao Zhang <email address hidden>
Date: Wed Apr 17 18:44:08 2024 -0700

    Debian: samba : fix multiple CVEs

    Upgrade samba-libs, libwbclient0, libsmbclient to:


    Refer to:
    CVE-2022-2127: https://nvd.nist.gov/vuln/detail/CVE-2022-2127
    CVE-2022-3437: https://nvd.nist.gov/vuln/detail/CVE-2022-3437
    CVE-2023-4091: https://nvd.nist.gov/vuln/detail/CVE-2023-4091
    CVE-2023-34966: https://nvd.nist.gov/vuln/detail/CVE-2023-34966
    CVE-2023-34967: https://nvd.nist.gov/vuln/detail/CVE-2023-34967
    CVE-2023-34968: https://nvd.nist.gov/vuln/detail/CVE-2023-34968

    Test Plan:
    Pass: downloader
    Pass: build-pkgs --clean --all
    Pass: build-image
    Pass: boot

    Closes-bug: #2058868

    Signed-off-by: Wentao Zhang <email address hidden>
    Change-Id: I86d5c03f410d3f00d8ff990e3f48dadff3361f41

Changed in starlingx:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.