CVE-2026-58216: Samba: kpasswd service: kpasswd packet that contains malformed asn.1 might cause the server to access 6 bytes of unallocated memory leading server to crash

Published Jul 20, 2026
·
Updated

A miscalculation means an ASN.1 structure used in a Kerberos password change is assumed to be six bytes bigger than it is. This does not affect ordinary packets (the ASN.1 itself contains the correct size), but a crafted ANS1 packet could force up to six unallocated bytes to be read. The usual outcome of this will be a decryption failure and an error message, but it could make the server process crash.

Other sources

An out-of-bounds read flaw was found in Samba's Kerberos Key Distribution Center's (KDC) password change (kpasswd) service. When processing malformed ASN.1-encoded Kerberos password change request, Samba server miscalculates the structure size and attempts to read up to six bytes beyond the end of the allocated buffer. While this out-of-bounds read typically results in a harmless decryption failure, if the read hits unmapped memory, it causes the KDC process to crash. An authenticated attacker can send a specially crafted kpasswd request containing malformed ASN.1 data to trigger the out-of-bounds read, which may cause the KDC process to terminate, resulting in a denial of service.

— NVD

Affected Software

1 affected componentFixes available
debian/samba<=2:4.17.12+dfsg-0+deb12u4
2:4.22.11+dfsg-0+deb13u12:4.22.10+dfsg-0+deb13u22:4.25.1+dfsg-1

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.22.11+dfsg-0+deb13u1Fixed in 2:4.22.10+dfsg-0+deb13u2Fixed in 2:4.25.1+dfsg-1

Event History

Jul 20, 2026
Data Sourced
via Red Hat·10:46 AM
DescriptionSeverityAffected Software
Jul 30, 2026
CVE Published
via MITRE·03:40 PM
Data Sourced
via MITRE·03:40 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-58216?

CVE-2026-58216 has a severity rating of medium with a score of 5.3.

2

How does CVE-2026-58216 affect Samba servers?

CVE-2026-58216 can cause the Samba server to crash when processing malformed ASN.1-encoded password change requests.

3

Who is affected by CVE-2026-58216?

Authenticated users of the Samba KDC service may exploit CVE-2026-58216 to crash the server.

4

How can I mitigate CVE-2026-58216?

To mitigate CVE-2026-58216, ensure that you apply the latest patches and updates for Samba.

5

What is the cause of the vulnerability in CVE-2026-58216?

The vulnerability in CVE-2026-58216 is due to an out-of-bounds read caused by improper processing of ASN.1 data.

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