{"cve":"CVE-2026-8798","nvd":{"published":"2026-08-08T01:16:31.393","modified":"2026-10-24T13:10:00.147","status":"Awaiting Analysis","description":"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.","cvss_v4":{"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","score":8.7},"cvss_v3":null,"cwes":["CWE-835"],"references":["https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%908798"],"products":[],"source":"nvd","synced_at":"2026-10-24T16:53:34.184483516+00:00"},"epss":{"cve":"CVE-2026-8798","score":0.00428,"percentile":0.36763,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-v6w3-qrh8-qccc","url":"https://osv.dev/vulnerability/GHSA-v6w3-qrh8-qccc","summary":"Bouncy Castle: the native entropy source used on Intel platforms retried the CPU entropy instructions without any bound","modified":"2026-09-18T17:45:05.941867953Z","packages":[{"ecosystem":"Maven","name":"org.bouncycastle:bc-fips","purl":"pkg:maven/org.bouncycastle/bc-fips","ranges":[">=2.1.0 <2.1.3"],"fixed":["2.1.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}