CVE-2026-42015: Gnutls: gnutls: memory corruption due to off-by-one error in pkcs#12 bag handling
A flaw was found in gnutls. An off-by-one error exists in the PKCS#12 bag element bounds check. This vulnerability allows an remote attacker to write past the internal array of a PKCS#12 bag when appending to a bag that already contains 32 elements. This memory corruption could lead to a denial of service (DoS) or potentially other unspecified impacts.
Other sources
Gnutls: gnutls: memory corruption due to off-by-one error in pkcs#12 bag handling
— Microsoft
libgnutls: Fix off-by-one in PKCS#12 bag element bounds check Appending to a PKCS#12 bag that already contained 32 elements could write past the bag's internal array. Reported by Zou Dikai.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/gnutls28to a version that resolves this vulnerability.Fixed in 3.7.9-2+deb12u7Fixed in 3.8.9-3+deb13u4Fixed in 3.8.13-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.8.13-1 - Compensating control
Mitigate potential DoS/exploitation by limiting remote access to services that parse or process PKCS#12 (PFX) data until gnutls is fixed.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-42015?
The severity of CVE-2026-42015 is medium, rated at 5.3.
How do I fix CVE-2026-42015?
To fix CVE-2026-42015, update GnuTLS to the latest version that addresses the memory corruption issue.
What type of vulnerability is CVE-2026-42015?
CVE-2026-42015 is a memory corruption vulnerability caused by an off-by-one error in handling PKCS#12 bag elements.
What are the potential consequences of CVE-2026-42015?
The potential consequences of CVE-2026-42015 include memory corruption that can lead to a denial of service.
In which software is CVE-2026-42015 found?
CVE-2026-42015 is found in the GnuTLS package, specifically in gnutls28 on Debian.