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
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/sambato 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
Frequently Asked Questions
What is the severity of CVE-2026-58216?
CVE-2026-58216 has a severity rating of medium with a score of 5.3.
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.
Who is affected by CVE-2026-58216?
Authenticated users of the Samba KDC service may exploit CVE-2026-58216 to crash the server.
How can I mitigate CVE-2026-58216?
To mitigate CVE-2026-58216, ensure that you apply the latest patches and updates for Samba.
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.