CVE-2026-13505Zeroisation of sensitive key material on garbage collection relies on finalization
In Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series), sensitive key material held by the AES and DESede engines, the SP 800-90A DRBGs, SymmetricSecretKey and the PBKD and scrypt parameter classes was zeroised on garbage collection by overriding Object.finalize. Finalization runs at an unspecified time and in an unspecified order and is serviced by a single finalizer thread, so where objects carrying a finalizer are allocated faster than that thread retires them the pending-finalization queue grows without bound: disposal falls arbitrarily far behind, which can contribute to an OutOfMemoryError under load, and the key material those objects hold stays resident in the heap for as long as they are queued, defeating the purpose of the zeroisation. The behaviour was not a problem on Java 8 or Java 11; it is later JVMs, on which finalization has been deprecated and progressively de-emphasised, where it becomes one. Disposal of these classes now runs from a java.lang.ref.Cleaner registered in the multi-release jdk1.9 overlay, so on Java 9 and later it no longer depends on the finalizer being scheduled. Bouncy Castle for Java (bcprov) and Bouncy Castle for Java LTS are not affected, as neither implements the finalizer-based zeroisation scheme.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | bouncycastle | Fix pending | UBUNTU-CVE-2026-13505 | |
| Ubuntu 26.04 | bouncycastle | Under investigation | UBUNTU-CVE-2026-13505 | |
| Ubuntu 24.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-13505 | |
| Ubuntu 22.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-13505 | |
| Ubuntu 20.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-13505 | |
| Ubuntu 18.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-13505 | |
| Ubuntu 16.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-13505 | |
| Maven library | org.bouncycastle:bc-fips | Fixed | 2.0.2 | GHSA-98j2-6v39-78w8 |
What the vendor says
As published in the CVE record by bcorg, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Legion of the Bouncy Castle Inc. BC-FJA: affected: 1.0.0 to before 1.0.2.7, 2.0.0 to before 2.0.2, 2.1.0 to before 2.1.3; fixed in
1.0.2.7,2.0.2,2.1.3
Vendor advisories:
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9013505 (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.