CVE-2022-2127

Samba: out-of-bounds read in winbind auth_crap

MEDIUM
5.9
CVSS Score
Published: July 20, 2023 at 02:49 PM UTC
Updated: June 17, 2026 at 04:41 AM UTC
4 products affected across 4 vendorsDebian LinuxFedoraEnterprise Linux

Using Red Hat Enterprise Linux 8 by Red Hat?

Get instant alerts when new vulnerabilities affect Red Hat Enterprise Linux 8 - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.9
Exploit prediction
EPSS 2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Vendor states this is fixed in 0:4.15.5-15.el8_6 (unaffected)
Vendor states this is fixed in 0:4.17.5-5.el8_8 (unaffected)
Vendor states this is fixed in 0:4.18.6-1.el8 (unaffected)
Vendor states this is fixed in 0:4.18.6-100.el9 (unaffected)
Vendor states this is fixed in 6 (unknown)
Vendor states this is fixed in 7 (unknown)
4.16.0 ≤ v < 4.16.104.17.0 ≤ v < 4.17.94.18.0 ≤ v < 4.18.4
Affected range stops below 4.16.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.17.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.18.4, so it looks safe — our inference, not a vendor statement

References (12)

Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:6667
Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:7139
VDB Entryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/security/cve/CVE-2022-2127
Issue Trackingx_refsource_REDHATThird Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2222791
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2024/04/msg00015.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.9MEDIUMredhat
Attack Vector
NETWORK
Complexity
HIGH
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card