CVE-2026-8798: CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop') in Legion of the Bouncy Castle Inc. BC-FJA
A vulnerability in Bouncy Castle for Java FIPS (BC-FJA) before version 2.1.3 causes the native entropy source on Intel platforms to retry CPU entropy instructions indefinitely if they fail persistently. This results in an uninterruptible hang in the JNI seeding routine, potentially causing denial of service for applications relying on this entropy source. The issue is fixed by bounding retry attempts and throwing an exception on exhaustion. Bouncy Castle for Java (bcprov) and earlier FIPS series 1.0.X and 2.0.X are not affected.
AI Analysis
Technical Summary
In Bouncy Castle for Java FIPS (BC-FJA) versions prior to 2.1.3, the native entropy source on Intel platforms used unbounded retries for the RDSEED and RDRAND CPU instructions when they reported failure via the carry flag. The JNI seeding routine would spin indefinitely re-issuing these instructions if the entropy source failed persistently due to hardware faults, DRBG exhaustion, or hypervisor limitations. This caused the calling thread to hang without interruption or timeout, leading to denial of service. The fix introduced bounded retry loops (200 attempts for RDSEED and 20 for RDRAND), pauses between attempts, and throwing an exception on exhaustion after clearing any partial buffer securely with memzero. Other Bouncy Castle components without native entropy sources or older FIPS series are unaffected.
Potential Impact
Applications using the native entropy source in affected versions of Bouncy Castle for Java FIPS on Intel platforms may experience indefinite hangs during entropy generation if the CPU entropy instructions fail persistently. This results in denial of service, as the calling thread cannot be interrupted or timed out while spinning. There is no direct compromise of cryptographic material or data confidentiality indicated.
Mitigation Recommendations
Upgrade to Bouncy Castle for Java FIPS version 2.1.3 or later, where retry loops for CPU entropy instructions are bounded and failures throw exceptions instead of hanging. No other mitigation is indicated. Patch status is not explicitly confirmed in vendor advisories; users should verify upgrade availability from official Bouncy Castle sources.
CVE-2026-8798: CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop') in Legion of the Bouncy Castle Inc. BC-FJA
Description
A vulnerability in Bouncy Castle for Java FIPS (BC-FJA) before version 2.1.3 causes the native entropy source on Intel platforms to retry CPU entropy instructions indefinitely if they fail persistently. This results in an uninterruptible hang in the JNI seeding routine, potentially causing denial of service for applications relying on this entropy source. The issue is fixed by bounding retry attempts and throwing an exception on exhaustion. Bouncy Castle for Java (bcprov) and earlier FIPS series 1.0.X and 2.0.X are not affected.
CVSS v4.0
Score 8.7high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In Bouncy Castle for Java FIPS (BC-FJA) versions prior to 2.1.3, the native entropy source on Intel platforms used unbounded retries for the RDSEED and RDRAND CPU instructions when they reported failure via the carry flag. The JNI seeding routine would spin indefinitely re-issuing these instructions if the entropy source failed persistently due to hardware faults, DRBG exhaustion, or hypervisor limitations. This caused the calling thread to hang without interruption or timeout, leading to denial of service. The fix introduced bounded retry loops (200 attempts for RDSEED and 20 for RDRAND), pauses between attempts, and throwing an exception on exhaustion after clearing any partial buffer securely with memzero. Other Bouncy Castle components without native entropy sources or older FIPS series are unaffected.
Potential Impact
Applications using the native entropy source in affected versions of Bouncy Castle for Java FIPS on Intel platforms may experience indefinite hangs during entropy generation if the CPU entropy instructions fail persistently. This results in denial of service, as the calling thread cannot be interrupted or timed out while spinning. There is no direct compromise of cryptographic material or data confidentiality indicated.
Mitigation Recommendations
Upgrade to Bouncy Castle for Java FIPS version 2.1.3 or later, where retry loops for CPU entropy instructions are bounded and failures throw exceptions instead of hanging. No other mitigation is indicated. Patch status is not explicitly confirmed in vendor advisories; users should verify upgrade availability from official Bouncy Castle sources.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-v6w3-qrh8-qccc
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-8798"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a774286bf8831d539b068d8
Added to database: 08/08/2026, 14:51:50 UTC
Last enriched: 08/08/2026, 14:57:28 UTC
Last updated: 08/08/2026, 14:57:28 UTC
Views: 1
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.
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.