CVE-2026-15997

Native ARM SHA3 / SHAKE `restoreFullState` fails to detect size_t underflow in a crafted encoded state

Published Jul 16, 2026 CVSS 4.0 · 1.7 Low EPSS < 1% KEV · Not listed
Description
Out-of-bounds write vulnerability in Legion of the Bouncy Castle Inc. BC-LTS bcprov-lts8on on ARM allows Overflow Buffers.

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.



This issue affects BC-LTS: from 2.73.0 before 2.73.12.1.



Issue is only applicable if application involved is accepting memoable SHA3 / SHAKE states from potentially untrusted sources.

Analysis

AI-generated

Technical impact

The vulnerability is an out‑of‑bounds write that occurs in Bouncy Castle LTS’s native ARM SHA3 / SHAKE implementation when the restoreFullState routine processes a crafted encoded state. Based on the description, it is inferred that the attacker would need to supply such a crafted state to trigger the overflow, allowing the written data to overwrite adjacent memory. The flaw only manifests when the application accepts memoable SHA3 / SHAKE states that may come from untrusted sources, and the CVE description does not confirm any exploit for remote code execution.

Affected Systems

Affected products are Legion of the Bouncy Castle Inc.’s Bouncy Castle LTS bcprov‑lts8on running on ARM architectures. All releases from 2.73.0 up to and including 2.73.12.0 are vulnerable; the problematic code is fixed in 2.73.12.1 and later versions.

Risk and Exploitability

The CVSS score of 1.7 indicates a low base severity, and the EPSS of less than 1% shows a very low likelihood of active exploitation. The vulnerability is not listed in CISA KEV. Based on the description, it is inferred that the exploit requires the attacker to supply a crafted state to the restoreFullState function, which typically occurs via user‑controlled input such as data received over a network or other external interface. Because the flaw results in an arbitrary memory write, it could compromise data integrity or cause a crash, but the CVE description does not confirm any exploit for remote code execution. The overall risk depends on whether the decryption routine is exposed to unauthenticated input.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to bcprov‑lts8on version 2.73.12.1 or later, which applies the size_t underflow fix.
  • If an upgrade cannot be performed immediately, ensure that any memoable SHA3 / SHAKE states fed into restoreFullState originate from trusted sources, or disable acceptance of such states entirely.
  • Place the library or the functions that process state data in a sandboxed or restricted process to limit the impact of any potential memory write and monitor the application for abnormal crashes.

Generated by OpenCVE AI on July 31, 2026 at 01:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-lts
Vendors & Products Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-lts
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Out-of-bounds write vulnerability in Legion of the Bouncy Castle Inc. BC-LTS bcprov-lts8on on ARM allows Overflow Buffers. 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. This issue affects BC-LTS: from 2.73.0 before 2.73.12.1. Issue is only applicable if application involved is accepting memoable SHA3 / SHAKE states from potentially untrusted sources.
Title Native ARM SHA3 / SHAKE `restoreFullState` fails to detect size_t underflow in a crafted encoded state
Weaknesses CWE-787
References
Metrics cvssV4_0

{'score': 1.7, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
bcorg
Published
Updated
Jul 17, 2026, 1:12 PM
Reserved
Jul 16, 2026, 9:47 PM
Status
Deferred
Published
Jul 16, 2026, 11:16 PM
Modified
Oct 24, 2026, 8:10 PM