CVE-2026-8798: CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop') in Legion of the Bouncy Castle Inc. BC-FJA
CVE-2026-8798 is a high-severity vulnerability in Bouncy Castle for Java FIPS (BC-FJA) version 2.1.0 where the native entropy source on Intel platforms can enter an infinite loop due to unbounded retries of CPU entropy instructions RDSEED and RDRAND. This causes the calling thread to hang indefinitely, resulting in a denial of service. The issue affects only BC-FJA 2.1.0 and not other Bouncy Castle Java versions or FIPS series 1.0.X and 2.0.X.
AI Analysis
Technical Summary
In BC-FJA before version 2.1.3, the native entropy source on Intel platforms repeatedly retried RDSEED and RDRAND CPU instructions without any limit when these instructions failed, causing an infinite loop inside the JNI seeding routine. This loop could not be interrupted or timed out, leading to a hang and denial of service for any operation relying on the native entropy source. The root cause is that the retry loops lacked bounds and continued spinning as long as the carry flag indicated failure. The issue was fixed by bounding retries (200 attempts for RDSEED and 20 for RDRAND), adding pauses between attempts, clearing partially written buffers securely, and throwing exceptions on exhaustion instead of spinning.
Potential Impact
The vulnerability causes denial of service by hanging the calling thread indefinitely when the native entropy source fails persistently. This affects any cryptographic operation relying on native entropy on Intel platforms using BC-FJA 2.1.0. There is no indication of code execution or data compromise, but the hang can disrupt application availability.
Mitigation Recommendations
A fixed version of BC-FJA (2.1.3 or later) addresses this issue by bounding retry loops and handling failures gracefully. Users should upgrade to version 2.1.3 or later. Since no official patch link or advisory is provided, check the vendor's official resources for the fixed release. Until then, be aware that the issue exists in version 2.1.0. No other mitigations are specified.
CVE-2026-8798: CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop') in Legion of the Bouncy Castle Inc. BC-FJA
Description
CVE-2026-8798 is a high-severity vulnerability in Bouncy Castle for Java FIPS (BC-FJA) version 2.1.0 where the native entropy source on Intel platforms can enter an infinite loop due to unbounded retries of CPU entropy instructions RDSEED and RDRAND. This causes the calling thread to hang indefinitely, resulting in a denial of service. The issue affects only BC-FJA 2.1.0 and not other Bouncy Castle Java versions or FIPS series 1.0.X and 2.0.X.
CVSS v4.0
Score 8.7high
Affected software
pkg:maven/org.bouncycastle/bc-fipsRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In BC-FJA before version 2.1.3, the native entropy source on Intel platforms repeatedly retried RDSEED and RDRAND CPU instructions without any limit when these instructions failed, causing an infinite loop inside the JNI seeding routine. This loop could not be interrupted or timed out, leading to a hang and denial of service for any operation relying on the native entropy source. The root cause is that the retry loops lacked bounds and continued spinning as long as the carry flag indicated failure. The issue was fixed by bounding retries (200 attempts for RDSEED and 20 for RDRAND), adding pauses between attempts, clearing partially written buffers securely, and throwing exceptions on exhaustion instead of spinning.
Potential Impact
The vulnerability causes denial of service by hanging the calling thread indefinitely when the native entropy source fails persistently. This affects any cryptographic operation relying on native entropy on Intel platforms using BC-FJA 2.1.0. There is no indication of code execution or data compromise, but the hang can disrupt application availability.
Mitigation Recommendations
A fixed version of BC-FJA (2.1.3 or later) addresses this issue by bounding retry loops and handling failures gracefully. Users should upgrade to version 2.1.3 or later. Since no official patch link or advisory is provided, check the vendor's official resources for the fixed release. Until then, be aware that the issue exists in version 2.1.0. No other mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- bcorg
- Date Reserved
- 2026-05-18T01:17:23.058Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a767ecdbf8831d53990b9dc
Added to database: 08/08/2026, 00:56:45 UTC
Last enriched: 08/08/2026, 01:11:07 UTC
Last updated: 08/08/2026, 01:11:07 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.