CVEfocus › CVE database › CVE-2022-2127

CVE-2022-2127Samba: out-of-bounds read in winbind auth_crap

CVSS 5.9 MediumEPSS 1.7% (higher than 78% of CVEs)Published 2023-07-20Updated 2026-11-05Assigner: redhat

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.

CWE-125

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

143Fixed
3Fix pending
56Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04sambaFixed2:4.15.13+dfsg-0ubuntu1.2UBUNTU-CVE-2022-2127
Ubuntu 20.04sambaFixed2:4.15.13+dfsg-0ubuntu0.20.04.3UBUNTU-CVE-2022-2127
Ubuntu 18.04sambaFix pendingUBUNTU-CVE-2022-2127
Ubuntu 16.04sambaFix pendingUBUNTU-CVE-2022-2127
Ubuntu 14.04sambaFix pendingUBUNTU-CVE-2022-2127
Debian 14sambaFixed2:4.18.5+dfsg-1DEBIAN-CVE-2022-2127
Debian 13sambaFixed2:4.18.5+dfsg-1DEBIAN-CVE-2022-2127
Debian 12sambaFixed2:4.17.10+dfsg-0+deb12u1DEBIAN-CVE-2022-2127
Red Hat Enterprise Linux 9ctdbFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9libnetapiFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9libnetapi-develFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9libsmbclientFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9libsmbclient-develFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9libwbclientFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9libwbclient-develFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9python3-sambaFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9python3-samba-dcFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9python3-samba-develFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9python3-samba-testFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9sambaFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-clientFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-client-libsFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-commonFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-common-libsFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-common-toolsFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-dc-libsFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-dcerpcFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-develFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-krb5-printingFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-ldb-ldap-modulesFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-libsFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-pidlFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-testFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-test-libsFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-toolsFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-usersharesFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-vfs-iouringFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-winbindFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-winbind-clientsFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-winbind-krb5-locatorFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-winbind-modulesFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 9samba-winexeFixed0:4.18.6-100.el9RHSA-2023:6667
Red Hat Enterprise Linux 8ctdbFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8libnetapiFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8libnetapi-develFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8libsmbclientFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8libsmbclient-develFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8libwbclientFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8libwbclient-develFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8python3-sambaFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8python3-samba-dcFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8python3-samba-develFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8python3-samba-testFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8sambaFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-clientFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-client-libsFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-commonFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-common-libsFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-common-toolsFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-dc-libsFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-dcerpcFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-develFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-krb5-printingFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-ldb-ldap-modulesFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-libsFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-pidlFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-testFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-test-libsFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-toolsFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-usersharesFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-vfs-iouringFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-winbindFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-winbind-clientsFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-winbind-krb5-locatorFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-winbind-modulesFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 8samba-winexeFixed0:4.18.6-1.el8RHSA-2023:7139
Red Hat Enterprise Linux 7ctdbWill not fix
Out of support scope
Red Hat Enterprise Linux 7ctdb-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7ctdb-testsWill not fix
Out of support scope
Red Hat Enterprise Linux 7libsmbclientWill not fix
Out of support scope
Red Hat Enterprise Linux 7libsmbclient-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7libwbclientWill not fix
Out of support scope
Red Hat Enterprise Linux 7libwbclient-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7sambaWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-clientWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-client-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-common-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-common-toolsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-dcWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-dc-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-krb5-printingWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-pidlWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-python-testWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-testWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-test-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-test-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-vfs-glusterfsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-winbindWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-winbind-clientsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-winbind-krb5-locatorWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-winbind-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 6libsmbclientWill not fix
Out of support scope
Red Hat Enterprise Linux 6libsmbclient-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6sambaWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-clientWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-docWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-domainjoin-guiWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-glusterfsWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-swatWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-winbindWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-winbind-clientsWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-winbind-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-winbind-krb5-locatorWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4Will not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-clientWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-dcWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-dc-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-pidlWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-swatWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-testWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-winbindWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-winbind-clientsWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-winbind-krb5-locatorWill not fix
Out of support scope
AlmaLinux 9ctdbFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9libnetapiFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9libnetapi-develFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9libsmbclientFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9libsmbclient-develFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9libwbclientFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9libwbclient-develFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9python3-sambaFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9python3-samba-dcFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9python3-samba-develFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9python3-samba-testFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9sambaFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-clientFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-client-libsFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-commonFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-common-libsFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-common-toolsFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-dc-libsFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-dcerpcFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-develFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-krb5-printingFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-ldb-ldap-modulesFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-libsFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-pidlFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-testFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-test-libsFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-toolsFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-usersharesFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-vfs-iouringFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-winbindFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-winbind-clientsFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-winbind-krb5-locatorFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-winbind-modulesFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 9samba-winexeFixed4.18.6-100.el9ALSA-2023:6667
AlmaLinux 8ctdbFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8libnetapiFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8libnetapi-develFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8libsmbclientFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8libsmbclient-develFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8libwbclientFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8libwbclient-develFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8python3-sambaFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8python3-samba-dcFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8python3-samba-develFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8python3-samba-testFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8sambaFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-clientFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-client-libsFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-commonFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-common-libsFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-common-toolsFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-dc-libsFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-dcerpcFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-develFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-krb5-printingFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-ldb-ldap-modulesFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-libsFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-pidlFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-testFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-test-libsFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-toolsFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-usersharesFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-vfs-iouringFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-winbindFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-winbind-clientsFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-winbind-krb5-locatorFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-winbind-modulesFixed4.18.6-1.el8ALSA-2023:7139
AlmaLinux 8samba-winexeFixed4.18.6-1.el8ALSA-2023:7139
Rocky Linux 8evolution-mapiFixed0:3.28.3-8.el8RLSA-2023:7139
Rocky Linux 8openchangeFixed0:2.3-32.el8RLSA-2023:7139

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.