Description
Integer underflow in the ksba_oid_to_str function in Libksba before 1.3.2, as used in GnuPG, allows remote attackers to cause a denial of service (crash) via a crafted OID in a (1) S/MIME message or (2) ECC based OpenPGP data, which triggers a buffer overflow.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libksba | 1.3.2-1 | — |
| Debian 13 | libksba | 1.3.2-1 | — |
| Debian 12 | libksba | 1.3.2-1 | — |
| Debian 7 | libksba | 1.2.0-2+deb7u1 | DSA-3078-1 |
| Debian 6.0 | libksba | 1.0.7-2+deb6u1 | DLA-141-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | libksba | 1.3.0-3ubuntu0.14.04.1 | USN-2427-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libksba | 1.3.5-1.3 | openSUSE-SU-2024:10126-1 |
Advisories 4
- USN-2427-1 libksba vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-3078-1 libksba - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-141-1 libksba - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10126-1 libksba-devel-1.3.5-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://blog.fuzzing-project.org/2-Buffer-overflow-and-other-minor-issues-in-GnuPG-and-libksba-TFPA-0012014.html
- MDVSA-2015:151 vendor-advisory
- 60233 third-party-advisory
- DSA-3078 vendor-advisory
- http://advisories.mageia.org/MGASA-2014-0498.html
- MDVSA-2014:234 vendor-advisory
- 71285 vdb-entry
- 60073 third-party-advisory
- 60189 third-party-advisory
- [gnupg-announce] 20141125 [Announce] [security fix] Libksba 1.3.2 for GnuPG released mailing-list
- USN-2427-1 vendor-advisory