{"id":"CVE-2026-8798","published":"2026-08-08T00:50:56Z","modified":"2026-08-10T18:23:28Z","title":"Native entropy source retries the CPU entropy instructions without limit","vendor":"Legion of the Bouncy Castle Inc.","product":"BC-FJA","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00428,"percentile":0.37909,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%908798","tags":["vendor-advisory"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":7.58},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"legion-of-the-bouncy-castle","affectedVersions":[{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC-FJA","versions":[">= 2.1.0, < 2.1.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-10T16:25:32.762419Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.bouncycastle:bc-fips","vulnerableRanges":[">=2.1.0, <2.1.3"],"patched":["2.1.3"],"from":["GHSA-v6w3-qrh8-qccc"],"provenance":"source"}],"summary":{"text":"The native entropy source in Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 2.1.3, used on Intel platforms, retried the CPU entropy instructions RDSEED and RDRAND without any bound, so a persistent failure of the on-chip entropy source could leave the calling thread spinning indefinitely inside the JNI seeding call. An attacker with network access can trigger this without authentication or user interaction, causing a denial of service in any application operation that draws from the native entropy source.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:17Z"},"euvd":{"id":"EUVD-2026-54725","exploited":false,"provenance":"source"}}