{"id":"CVE-2026-15997","summary":"Native ARM SHA3 / SHAKE `restoreFullState`  fails to detect size_t underflow in a crafted encoded state","details":"Out-of-bounds write vulnerability in Legion of the Bouncy Castle Inc. BC-LTS bcprov-lts8on on ARM allows Overflow Buffers.\n\n This vulnerability is associated with program files https://github.Com/bcgit/bc-lts-java/blob/main/native_c/arm/sha/shake.C, https://github.Com/bcgit/bc-lts-java/blob/main/native_c/arm/sha/sha3.C.\n\n\n\nThis issue affects BC-LTS: from 2.73.0 before 2.73.12.1.\n\n\n\nIssue is only applicable if application involved is accepting memoable SHA3 / SHAKE states from potentially untrusted sources.","modified":"2026-07-23T08:25:09.966919Z","published":"2026-07-16T22:17:16.525Z","database_specific":{"cna_assigner":"bcorg","cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/15xxx/CVE-2026-15997.json"},"references":[{"type":"WEB","url":"https://github.com/bcgit/bc-lts-java/wiki/CVE-2026-15997"},{"type":"WEB","url":"https://www.bouncycastle.org/download/bouncy-castle-java-lts/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/15xxx/CVE-2026-15997.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-15997"},{"type":"PACKAGE","url":"https://github.com/bcgit/bc-lts-java"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bcgit/bc-lts-java","events":[{"introduced":"468b5082f3f0971e80bf9edb7029c17b39b9ba0c"},{"fixed":"053e59f6a16a66b1f83030ab06643f8507c49d39"}],"database_specific":{"extracted_events":[{"introduced":"2.73.0"},{"fixed":"2.73.12.1"}],"source":"AFFECTED_FIELD"}}],"versions":["r2rv73dot12","r2rv73dot11","r2rv73dot10","r2rv73dot9","r2rv73dot8","r2rv73dot6","r2rv73dot4","r2rv73dot3","r2rv73dot1","r2rv73dot0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-15997.json","vanir_signatures_modified":"2026-07-23T08:25:09Z","vanir_signatures":[{"digest":{"function_hash":"136771984951073209965015993423669245453","length":165},"id":"CVE-2026-15997-585e0ac4","signature_type":"Function","signature_version":"v1","source":"https://github.com/bcgit/bc-lts-java/commit/053e59f6a16a66b1f83030ab06643f8507c49d39","target":{"file":"prov/src/main/java/org/bouncycastle/jce/provider/BouncyCastleProvider.java","function":"BouncyCastleProvider"},"deprecated":false},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/bcgit/bc-lts-java/commit/053e59f6a16a66b1f83030ab06643f8507c49d39","target":{"file":"core/src/main/java/org/bouncycastle/crypto/CryptoServicesRegistrar.java"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["18060752363678275737340676574541763920","247034184266163160976846659748600605222","53865467080643320210251729977448360958","30659604990862884899141058623943785837"]},"id":"CVE-2026-15997-767dab91"},{"id":"CVE-2026-15997-f86d1842","signature_type":"Line","signature_version":"v1","source":"https://github.com/bcgit/bc-lts-java/commit/053e59f6a16a66b1f83030ab06643f8507c49d39","target":{"file":"prov/src/main/java/org/bouncycastle/jce/provider/BouncyCastleProvider.java"},"deprecated":false,"digest":{"line_hashes":["225245902410678884163135828248179854747","200252212940035975300914465693333812266","132680108997146011405379386470392945903","253080760293747504984449998743567990073"],"threshold":0.9}}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/S:P/AU:N/R:A/V:D/RE:M/U:Amber"}]}