Vulnerability · Published Jul 20, 2023 · Assigned by redhat
CVE-2022-2127Samba: out-of-bounds read in winbind auth_crap
Medium 5.9
In plain English
A medium-severity out-of-bounds read in Red Hat Enterprise Linux 6 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | ctdb | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | ctdb | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | libnetapi | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | libnetapi | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | libnetapi-devel | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | libnetapi-devel | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | libsmbclient | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | libsmbclient | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | libsmbclient-devel | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | libsmbclient-devel | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | libwbclient | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | libwbclient | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | libwbclient-devel | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | libwbclient-devel | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | python3-samba | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | python3-samba | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | python3-samba-dc | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | python3-samba-dc | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | python3-samba-devel | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | python3-samba-devel | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | python3-samba-test | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | python3-samba-test | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-client | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-client | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-client-libs | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-client-libs | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-common | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-common | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-common-libs | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-common-libs | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-common-tools | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-common-tools | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-dc-libs | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-dc-libs | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-dcerpc | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-dcerpc | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-devel | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-devel | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-krb5-printing | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-krb5-printing | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-ldb-ldap-modules | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-ldb-ldap-modules | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-libs | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-libs | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-pidl | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-pidl | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-test | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-test | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-test-libs | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-test-libs | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-tools | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-tools | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-usershares | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-usershares | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-vfs-iouring | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-vfs-iouring | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-winbind | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-winbind | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-winbind-clients | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-winbind-clients | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-winbind-krb5-locator | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-winbind-krb5-locator | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-winbind-modules | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-winbind-modules | 4.18.6-100.el9 | ALSA-2023:6667 |
| AlmaLinux:8 | samba-winexe | 4.18.6-1.el8 | ALSA-2023:7139 |
| AlmaLinux:9 | samba-winexe | 4.18.6-100.el9 | ALSA-2023:6667 |
| Debian:12 | samba | 2:4.17.10+dfsg-0+deb12u1 | DSA-5477-1 |
| Debian:12 | samba | 2:4.17.10+dfsg-0+deb12u1 | DEBIAN-CVE-2022-2127 |
| Debian:13 | samba | 2:4.18.5+dfsg-1 | DEBIAN-CVE-2022-2127 |
| Debian:14 | samba | 2:4.18.5+dfsg-1 | DEBIAN-CVE-2022-2127 |
| Rocky Linux:8 | evolution-mapi | 0:3.28.3-8.el8 | RLSA-2023:7139 |
| Rocky Linux:8 | openchange | 0:2.3-32.el8 | RLSA-2023:7139 |
| Ubuntu:22.04:LTS | samba | 2:4.15.13+dfsg-0ubuntu1.2 | USN-6238-1 |
| Ubuntu:22.04:LTS | samba | 2:4.15.13+dfsg-0ubuntu1.2 | UBUNTU-CVE-2022-2127 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Storage 3 | see references |
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- RHSA-2023:6667 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:7139 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:0423 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:0580 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2022-2127 vdb-entry, x_refsource_REDHAT
- RHBZ#2222791 issue-tracking, x_refsource_REDHAT
- https://www.samba.org/samba/security/CVE-2022-2127.html
- https://lists.debian.org/debian-lts-announce/2024/04/msg00015.html x_transferred
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BPCSGND7LO467AJGR5DYBGZLTCGTOBCC/ x_transferred
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OT74M42E6C36W7PQVY3OS4ZM7DVYB64Z/ x_transferred
- https://security.netapp.com/advisory/ntap-20230731-0010/ x_transferred
- https://www.debian.org/security/2023/dsa-5477 x_transferred