Amazon Linux AMI update for samba



Risk Medium
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2022-2127
CVE-2023-4091
CWE-ID CWE-125
CWE-264
Exploitation vector Network
Public exploit N/A
Vulnerable software
Amazon Linux AMI
Operating systems & Components / Operating system

samba
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Out-of-bounds read

EUVDB-ID: #VU78577

Risk: Medium

CVSSv3.1: 5.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-2127

CWE-ID: CWE-125 - Out-of-bounds read

Exploit availability: No

Description

The vulnerability allows a remote attacker to gain access to sensitive information or perform denial of service (DoS) attack.

The vulnerability exists due to a boundary condition in winbindd_pam_auth_crap.c in winbind AUTH_CRAP when performing NTLM authentication. A remote attacker can trigger an out-of-bounds read error and gain access to sensitive information or crash the server.

Mitigation

Update the affected packages:

i686:
    samba-winbind-4.10.16-24.68.amzn1.i686
    samba-python-test-4.10.16-24.68.amzn1.i686
    samba-krb5-printing-4.10.16-24.68.amzn1.i686
    samba-python-4.10.16-24.68.amzn1.i686
    libsmbclient-4.10.16-24.68.amzn1.i686
    samba-4.10.16-24.68.amzn1.i686
    ctdb-tests-4.10.16-24.68.amzn1.i686
    libwbclient-4.10.16-24.68.amzn1.i686
    samba-winbind-modules-4.10.16-24.68.amzn1.i686
    samba-client-4.10.16-24.68.amzn1.i686
    samba-libs-4.10.16-24.68.amzn1.i686
    samba-devel-4.10.16-24.68.amzn1.i686
    samba-test-libs-4.10.16-24.68.amzn1.i686
    samba-common-tools-4.10.16-24.68.amzn1.i686
    samba-winbind-krb5-locator-4.10.16-24.68.amzn1.i686
    ctdb-4.10.16-24.68.amzn1.i686
    libsmbclient-devel-4.10.16-24.68.amzn1.i686
    samba-common-libs-4.10.16-24.68.amzn1.i686
    samba-debuginfo-4.10.16-24.68.amzn1.i686
    samba-test-4.10.16-24.68.amzn1.i686
    samba-client-libs-4.10.16-24.68.amzn1.i686
    libwbclient-devel-4.10.16-24.68.amzn1.i686
    samba-winbind-clients-4.10.16-24.68.amzn1.i686

noarch:
    samba-pidl-4.10.16-24.68.amzn1.noarch
    samba-common-4.10.16-24.68.amzn1.noarch

src:
    samba-4.10.16-24.68.amzn1.src

x86_64:
    samba-python-test-4.10.16-24.68.amzn1.x86_64
    samba-winbind-4.10.16-24.68.amzn1.x86_64
    samba-debuginfo-4.10.16-24.68.amzn1.x86_64
    libsmbclient-4.10.16-24.68.amzn1.x86_64
    samba-winbind-modules-4.10.16-24.68.amzn1.x86_64
    samba-test-libs-4.10.16-24.68.amzn1.x86_64
    samba-test-4.10.16-24.68.amzn1.x86_64
    samba-winbind-clients-4.10.16-24.68.amzn1.x86_64
    samba-libs-4.10.16-24.68.amzn1.x86_64
    samba-winbind-krb5-locator-4.10.16-24.68.amzn1.x86_64
    samba-krb5-printing-4.10.16-24.68.amzn1.x86_64
    libwbclient-devel-4.10.16-24.68.amzn1.x86_64
    ctdb-4.10.16-24.68.amzn1.x86_64
    samba-client-4.10.16-24.68.amzn1.x86_64
    libsmbclient-devel-4.10.16-24.68.amzn1.x86_64
    samba-common-tools-4.10.16-24.68.amzn1.x86_64
    samba-4.10.16-24.68.amzn1.x86_64
    samba-devel-4.10.16-24.68.amzn1.x86_64
    samba-common-libs-4.10.16-24.68.amzn1.x86_64
    libwbclient-4.10.16-24.68.amzn1.x86_64
    ctdb-tests-4.10.16-24.68.amzn1.x86_64
    samba-python-4.10.16-24.68.amzn1.x86_64
    samba-client-libs-4.10.16-24.68.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

samba: before 4.10.16-24.68

CPE2.3 External links

http://alas.aws.amazon.com/ALAS-2023-1896.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Permissions, Privileges, and Access Controls

EUVDB-ID: #VU81872

Risk: Low

CVSSv3.1: 3.8 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-4091

CWE-ID: CWE-264 - Permissions, Privileges, and Access Controls

Exploit availability: No

Description

The vulnerability allows a remote user to truncate read-only files.

The vulnerability exists due to an error in the way SMB protocol implementation in Samba handles file operations. A remote user can request read-only access to files and then truncate them to 0 bytes by opening files with OVERWRITE disposition when using the acl_xattr Samba VFS module with the smb.conf setting "acl_xattr:ignore system acls = yes".

Mitigation

Update the affected packages:

i686:
    samba-winbind-4.10.16-24.68.amzn1.i686
    samba-python-test-4.10.16-24.68.amzn1.i686
    samba-krb5-printing-4.10.16-24.68.amzn1.i686
    samba-python-4.10.16-24.68.amzn1.i686
    libsmbclient-4.10.16-24.68.amzn1.i686
    samba-4.10.16-24.68.amzn1.i686
    ctdb-tests-4.10.16-24.68.amzn1.i686
    libwbclient-4.10.16-24.68.amzn1.i686
    samba-winbind-modules-4.10.16-24.68.amzn1.i686
    samba-client-4.10.16-24.68.amzn1.i686
    samba-libs-4.10.16-24.68.amzn1.i686
    samba-devel-4.10.16-24.68.amzn1.i686
    samba-test-libs-4.10.16-24.68.amzn1.i686
    samba-common-tools-4.10.16-24.68.amzn1.i686
    samba-winbind-krb5-locator-4.10.16-24.68.amzn1.i686
    ctdb-4.10.16-24.68.amzn1.i686
    libsmbclient-devel-4.10.16-24.68.amzn1.i686
    samba-common-libs-4.10.16-24.68.amzn1.i686
    samba-debuginfo-4.10.16-24.68.amzn1.i686
    samba-test-4.10.16-24.68.amzn1.i686
    samba-client-libs-4.10.16-24.68.amzn1.i686
    libwbclient-devel-4.10.16-24.68.amzn1.i686
    samba-winbind-clients-4.10.16-24.68.amzn1.i686

noarch:
    samba-pidl-4.10.16-24.68.amzn1.noarch
    samba-common-4.10.16-24.68.amzn1.noarch

src:
    samba-4.10.16-24.68.amzn1.src

x86_64:
    samba-python-test-4.10.16-24.68.amzn1.x86_64
    samba-winbind-4.10.16-24.68.amzn1.x86_64
    samba-debuginfo-4.10.16-24.68.amzn1.x86_64
    libsmbclient-4.10.16-24.68.amzn1.x86_64
    samba-winbind-modules-4.10.16-24.68.amzn1.x86_64
    samba-test-libs-4.10.16-24.68.amzn1.x86_64
    samba-test-4.10.16-24.68.amzn1.x86_64
    samba-winbind-clients-4.10.16-24.68.amzn1.x86_64
    samba-libs-4.10.16-24.68.amzn1.x86_64
    samba-winbind-krb5-locator-4.10.16-24.68.amzn1.x86_64
    samba-krb5-printing-4.10.16-24.68.amzn1.x86_64
    libwbclient-devel-4.10.16-24.68.amzn1.x86_64
    ctdb-4.10.16-24.68.amzn1.x86_64
    samba-client-4.10.16-24.68.amzn1.x86_64
    libsmbclient-devel-4.10.16-24.68.amzn1.x86_64
    samba-common-tools-4.10.16-24.68.amzn1.x86_64
    samba-4.10.16-24.68.amzn1.x86_64
    samba-devel-4.10.16-24.68.amzn1.x86_64
    samba-common-libs-4.10.16-24.68.amzn1.x86_64
    libwbclient-4.10.16-24.68.amzn1.x86_64
    ctdb-tests-4.10.16-24.68.amzn1.x86_64
    samba-python-4.10.16-24.68.amzn1.x86_64
    samba-client-libs-4.10.16-24.68.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

samba: before 4.10.16-24.68

CPE2.3 External links

http://alas.aws.amazon.com/ALAS-2023-1896.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###