GnuTLS PKCS#12 Bag Off-by-One Buffer Overwrite
CVE-2026-42015 Published on May 26, 2026
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.
Vulnerability Analysis
CVE-2026-42015 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a small impact on availability.
Timeline
Reported to Red Hat.
Made public.
Weakness Type
What is an off-by-five Vulnerability?
A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.
CVE-2026-42015 has been classified to as an off-by-five vulnerability or weakness.
Products Associated with CVE-2026-42015
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2026-42015 are published in these products: