What’s Vulnerable › Vulnerabilities
CVE-2022-2127: Samba: out-of-bounds read in winbind auth_crap
- Severity: medium (CVSS 5.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-07-20 · updated 2026-06-17
- Weakness: CWE-125
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 products
- Debian Linux: 12.0
- Fedoraproject Fedora: 37, 38
- Red Hat Enterprise Linux: 6.0, 7.0, 8.0, 9.0
- Samba: from 4.16.0 before 4.16.10; from 4.17.0 before 4.17.9; from 4.18.0 before 4.18.4 — fixed in 4.16.10, 4.17.9, 4.18.4
How to fix
Upgrade to a fixed version: Samba 4.16.10, 4.17.9, 4.18.4. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHSA-2023:6667
- https://access.redhat.com/errata/RHSA-2023:7139
- https://access.redhat.com/errata/RHSA-2024:0423
- https://access.redhat.com/errata/RHSA-2024:0580
- https://access.redhat.com/security/cve/CVE-2022-2127
- https://bugzilla.redhat.com/show_bug.cgi?id=2222791
- https://www.samba.org/samba/security/CVE-2022-2127.html
- https://access.redhat.com/errata/RHSA-2023:6667
- https://access.redhat.com/errata/RHSA-2023:7139
- https://access.redhat.com/errata/RHSA-2024:0423
- https://access.redhat.com/errata/RHSA-2024:0580
- https://access.redhat.com/security/cve/CVE-2022-2127
Get alerted when CVE-2022-2127 or the next vulnerability affects your stack