CVE-2021-23840
CVE-2021-23840 · Integer overflow in CipherUpdate
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Calls to EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate may overflow the output length argument in some cases where the input length is close to the maximum permissable length for an integer on the platform. In such cases the return value from the function call will be 1 (indicating success), but the output length value will be negative. This could cause applications to behave incorrectly or crash. OpenSSL versions 1.1.1i and below are affected by this issue. Users of these versions should upgrade to OpenSSL 1.1.1j. OpenSSL versions 1.0.2x and below are affected by this issue. However OpenSSL 1.0.2 is out of support and no longer receiving public updates. Premium support customers of OpenSSL 1.0.2 should upgrade to 1.0.2y. Other users should upgrade to 1.1.1j. Fixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i). Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x).
CVSS 7.5 · High · EPSS 50.7% · Fix available
- Published
- Updated
Affected products and versions
openssl
- Versions
- Fixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i): Affected
- Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x): Affected
No fix published
openssl Debian:12
- Affected ranges
- ECOSYSTEM: < 1.1.1j-1
Update to 1.1.1j-1
openssl Debian:13
- Affected ranges
- ECOSYSTEM: < 1.1.1j-1
Update to 1.1.1j-1
openssl Debian:14
- Affected ranges
- ECOSYSTEM: < 1.1.1j-1
Update to 1.1.1j-1
openssl Ubuntu:Pro:14.04:LTS
- Versions
- 1.0.1e-3ubuntu1
- 1.0.1e-4ubuntu1
- 1.0.1e-4ubuntu2
- 1.0.1e-4ubuntu3
- 1.0.1e-4ubuntu4
- 1.0.1f-1ubuntu1
- 1.0.1f-1ubuntu2
- 1.0.1f-1ubuntu2.1
- 1.0.1f-1ubuntu2.2
- 1.0.1f-1ubuntu2.3
- 1.0.1f-1ubuntu2.4
- 1.0.1f-1ubuntu2.5
- 1.0.1f-1ubuntu2.7
- 1.0.1f-1ubuntu2.8
- 1.0.1f-1ubuntu2.11
- 1.0.1f-1ubuntu2.12
- 1.0.1f-1ubuntu2.15
- 1.0.1f-1ubuntu2.16
- 1.0.1f-1ubuntu2.17
- 1.0.1f-1ubuntu2.18
- 1.0.1f-1ubuntu2.19
- 1.0.1f-1ubuntu2.20
- 1.0.1f-1ubuntu2.21
- 1.0.1f-1ubuntu2.22
- 1.0.1f-1ubuntu2.23
- 1.0.1f-1ubuntu2.24
- 1.0.1f-1ubuntu2.25
- 1.0.1f-1ubuntu2.26
- 1.0.1f-1ubuntu2.27
- 1.0.1f-1ubuntu2.27+esm1
- 1.0.1f-1ubuntu2.27+esm2
- 1.0.1f-1ubuntu2.27+esm3
- 1.0.1f-1ubuntu2.27+esm4
- 1.0.1f-1ubuntu2.27+esm5
- 1.0.1f-1ubuntu2.27+esm6
- 1.0.1f-1ubuntu2.27+esm7
- 1.0.1f-1ubuntu2.27+esm9
- Affected ranges
- ECOSYSTEM: < 1.0.1f-1ubuntu2.27+esm10
Update to 1.0.1f-1ubuntu2.27+esm10
openssl Ubuntu:16.04:LTS
- Versions
- 1.0.2d-0ubuntu1
- 1.0.2d-0ubuntu2
- 1.0.2e-1ubuntu1
- 1.0.2f-2ubuntu1
- 1.0.2g-1ubuntu2
- 1.0.2g-1ubuntu3
- 1.0.2g-1ubuntu4
- 1.0.2g-1ubuntu4.1
- 1.0.2g-1ubuntu4.2
- 1.0.2g-1ubuntu4.4
- 1.0.2g-1ubuntu4.5
- 1.0.2g-1ubuntu4.6
- 1.0.2g-1ubuntu4.8
- 1.0.2g-1ubuntu4.9
- 1.0.2g-1ubuntu4.10
- 1.0.2g-1ubuntu4.11
- 1.0.2g-1ubuntu4.12
- 1.0.2g-1ubuntu4.13
- 1.0.2g-1ubuntu4.14
- 1.0.2g-1ubuntu4.15
- 1.0.2g-1ubuntu4.16
- 1.0.2g-1ubuntu4.17
- 1.0.2g-1ubuntu4.18
- Affected ranges
- ECOSYSTEM: < 1.0.2g-1ubuntu4.19
Update to 1.0.2g-1ubuntu4.19
edk2 Ubuntu:Pro:16.04:LTS
- Versions
- 0~20150106.5c2d456b-2
- 0~20160104.c2a892d7-1
- 0~20160408.ffea0a2c-2
- 0~20160408.ffea0a2c-2ubuntu0.1
- 0~20160408.ffea0a2c-2ubuntu0.2
- 0~20160408.ffea0a2c-2ubuntu0.2+esm1
- 0~20160408.ffea0a2c-2ubuntu0.2+esm3
- 0~20160408.ffea0a2c-2ubuntu0.2+esm4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
openssl Ubuntu:Pro:FIPS-updates:16.04:LTS
- Versions
- 1.0.2g-1ubuntu4.fips.4.9.1
- 1.0.2g-1ubuntu4.fips.4.13.1
- 1.0.2g-1ubuntu4.fips.4.15.1
- 1.0.2g-1ubuntu4.fips.4.16.1
- 1.0.2g-1ubuntu4.fips.4.17.1
- 1.0.2g-1ubuntu4.fips.4.18.1
- Affected ranges
- ECOSYSTEM: < 1.0.2g-1ubuntu4.fips.4.19.3
Update to 1.0.2g-1ubuntu4.fips.4.19.3
openssl Ubuntu:Pro:FIPS:16.04:LTS
- Versions
- 1.0.2g-1ubuntu4.fips.4.6~ppa1
- 1.0.2g-1ubuntu4.fips.4.6~ppa2
- 1.0.2g-1ubuntu4.fips.4.6~ppa3
- 1.0.2g-1ubuntu4.fips.4.6
- 1.0.2g-1ubuntu4.fips.4.6.1
- 1.0.2g-1ubuntu4.fips.4.6.2
- 1.0.2g-1ubuntu4.fips.4.6.3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
openssl Ubuntu:18.04:LTS
- Versions
- 1.0.2g-1ubuntu13
- 1.0.2g-1ubuntu14
- 1.0.2n-1ubuntu1
- 1.1.0g-2ubuntu1
- 1.1.0g-2ubuntu2
- 1.1.0g-2ubuntu3
- 1.1.0g-2ubuntu4
- 1.1.0g-2ubuntu4.1
- 1.1.0g-2ubuntu4.3
- 1.1.1-1ubuntu2.1~18.04.1
- 1.1.1-1ubuntu2.1~18.04.2
- 1.1.1-1ubuntu2.1~18.04.3
- 1.1.1-1ubuntu2.1~18.04.4
- 1.1.1-1ubuntu2.1~18.04.5
- 1.1.1-1ubuntu2.1~18.04.6
- 1.1.1-1ubuntu2.1~18.04.7
- Affected ranges
- ECOSYSTEM: < 1.1.1-1ubuntu2.1~18.04.8
Update to 1.1.1-1ubuntu2.1~18.04.8
openssl1.0 Ubuntu:18.04:LTS
- Versions
- 1.0.2n-1ubuntu2
- 1.0.2n-1ubuntu3
- 1.0.2n-1ubuntu4
- 1.0.2n-1ubuntu5
- 1.0.2n-1ubuntu5.1
- 1.0.2n-1ubuntu5.2
- 1.0.2n-1ubuntu5.3
- 1.0.2n-1ubuntu5.4
- 1.0.2n-1ubuntu5.5
- Affected ranges
- ECOSYSTEM: < 1.0.2n-1ubuntu5.6
Update to 1.0.2n-1ubuntu5.6
edk2 Ubuntu:Pro:18.04:LTS
- Versions
- 0~20170911.5dfba97c-1
- 0~20171010.234dbcef-1
- 0~20171027.76fd5a66-1
- 0~20171205.a9212288-1
- 0~20180105.0bc94c74-1
- 0~20180205.c0d9813c-1
- 0~20180205.c0d9813c-2
- 0~20180205.c0d9813c-2ubuntu0.1
- 0~20180205.c0d9813c-2ubuntu0.2
- 0~20180205.c0d9813c-2ubuntu0.3
- 0~20180205.c0d9813c-2ubuntu0.3+esm1
- 0~20180205.c0d9813c-2ubuntu0.3+esm2
- 0~20180205.c0d9813c-2ubuntu0.3+esm3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
openssl Ubuntu:Pro:FIPS-updates:18.04:LTS
- Versions
- 1.1.1-1ubuntu2.fips.2.1~18.04.5.1
- 1.1.1-1ubuntu2.fips.2.1~18.04.6.1
- 1.1.1-1ubuntu2.fips.2.1~18.04.7.1
- Affected ranges
- ECOSYSTEM: < 1.1.1-1ubuntu2.fips.2.1~18.04.9.1
Update to 1.1.1-1ubuntu2.fips.2.1~18.04.9.1
openssl Ubuntu:Pro:FIPS:18.04:LTS
- Versions
- 1.1.1-1ubuntu2.fips.2.1~18.04.3.1
- 1.1.1-1ubuntu2.fips.2.1~18.04.15.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
edk2 Ubuntu:20.04:LTS
- Versions
- 0~20190606.20d2e5a1-2ubuntu1
- 0~20190828.37eef910-3
- 0~20190828.37eef910-4
- 0~20191122.bd85bf54-1
- 0~20191122.bd85bf54-1ubuntu1
- 0~20191122.bd85bf54-2
- 0~20191122.bd85bf54-2ubuntu1
- 0~20191122.bd85bf54-2ubuntu2
- 0~20191122.bd85bf54-2ubuntu3
- 0~20191122.bd85bf54-2ubuntu3.1
- 0~20191122.bd85bf54-2ubuntu3.2
- Affected ranges
- ECOSYSTEM: < 0~20191122.bd85bf54-2ubuntu3.3
Update to 0~20191122.bd85bf54-2ubuntu3.3
openssl Ubuntu:20.04:LTS
- Versions
- 1.1.1c-1ubuntu4
- 1.1.1d-2ubuntu3
- 1.1.1d-2ubuntu6
- 1.1.1f-1ubuntu1
- 1.1.1f-1ubuntu2
- 1.1.1f-1ubuntu2.1
- Affected ranges
- ECOSYSTEM: < 1.1.1f-1ubuntu2.2
Update to 1.1.1f-1ubuntu2.2
openssl Ubuntu:Pro:FIPS-updates:20.04:LTS
- Versions
- 1.1.1f-1ubuntu2.fips.7
- Affected ranges
- ECOSYSTEM: < 1.1.1f-1ubuntu2.fips.7.2
Update to 1.1.1f-1ubuntu2.fips.7.2
openssl Ubuntu:Pro:FIPS:20.04:LTS
- Affected ranges
- ECOSYSTEM: < 1.1.1f-1ubuntu2.fips.2.8
Update to 1.1.1f-1ubuntu2.fips.2.8
nodejs Ubuntu:Pro:22.04:LTS
- Versions
- 12.22.5~dfsg-5ubuntu1
- 12.22.7~dfsg-2ubuntu1
- 12.22.7~dfsg-2ubuntu3
- 12.22.9~dfsg-1ubuntu2
- 12.22.9~dfsg-1ubuntu3
- 12.22.9~dfsg-1ubuntu3.1
- 12.22.9~dfsg-1ubuntu3.2
- 12.22.9~dfsg-1ubuntu3.3
- 12.22.9~dfsg-1ubuntu3.4
- 12.22.9~dfsg-1ubuntu3.5
- 12.22.9~dfsg-1ubuntu3.6
- 12.22.9~dfsg-1ubuntu3.6+esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://www.openssl.org/news/secadv/20210216.txt
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=6a51b9e1d0cf0bf8515f7201b68fb0a3482b3dc1
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=9b1129239f3ebb1d1c98ce9ed41d5c9476c47cb2
- https://www.debian.org/security/2021/dsa-4855
- https://security.gentoo.org/glsa/202103-03
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.tenable.com/security/tns-2021-10
- https://www.tenable.com/security/tns-2021-09
- https://security.netapp.com/advisory/ntap-20210219-0009/
- https://www.tenable.com/security/tns-2021-03
- https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
- https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44846
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://kc.mcafee.com/corporate/index?page=content&id=SB10366
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://security.netapp.com/advisory/ntap-20240621-0006/
- https://nvd.nist.gov/vuln/detail/CVE-2021-23840