Skip to content

CVE-2022-45146 Garbage collection issue in BC-FJA in Java 13 and later

MediumCVSS 5.5 EPSS 0.46% PoC
Published
Updated
Exploit status
Proof-of-concept only
Technology
Ubuntu

Description

An issue was discovered in the FIPS Java API of Bouncy Castle BC-FJA before 1.0.2.4. Changes to the JVM garbage collector in Java 13 and later trigger an issue in the BC-FJA FIPS modules where it is possible for temporary keys used by the module to be zeroed out while still in use by the module, resulting in errors or potential information loss. NOTE: FIPS compliant users are unaffected because the FIPS certification is only for Java 7, 8, and 11.

Upgrade path

8 packages: 2 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/bouncycastle(Ubuntu 16.04) = 1.49+dfsg-3ubuntu1; = 1.51-4ubuntu1; All versions No fix listed No fix yet
ubuntu/bouncycastle(Ubuntu 18.04) = 1.57-1; = 1.58-1; = 1.59-1; All versions No fix listed No fix yet
ubuntu/bouncycastle(Ubuntu 20.04) = 1.61-1; All versions No fix listed No fix yet
ubuntu/bouncycastle(Ubuntu 22.04) = 1.68-2; = 1.68-4; = 1.68-5; All versions No fix listed No fix yet
ubuntu/bouncycastle(Ubuntu 24.04) = 1.72-2; = 1.77-1; All versions No fix listed No fix yet
ubuntu/bouncycastle(Ubuntu 25.10) = 1.77-1; = 1.80-3; All versions No fix listed No fix yet
bouncycastle fips java api < 1.0.2.4 1.0.2.4 Fixed
org.bouncycastle/bc-fips(Maven) < 1.0.2.4; = 1.0.0; = 1.0.1; = 1.0.2 +2 more 1.0.2.4 Fixed

Affected products

ProductAffected versionsFixed in
org.bouncycastle/bc-fips(Maven) < 1.0.2.4 1.0.2.4
org.bouncycastle/bc-fips(Maven) = 1.0.0 No fix listed
org.bouncycastle/bc-fips(Maven) = 1.0.1 No fix listed
org.bouncycastle/bc-fips(Maven) = 1.0.2 No fix listed
org.bouncycastle/bc-fips(Maven) = 1.0.2.1 No fix listed
org.bouncycastle/bc-fips(Maven) = 1.0.2.3 No fix listed
bouncycastle fips java api < 1.0.2.4 1.0.2.4
ubuntu/bouncycastle(Ubuntu:16.04) All versions No fix listed
ubuntu/bouncycastle(Ubuntu:16.04) = 1.49+dfsg-3ubuntu1 No fix listed
ubuntu/bouncycastle(Ubuntu:16.04) = 1.51-4ubuntu1 No fix listed
ubuntu/bouncycastle(Ubuntu:18.04) All versions No fix listed
ubuntu/bouncycastle(Ubuntu:18.04) = 1.57-1 No fix listed
ubuntu/bouncycastle(Ubuntu:18.04) = 1.58-1 No fix listed
ubuntu/bouncycastle(Ubuntu:18.04) = 1.59-1 No fix listed
ubuntu/bouncycastle(Ubuntu:20.04) All versions No fix listed
ubuntu/bouncycastle(Ubuntu:20.04) = 1.61-1 No fix listed
ubuntu/bouncycastle(Ubuntu:22.04) All versions No fix listed
ubuntu/bouncycastle(Ubuntu:22.04) = 1.68-2 No fix listed
ubuntu/bouncycastle(Ubuntu:22.04) = 1.68-4 No fix listed
ubuntu/bouncycastle(Ubuntu:22.04) = 1.68-5 No fix listed
ubuntu/bouncycastle(Ubuntu:24.04) All versions No fix listed
ubuntu/bouncycastle(Ubuntu:24.04) = 1.72-2 No fix listed
ubuntu/bouncycastle(Ubuntu:24.04) = 1.77-1 No fix listed
ubuntu/bouncycastle(Ubuntu:25.10) All versions No fix listed
ubuntu/bouncycastle(Ubuntu:25.10) = 1.77-1 No fix listed
Show 1 more
ProductAffected versionsFixed in
ubuntu/bouncycastle(Ubuntu:25.10) = 1.80-3 No fix listed

References