---
id: CVE-2022-2127
title: 'Samba: out-of-bounds read in winbind auth_crap'
summary: >-
  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 h…
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-125
vendor: Red Hat
product: samba
affected:
  - samba (all versions)
  - samba (all versions)
  - samba (all versions)
  - samba (all versions)
  - samba (all versions)
  - samba (all versions)
  - samba (all versions)
  - samba
  - samba4
  - samba
  - samba
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-12-03T15:21:45.923934Z'
published: '2023-07-20'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T08:57:19.229Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-2127'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2023:6667'
    label: 'RHSA-2023:6667'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7139'
    label: 'RHSA-2023:7139'
  - url: 'https://access.redhat.com/errata/RHSA-2024:0423'
    label: 'RHSA-2024:0423'
  - url: 'https://access.redhat.com/errata/RHSA-2024:0580'
    label: 'RHSA-2024:0580'
  - url: 'https://access.redhat.com/security/cve/CVE-2022-2127'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2222791'
    label: RHBZ#2222791
  - url: 'https://www.samba.org/samba/security/CVE-2022-2127.html'
tags:
  - cve.org
epss: 0.01722
epssPercentile: 0.77563
ingestedAt: '2026-11-05T21:36:00.798Z'
---

## Overview

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

- `samba (all versions)`
- `samba (all versions)`
- `samba (all versions)`
- `samba (all versions)`
- `samba (all versions)`
- `samba (all versions)`
- `samba (all versions)`
- `samba`
- `samba4`
- `samba`
- `samba`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
