CVE-2016-1000340 The Bouncy Castle JCE Provider carry a propagation bug
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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.
Upgrade path
8 packages: 7 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/bouncycastle(Ubuntu Pro 16.04) | = 1.49+dfsg-3ubuntu1; = 1.51-4ubuntu1; = 1.51-4ubuntu1+esm1; All versions | No fix listed | No fix yet |
| bouncycastle bc-java | >= 1.51, <= 1.55 | after 1.55 | Fixed |
| debian/bouncycastle(Debian 12) | < 1.56-1 | 1.56-1 | Fixed |
| debian/bouncycastle(Debian 13) | < 1.56-1 | 1.56-1 | Fixed |
| debian/bouncycastle(Debian 14) | < 1.56-1 | 1.56-1 | Fixed |
| org.bouncycastle/bcprov-jdk14(Maven) | = 1.51; = 1.53; = 1.54; = 1.55 +1 more | 1.56 | Fixed |
| org.bouncycastle/bcprov-jdk15(Maven) | >= 1.51, < 1.56 | 1.56 | Fixed |
| org.bouncycastle/bcprov-jdk15on(Maven) | = 1.51; = 1.52; = 1.53; = 1.54 +2 more | 1.56 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.bouncycastle/bcprov-jdk14(Maven) | >= 1.51, < 1.56 | 1.56 |
| org.bouncycastle/bcprov-jdk14(Maven) | = 1.51 | No fix listed |
| org.bouncycastle/bcprov-jdk14(Maven) | = 1.53 | No fix listed |
| org.bouncycastle/bcprov-jdk14(Maven) | = 1.54 | No fix listed |
| org.bouncycastle/bcprov-jdk14(Maven) | = 1.55 | No fix listed |
| org.bouncycastle/bcprov-jdk15(Maven) | >= 1.51, < 1.56 | 1.56 |
| org.bouncycastle/bcprov-jdk15on(Maven) | >= 1.51, < 1.56 | 1.56 |
| org.bouncycastle/bcprov-jdk15on(Maven) | = 1.51 | No fix listed |
| org.bouncycastle/bcprov-jdk15on(Maven) | = 1.52 | No fix listed |
| org.bouncycastle/bcprov-jdk15on(Maven) | = 1.53 | No fix listed |
| org.bouncycastle/bcprov-jdk15on(Maven) | = 1.54 | No fix listed |
| org.bouncycastle/bcprov-jdk15on(Maven) | = 1.55 | No fix listed |
| debian/bouncycastle(Debian:12) | < 1.56-1 | 1.56-1 |
| debian/bouncycastle(Debian:13) | < 1.56-1 | 1.56-1 |
| debian/bouncycastle(Debian:14) | < 1.56-1 | 1.56-1 |
| bouncycastle bc-java | >= 1.51, <= 1.55 | No fix listed |
| ubuntu/bouncycastle(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/bouncycastle(Ubuntu:Pro:16.04) | = 1.49+dfsg-3ubuntu1 | No fix listed |
| ubuntu/bouncycastle(Ubuntu:Pro:16.04) | = 1.51-4ubuntu1 | No fix listed |
| ubuntu/bouncycastle(Ubuntu:Pro:16.04) | = 1.51-4ubuntu1+esm1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- RHSA-2018:2669 vendor-advisory
- RHSA-2018:2927 vendor-advisory
- github.com vendor-advisory
- github.com product
- security.netapp.com
- www.oracle.com
- Debian Security Tracker CVE-2016-1000340 vendor-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking