CVE-2022-32742: Infoleak

Published Jul 18, 2022
·
Updated

A flaw was found in Samba. Some SMB1 write requests were not correctly range-checked to ensure the client had sent enough data to fulfill the write, allowing server memory contents to be written into the file (or printer) instead of client-supplied data. The client cannot control the area of the server memory written to the file (or printer).

Other sources

As per samba upstream advisory:

All versions of Samba with SMB1 enabled are vulnerable to a server memory information leak bug over SMB1 if a client can write data to a share. Some SMB1 write requests were not correctly range checked to ensure the client had sent enough data to fulfill the write, allowing server memory contents to be written into the file (or printer) instead of client supplied data. The client cannot control the area of the server memory that is written to the file (or printer).

Please note that only versions of Samba prior to 4.11.0 are vulnerable to this bug by default. Samba versions 4.11.0 and above disable SMB1 by default, and will only be vulnerable if the administrator has deliberately enabled SMB1 in the smb.conf file.

— Red Hat

Affected Software

21 affected componentsFixes available
Samba Samba<4.14.14
Samba Samba>=4.15.0<4.15.9
Samba Samba>=4.16.0<4.16.4
debian/samba
2:4.17.12+dfsg-0+deb12u42:4.22.11+dfsg-0+deb13u12:4.22.10+dfsg-0+deb13u22:4.25.1+dfsg-1
alpine/samba>=4.15.0<4.14.14-r0
4.14.14-r0
alpine/samba>=4.15.0<4.15.12-r0
4.15.12-r0
alpine/samba>=4.15.0<4.15.12-r0
4.15.12-r0
alpine/samba>=4.15.0<4.15.9-r0
4.15.9-r0
alpine/samba>=4.15.0<4.15.9-r0
4.15.9-r0
alpine/samba>=4.15.0<4.15.9-r0
4.15.9-r0
alpine/samba>=4.15.0<4.15.9-r0
4.15.9-r0
alpine/samba>=4.15.0<4.15.9-r0
4.15.9-r0
alpine/samba>=4.15.0<4.15.9-r0
4.15.9-r0
alpine/samba>=4.15.0<4.15.9-r0
4.15.9-r0
alpine/samba>=4.15.0<4.15.9-r0
4.15.9-r0
debian/samba<2:4.16.4+dfsg-1
2:4.16.4+dfsg-1
debian/samba<2:4.16.4+dfsg-1
2:4.16.4+dfsg-1
debian/samba<2:4.16.4+dfsg-1
2:4.16.4+dfsg-1
redhat/samba<4.16.4
4.16.4
redhat/samba<4.15.9
4.15.9
redhat/samba<4.14.14
4.14.14

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/samba to a version that resolves this vulnerability.

    Fixed in 2:4.17.12+dfsg-0+deb12u4Fixed in 2:4.22.11+dfsg-0+deb13u1Fixed in 2:4.22.10+dfsg-0+deb13u2Fixed in 2:4.25.1+dfsg-1
  2. Upgrade

    Upgrade alpine/samba to a version that resolves this vulnerability.

    Fixed in 4.14.14-r0
  3. Upgrade

    Upgrade alpine/samba to a version that resolves this vulnerability.

    Fixed in 4.15.12-r0
  4. Upgrade

    Upgrade alpine/samba to a version that resolves this vulnerability.

    Fixed in 4.15.9-r0
  5. Upgrade

    Upgrade debian/samba to a version that resolves this vulnerability.

    Fixed in 2:4.16.4+dfsg-1
  6. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.16.4
  7. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.15.9
  8. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.14.14
  9. Configuration

    Disable SMB1 in the smb.conf file.

    Samba SMB1 = disabled

Event History

Jul 18, 2022
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Aug 25, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·06:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-32742?

CVE-2022-32742 is a vulnerability found in Samba that allows server memory contents to be written into a file or printer instead of client-supplied data.

2

What is the severity of CVE-2022-32742?

The severity of CVE-2022-32742 is medium with a CVSS score of 4.3.

3

Which versions of Samba are affected by CVE-2022-32742?

Versions up to and including 4.14.14, 4.15.0 to 4.15.9, and 4.16.0 to 4.16.4 of Samba are affected by CVE-2022-32742.

4

How can I fix CVE-2022-32742?

To fix CVE-2022-32742, it is recommended to update Samba to a patched version provided by the vendor or apply the necessary security patches.

5

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

You can find more information about CVE-2022-32742 at the following references: [Gentoo Security Advisory](https://security.gentoo.org/glsa/202309-06) and [Samba Security](https://www.samba.org/samba/security/CVE-2022-32742.html).

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