Description
A heap-based buffer overflow vulnerability was found in Samba within the GSSAPI unwrap_des() and unwrap_des3() routines of Heimdal. The DES and Triple-DES decryption routines in the Heimdal GSSAPI library allow a length-limited write buffer overflow on malloc() allocated memory when presented with a maliciously small packet. This flaw allows a remote user to send specially crafted malicious data to the application, possibly resulting in a denial of service (DoS) attack.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | samba | Fixed in samba 4.15.11, samba 4.16.6, samba 4.17.2. | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | heimdal | 7.8.git20221115.a6cf945+dfsg-1 | — |
| Debian 14 | samba | 2:4.16.6+dfsg-1 | — |
| Debian 13 | heimdal | 7.8.git20221115.a6cf945+dfsg-1 | — |
| Debian 13 | samba | 2:4.16.6+dfsg-1 | — |
| Debian 12 | heimdal | 7.8.git20221115.a6cf945+dfsg-1 | — |
| Debian 12 | samba | 2:4.16.6+dfsg-1 | — |
| Debian 11 | heimdal | 7.7.0+dfsg-2+deb11u2 | DSA-5287-1 |
| Debian 11 | samba | 2:4.13.13+dfsg-1~deb11u6 | DSA-5647-1 |
| Debian 10 | heimdal | 7.5.0+dfsg-3+deb10u1 | DLA-3206-1 |
| Debian 10 | samba | 2:4.9.5+dfsg-5+deb10u5 | DLA-3792-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | heimdal | No fix yet | — |
| Ubuntu 22.04 LTS | samba | 2:4.15.13+dfsg-0ubuntu1 | USN-5822-1 |
| Ubuntu 20.04 LTS | heimdal | 7.7.0+dfsg-1ubuntu1.3 | USN-5800-1 |
| Ubuntu 20.04 LTS | samba | 2:4.15.13+dfsg-0ubuntu0.20.04.1 | USN-5936-1, USN-5822-1 |
| Ubuntu 18.04 LTS | heimdal | 7.5.0+dfsg-1ubuntu0.3 | USN-5800-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | samba | 2:4.7.6+dfsg~ubuntu-0ubuntu2.29+esm1 | USN-7582-1 |
| Ubuntu Pro 16.04 LTS | heimdal | 1.7~git20150920+dfsg-4ubuntu1.16.04.1+esm3 | USN-5800-1 |
| Ubuntu Pro 16.04 LTS | samba | 2:4.3.11+dfsg-0ubuntu0.16.04.34+esm2 | USN-7582-1 |
| Ubuntu Pro 14.04 LTS | heimdal | 1.6~git20131207+dfsg-1ubuntu1.2+esm3 | USN-5800-1 |
| Ubuntu Pro 14.04 LTS | samba | 2:4.3.11+dfsg-0ubuntu0.14.04.20+esm13 | USN-7582-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | samba | 4.15.13+git.591.ab36624310c-150400.3.19.1 | SUSE-SU-2023:0160-1 |
| SLES 15 SP3 | samba | 4.15.12+git.535.7750e5c95ef-150300.3.43.1 | SUSE-SU-2022:4395-1 |
| SLES 12 SP5 | samba | 4.15.13+git.482.1ac2c665c7-3.74.1 | SUSE-SU-2023:0081-1 |
| SLES 2 | samba | 4.15.12+git.535.7750e5c95ef-150300.3.43.1 | SUSE-SU-2022:4395-1 |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | samba | 4.15.13+git.482.1ac2c665c7-3.74.1 | SUSE-SU-2023:0081-1 |
| SLE Micro 5.3 | samba | 4.15.13+git.591.ab36624310c-150400.3.19.1 | SUSE-SU-2023:0160-1 |
| SLE Micro 5.2 | samba | 4.15.12+git.535.7750e5c95ef-150300.3.43.1 | SUSE-SU-2022:4395-1 |
| SUSE Package Hub 15 SP4 | libheimdal | 7.8.0-bp154.2.4.1 | openSUSE-SU-2023:0019-1 |
| SUSE Package Hub 15 SP3 | libheimdal | 7.8.0-bp153.2.4.1 | openSUSE-SU-2023:0020-1 |
| SUSE Enterprise Storage 7.1 | samba | 4.15.12+git.535.7750e5c95ef-150300.3.43.1 | SUSE-SU-2022:4395-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | samba | 4.17.2+git.273.a55a83528b9-1.1 | openSUSE-SU-2024:12454-1 |
| openSUSE Leap 15.4 | libheimdal | 7.8.0-bp154.2.4.1 | openSUSE-SU-2023:0019-1 |
| openSUSE Leap 15.4 | samba | 4.15.13+git.591.ab36624310c-150400.3.19.1 | SUSE-SU-2023:0160-1 |
| openSUSE Leap 15.3 | libheimdal | 7.8.0-bp153.2.4.1 | openSUSE-SU-2023:0020-1 |
| openSUSE Leap 15.3 | samba | 4.15.12+git.535.7750e5c95ef-150300.3.43.1 | SUSE-SU-2022:4395-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.3 | samba | 4.15.13+git.591.ab36624310c-150400.3.19.1 | SUSE-SU-2023:0160-1 |
| openSUSE Leap Micro 5.2 | samba | 4.15.12+git.535.7750e5c95ef-150300.3.43.1 | SUSE-SU-2022:4395-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | heimdal | 7.7.1-r0 | — |
| Alpine v3.24 | samba | 4.16.6-r0 | — |
| Alpine v3.23 | heimdal | 7.7.1-r0 | — |
| Alpine v3.23 | samba | 4.16.6-r0 | — |
| Alpine v3.22 | heimdal | 7.7.1-r0 | — |
| Alpine v3.22 | samba | 4.16.6-r0 | — |
| Alpine v3.21 | heimdal | 7.7.1-r0 | — |
| Alpine v3.21 | samba | 4.16.6-r0 | — |
| Alpine v3.20 | heimdal | 7.7.1-r0 | — |
| Alpine v3.20 | samba | 4.16.6-r0 | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | heimdal | 7.7.1-r0 | — |
| Alpine v3.19 | samba | 4.16.6-r0 | — |
| Alpine v3.18 | heimdal | 7.7.1-r0 | — |
| Alpine v3.18 | samba | 4.16.6-r0 | — |
| Alpine v3.17 | heimdal | 7.7.1-r0 | — |
| Alpine v3.17 | samba | 4.16.6-r0 | — |
| Alpine v3.16 | heimdal | 7.7.1-r0 | — |
| Alpine v3.16 | samba | 4.15.12-r0 | — |
| Alpine v3.15 | heimdal | 7.7.1-r0 | — |
| Alpine v3.15 | samba | 4.15.12-r0 | — |
| Alpine v3.14 | heimdal | 7.7.1-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | samba +29 | 2:4.17.5-0.amzn2023.0.2 | ALAS2023-2023-032 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | samba | 4.18.3-1 | — |
| Azure Linux 2 (CBL-Mariner) | samba | No fix yet | — |
Advisories 21
- WID-SEC-2026-3352 Apple iOS, iPadOS, macOS Tahoe, macOS Golden Gate, macOS Sequoia und Safari: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 26, 2026
- NCSC-2026-0371 Kwetsbaarheden verholpen in Apple macOS en Samba door Apple en Samba NCSC-NL (Netherlands) · Sep 15, 2026
- USN-5800-1 heimdal vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-7582-1 samba vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-5936-1 samba vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- USN-5822-1 samba vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-5287-1 heimdal - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-5647-1 samba - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3792-1 samba - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3206-1 heimdal - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2022:4395-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:0081-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2023:0019-1 Security update for libheimdal SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:0160-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12454-1 ctdb-4.17.2+git.273.a55a83528b9-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2023:0020-1 Security update for libheimdal SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-1847 Samba: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 29, 2025
- ALAS2023-2023-032 Important: samba security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 15, 2024
- ICSA-24-046-11 Siemens SCALANCE XCM-/XRM-300 CISA ICS & IT advisories · Feb 13, 2024
- SSA-806742 SSA-806742: Multiple Vulnerabilities in SCALANCE XCM-/XRM-300 before V2.4 Siemens ProductCERT · Feb 13, 2024
- WID-SEC-2022-2372 genua genugate: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 19, 2023
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2137774
- https://www.samba.org/samba/security/CVE-2022-3437.html
- https://access.redhat.com/security/cve/CVE-2022-3437
- [oss-security] 20230208 [vs] heimdal: CVE-2022-45142: signature validation failure mailing-list
- https://security.netapp.com/advisory/ntap-20230216-0008/
- GLSA-202309-06 vendor-advisory
- GLSA-202310-06 vendor-advisory
- [debian-lts-announce] 20240422 [SECURITY] [DLA 3792-1] samba security update mailing-list