CVE-2026-8798Native entropy source retries the CPU entropy instructions without limit
In Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 2.1.3, the native entropy source used on Intel platforms retried the CPU entropy instructions without any bound. RDSEED and RDRAND report failure through their carry flag, and the JNI seeding routine spun re-issuing the instruction for as long as that flag stayed clear, so a persistent failure of the on-chip entropy source - whether from a hardware fault, from the underlying DRBG being exhausted by contention across many cores, or from a hypervisor that does not provide the instruction - left the calling thread looping indefinitely inside the JNI call, where it could be neither interrupted nor timed out. Any operation drawing from the native entropy source could therefore hang, denying service to the application. The retry loops are now bounded (200 attempts for RDSEED and 20 for RDRAND, twice the baselines given in Intel's Digital Random Number Generator software implementation guide), pausing between attempts and, on exhaustion, clearing any partially written buffer and throwing rather than continuing to spin. The clear is performed by an un-elidable memzero, which uses a volatile pointer and an assembly memory barrier so that a compiler cannot optimise the erase away as a dead store. Bouncy Castle for Java (bcprov) is not affected, as it has no native entropy source; the 1.0.X and 2.0.X FIPS series are not affected.
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-8798 | |
| Ubuntu 26.04 | bouncycastle | Under investigation | UBUNTU-CVE-2026-8798 | |
| Ubuntu 24.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-8798 | |
| Ubuntu 22.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-8798 | |
| Ubuntu 20.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-8798 | |
| Ubuntu 18.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-8798 | |
| Ubuntu 16.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-8798 | |
| Maven library | org.bouncycastle:bc-fips | Fixed | 2.1.3 | GHSA-v6w3-qrh8-qccc |
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: 2.1.0 to before 2.1.3; fixed in
2.1.3
Vendor advisories:
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%908798 (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.