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

- Severity: Medium 5.9 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.82%, higher than 79% of CVEs (2026-12-01)
- Published: 2023-07-20T14:49:49.422Z
- Modified: 2026-11-26T17:17:00.303Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- samba: no versions given (not affected: from 0:4.18.6-1.el8 before *; from 0:4.15.5-15.el8_6 before *; from 0:4.17.5-5.el8_8 before *; from 0:4.18.6-100.el9 before *)
- samba4: no versions given
- samba 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
- redhat enterprise_linux: 6.0; 7.0; 8.0; 9.0
- fedoraproject fedora: 37; 38
- debian debian_linux: 12.0

## Every score

- redhat: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://access.redhat.com/errata/RHSA-2023:6667> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7139> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0423> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0580> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2022-2127> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2222791> (issue-tracking, third-party-advisory)
- <https://www.samba.org/samba/security/CVE-2022-2127.html> (mitigation, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/04/msg00015.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BPCSGND7LO467AJGR5DYBGZLTCGTOBCC/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OT74M42E6C36W7PQVY3OS4ZM7DVYB64Z/>
- <https://security.netapp.com/advisory/ntap-20230731-0010/>
- <https://www.debian.org/security/2023/dsa-5477>

## Sources

- CVE List: [CVE-2022-2127](https://www.cve.org/CVERecord?id=CVE-2022-2127), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2022-2127](https://nvd.nist.gov/vuln/detail/CVE-2022-2127), Public domain, modified 2026-11-26

---

Page: https://cve.day/CVE-2022-2127 · Whole record: https://cve.day/CVE-2022-2127.json · Rebuilt by cve.day 2026-11-26T17:17:33.901Z
