CVE-2024-14041ML-KEM (Kyber) decapsulation leaks private key information through non-constant-time…
In Bouncy Castle for Java from 1.73 to before 1.78, three ML-KEM (CRYSTALS-Kyber) routines divided secret-derived polynomial coefficients by the modulus q: Poly.toMsg, which decodes the decrypted message, and the ciphertext compression routines Poly.compressPoly and PolyVec.compressPolyVec. An attacker able to measure the timing of a large number of decapsulations performed with the same long-term private key can recover that key. These are the KyberSlash1 (Poly.toMsg) and KyberSlash2 (ciphertext compression) divisions. Compression performed during encapsulation operates on values that become the public ciphertext and is not affected.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have 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 24.04 | bouncycastle | Fix pending | UBUNTU-CVE-2024-14041 | |
| Ubuntu 22.04 | bouncycastle | Fix pending | UBUNTU-CVE-2024-14041 | |
| Ubuntu 20.04 | bouncycastle | Fix pending | UBUNTU-CVE-2024-14041 | |
| Ubuntu 18.04 | bouncycastle | Fix pending | UBUNTU-CVE-2024-14041 | |
| Ubuntu 16.04 | bouncycastle | Fix pending | UBUNTU-CVE-2024-14041 | |
| Debian 14 | bouncycastle | Fixed | 1.80-1 | DEBIAN-CVE-2024-14041 |
| Debian 13 | bouncycastle | Fixed | 1.80-1 | DEBIAN-CVE-2024-14041 |
| Debian 12 | bouncycastle | Fix pending | DEBIAN-CVE-2024-14041 | |
| Red Hat Enterprise Linux 9 | pki-resteasy-client | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-core | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-jackson2-provider | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-servlet-initializer | Not affected | ||
| Red Hat Enterprise Linux 9 | resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy-javadoc | Not affected |
What the vendor says
As published in the CVE record by bcorg, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Legion of the Bouncy Castle Inc. BC-JAVA: affected: 1.73 to before 1.78; fixed in
1.78
Vendor advisories:
- https://github.com/bcgit/bc-java/wiki/CVE-2024-14041 (vendor-advisory)
- https://github.com/bcgit/bc-java/commit/5adb2c5c5b462a332b01a012bea0784b40b904e5 (patch)
- https://github.com/bcgit/bc-java/commit/1590247178f2280defa36421475f015175dfbe9e (patch)
References
- https://github.com/bcgit/bc-java/wiki/CVE-2024-14041
- https://github.com/bcgit/bc-java/commit/5adb2c5c5b462a332b01a012bea0784b40b904e5
- https://github.com/bcgit/bc-java/commit/1590247178f2280defa36421475f015175dfbe9e
- https://kyberslash.cr.yp.to/
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.