CVE-2016-1000340
In the Bouncy Castle JCE Provider versions 1.51 to 1.55, a carry propagation bug was introduced in the implementation of squaring for several raw math classes have been fixed (org.bouncycastle.math.raw.Nat???). These classes are used by our custom elliptic curve implementations (org.bouncycastle.math.ec.custom.**), so there was the possibility of rare (in general usage) spurious calculations for elliptic curve scalar multiplications. Such errors would have been detected with high probability by the output validation for our scalar multipliers.
What to do
Fixed builds are available from Debian, 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.04 | bouncycastle | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | bouncycastle | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | bouncycastle | Fix pending | UBUNTU-CVE-2016-1000340 | |
| Ubuntu 14.04 | bouncycastle | Not affected vulnerable_code_not_present | ||
| Debian 14 | bouncycastle | Fixed | 1.56-1 | DEBIAN-CVE-2016-1000340 |
| Debian 13 | bouncycastle | Fixed | 1.56-1 | DEBIAN-CVE-2016-1000340 |
| Debian 12 | bouncycastle | Fixed | 1.56-1 | DEBIAN-CVE-2016-1000340 |
| Maven library | org.bouncycastle:bcprov-jdk14 | Fixed | 1.56 | GHSA-r97x-3g8f-gx3m |
| Maven library | org.bouncycastle:bcprov-jdk15 | Fixed | 1.56 | GHSA-r97x-3g8f-gx3m |
| Maven library | org.bouncycastle:bcprov-jdk15on | Fixed | 1.56 | GHSA-r97x-3g8f-gx3m |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2018:2669 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:2927 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2018:2669
- https://access.redhat.com/errata/RHSA-2018:2927
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://security.netapp.com/advisory/ntap-20181127-0004/
- https://github.com/bcgit/bc-java/commit/790642084c4e0cadd47352054f868cc8397e2c00#diff-e5934feac8203ca0104ab291a3560a31
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.