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

Published Jul 13, 2023
·
Updated

An out-of-bounds read vulnerability was found in Samba due to insufficient length checks in winbinddpamauthcrap.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.

Other sources

When winbind is used for NTLM authentication, a maliciously crafted request can trigger an out-of-bounds read in winbind and possibly crash it.

Red Hat

Affected Software

19 affected componentsFixes available
ubuntu/samba<2:4.15.13+dfsg-0ubuntu0.20.04.3
2:4.15.13+dfsg-0ubuntu0.20.04.3
ubuntu/samba<2:4.15.13+dfsg-0ubuntu1.2
2:4.15.13+dfsg-0ubuntu1.2
ubuntu/samba<2:4.16.8+dfsg-0ubuntu1.2
2:4.16.8+dfsg-0ubuntu1.2
ubuntu/samba<2:4.17.7+dfsg-1ubuntu1.1
2:4.17.7+dfsg-1ubuntu1.1
ubuntu/samba<2:4.18.5+dfsg-1ubuntu1
2:4.18.5+dfsg-1ubuntu1
debian/samba<=2:4.9.5+dfsg-5+deb10u3, <=2:4.9.5+dfsg-5+deb10u4, <=2:4.13.13+dfsg-1~deb11u5
2:4.17.12+dfsg-0+deb12u12:4.19.3+dfsg-2
redhat/samba<4.16.11
4.16.11
redhat/samba<4.17.10
4.17.10
redhat/samba<4.18.5
4.18.5
Samba Samba>=4.16.0<4.16.10
Samba Samba>=4.17.0<4.17.9
Samba Samba>=4.18.0<4.18.4
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
Fedoraproject Fedora=37
Fedoraproject Fedora=38
Debian Debian Linux=12.0

Event History

Jul 19, 2023
CVE Published
12:00 AM
Jul 20, 2023
CVE Published
via MITRE·02:49 PM
Data Sourced
via MITRE·02:49 PM
DescriptionSeverityWeakness
Oct 11, 2023
Data Sourced
11:36 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-2127?

CVE-2022-2127 is an out-of-bounds read vulnerability in Samba due to insufficient length checks in winbindd_pam_auth_crap.c.

2

How severe is CVE-2022-2127?

CVE-2022-2127 has a severity rating of 7.5, which is considered high.

3

Which software is affected by CVE-2022-2127?

Samba versions 2:4.15.13+dfsg-0ubuntu0.20.04.3, 2:4.15.13+dfsg-0ubuntu1.2, 2:4.16.8+dfsg-0ubuntu1.2, 2:4.17.7+dfsg-1ubuntu1.1, 4.16.11, 4.17.10, and 4.18.5 are affected.

4

How can I fix CVE-2022-2127?

To fix CVE-2022-2127, update to Samba version 2:4.15.13+dfsg-0ubuntu0.20.04.3, 2:4.15.13+dfsg-0ubuntu1.2, 2:4.16.8+dfsg-0ubuntu1.2, 2:4.17.7+dfsg-1ubuntu1.1, 4.16.11, 4.17.10, or 4.18.5.

5

Where can I find more information about CVE-2022-2127?

More information about CVE-2022-2127 can be found at the following references: [CVE-2022-2127](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2127), [Samba Security Advisory](https://www.samba.org/samba/security/CVE-2022-2127.html), [Ubuntu Security Notice](https://ubuntu.com/security/notices/USN-6238-1).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203