Description
In GnuPG before 2.4.9, armor_filter in g10/armor.c has two increments of an index variable where one is intended, leading to an out-of-bounds write for crafted input. (For ExtendedLTS, 2.2.51 and later are fixed versions.)
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
GnuPG GnuPG
Default version status: unknown
0 to < 2.2.51affected2.3.0 to < 2.4.9affected
References
- https://gpg.fail/memcpy ↗
- https://news.ycombinator.com/item?id=46403200 ↗
- https://www.openwall.com/lists/oss-security/2025/12/28/5 ↗
- https://github.com/gpg/gnupg/commit/115d138ba599328005c5321c0ef9f00355838ca9 ↗
- https://github.com/gpg/gnupg/blob/ff30683418695f5d2cc9e6cf8c9418e09378ebe4/g10/armor.c#L1305-L1306 ↗
- https://github.com/gpg/gnupg/compare/gnupg-2.2.50...gnupg-2.2.51 ↗
- https://media.ccc.de/v/39c3-to-sign-or-not-to-sign-practical-vulnerabilities-i ↗
- http://www.openwall.com/lists/oss-security/2025/12/29/11 ↗
- https://lists.debian.org/debian-lts-announce/2026/01/msg00008.html ↗