CVE-2021-3711 SM2 Decryption Buffer Overflow
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- MySQLOpenSSLUbuntuDebian
Description
In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Typically an application will call this function twice. The first time, on entry, the "out" parameter can be NULL and, on exit, the "outlen" parameter is populated with the buffer size required to hold the decrypted plaintext. The application can then allocate a sufficiently sized buffer and call EVP_PKEY_decrypt() again, but this time passing a non-NULL value for the "out" parameter. A bug in the implementation of the SM2 decryption code means that the calculation of the buffer size required to hold the plaintext returned by the first call to EVP_PKEY_decrypt() can be smaller than the actual size required by the second call. This can lead to a buffer overflow when EVP_PKEY_decrypt() is called by the application a second time with a buffer that is too small. A malicious attacker who is able present SM2 content for decryption to an application could cause attacker chosen data to overflow the buffer by up to a maximum of 62 bytes altering the contents of other data held after the buffer, possibly changing application behaviour or causing the application to crash. The location of the buffer is application dependent but is typically heap allocated. Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k).
Upgrade path
60 packages: 36 fixed, 13 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| netapp active iq unified manager | All versions | No fix listed | No fix yet |
| netapp clustered data ontap | All versions | No fix listed | No fix yet |
| netapp clustered data ontap antivirus connector | All versions | No fix listed | No fix yet |
| netapp hci management node | All versions | No fix listed | No fix yet |
| netapp manageability software development kit | All versions | No fix listed | No fix yet |
| netapp oncommand insight | All versions | No fix listed | No fix yet |
| netapp oncommand workflow automation | All versions | No fix listed | No fix yet |
| netapp santricity smi-s provider | All versions | No fix listed | No fix yet |
| netapp snapcenter | All versions | No fix listed | No fix yet |
| netapp solidfire | All versions | No fix listed | No fix yet |
| netapp storage encryption | All versions | No fix listed | No fix yet |
| ubuntu/openssl(Ubuntu Pro FIPS 18.04) | = 1.1.1-1ubuntu2.fips.2.1~18.04.3.1; = 1.1.1-1ubuntu2.fips.2.1~18.04.15.2; All versions | No fix listed | No fix yet |
| ubuntu/openssl(Ubuntu Pro FIPS 20.04) | = 1.1.1f-1ubuntu2.fips.2.8; = 1.1.1f-1ubuntu2.fips.7.1; All versions | No fix listed | No fix yet |
| alpine/openssl(Alpine v3.11) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.12) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.13) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.14) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.15) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.16) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.17) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.18) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.19) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.20) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.21) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.22) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.23) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl(Alpine v3.24) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl1.1-compat(Alpine v3.17) | < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl1.1-compat(Alpine v3.18) | < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
| alpine/openssl3(Alpine v3.15) | < 1.1.1l-r0 | 1.1.1l-r0 | Fixed |
… and 30 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/openssl(Ubuntu:22.04) | < 1.1.1l-1ubuntu1 | 1.1.1l-1ubuntu1 |
| crates.io openssl-src(crates.io) | < 111.16.0 | 111.16.0 |
| crates.io openssl-src(crates.io) | >= 0.0.0-0, < 111.16.0 | 111.16.0 |
| debian/openssl(Debian:12) | < 1.1.1l-1 | 1.1.1l-1 |
| debian/openssl(Debian:13) | < 1.1.1l-1 | 1.1.1l-1 |
| debian/openssl(Debian:14) | < 1.1.1l-1 | 1.1.1l-1 |
| alpine/openssl(Alpine:v3.11) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.12) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.13) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.14) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.15) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.16) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.17) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.18) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.19) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.20) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.21) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.22) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.23) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl(Alpine:v3.24) | >= 1.1.1, < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl1.1-compat(Alpine:v3.17) | < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl1.1-compat(Alpine:v3.18) | < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl3(Alpine:v3.15) | < 1.1.1l-r0 | 1.1.1l-r0 |
| alpine/openssl3(Alpine:v3.16) | < 1.1.1l-r0 | 1.1.1l-r0 |
| OpenSSL | = Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k) | No fix listed |
Show 87 more
| Product | Affected versions | Fixed in |
|---|---|---|
| OpenSSL | >= 1.1.1, < 1.1.1l | 1.1.1l |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| netapp active iq unified manager | All versions | No fix listed |
| netapp clustered data ontap | All versions | No fix listed |
| netapp clustered data ontap antivirus connector | All versions | No fix listed |
| netapp e-series santricity os controller | >= 11.0, <= 11.50.2 | No fix listed |
| netapp hci management node | All versions | No fix listed |
| netapp manageability software development kit | All versions | No fix listed |
| netapp oncommand insight | All versions | No fix listed |
| netapp oncommand workflow automation | All versions | No fix listed |
| netapp santricity smi-s provider | All versions | No fix listed |
| netapp snapcenter | All versions | No fix listed |
| netapp solidfire | All versions | No fix listed |
| netapp storage encryption | All versions | No fix listed |
| oracle communications cloud native core security edge protection proxy | = 1.7.0 | No fix listed |
| oracle communications cloud native core unified data repository | = 1.15.0 | No fix listed |
| oracle communications session border controller | = 8.4 | No fix listed |
| oracle communications session border controller | = 9.0 | No fix listed |
| oracle communications unified session manager | = 8.2.5 | No fix listed |
| oracle communications unified session manager | = 8.4.5 | No fix listed |
| oracle enterprise communications broker | = 3.2.0 | No fix listed |
| oracle enterprise communications broker | = 3.3.0 | No fix listed |
| oracle Enterprise Session Border Controller | = 8.4 | No fix listed |
| oracle Enterprise Session Border Controller | = 9.0 | No fix listed |
| oracle essbase | < 11.1.2.4.47 | 11.1.2.4.47 |
| oracle essbase | >= 21.1, < 21.3 | 21.3 |
| oracle health sciences inform publisher | = 6.2.1.1 | No fix listed |
| oracle health sciences inform publisher | = 6.3.1.1 | No fix listed |
| oracle JD Edwards EnterpriseOne Tools | < 9.2.6.3 | 9.2.6.3 |
| oracle jd edwards world security | = a9.4 | No fix listed |
| oracle MySQL Connectors | <= 8.0.27 | No fix listed |
| oracle mysql enterprise monitor | <= 8.0.25 | No fix listed |
| oracle mysql server | >= 5.7.0, <= 5.7.35 | No fix listed |
| oracle mysql server | >= 8.0.0, <= 8.0.26 | No fix listed |
| oracle PeopleSoft Enterprise PeopleTools | = 8.57 | No fix listed |
| oracle PeopleSoft Enterprise PeopleTools | = 8.58 | No fix listed |
| oracle PeopleSoft Enterprise PeopleTools | = 8.59 | No fix listed |
| oracle zfs storage appliance kit | = 8.8 | No fix listed |
| tenable Nessus Network Monitor | <= 5.13.1 | No fix listed |
| tenable.sc | >= 5.16.0, <= 5.19.1 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | < 1.1.1-1ubuntu2.1~18.04.13 | 1.1.1-1ubuntu2.1~18.04.13 |
| ubuntu/openssl(Ubuntu:18.04) | = 1.0.2g-1ubuntu13 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.0.2g-1ubuntu14 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.0.2n-1ubuntu1 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu1 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu2 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu3 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu4 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu4.1 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu4.3 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.1-1ubuntu2.1~18.04.1 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.1-1ubuntu2.1~18.04.2 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.1-1ubuntu2.1~18.04.3 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.1-1ubuntu2.1~18.04.4 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.1-1ubuntu2.1~18.04.5 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.1-1ubuntu2.1~18.04.6 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.1-1ubuntu2.1~18.04.7 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.1-1ubuntu2.1~18.04.8 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.1-1ubuntu2.1~18.04.9 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.1-1ubuntu2.1~18.04.10 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS-updates:18.04) | < 1.1.1-1ubuntu2.fips.2.1~18.04.13.2 | 1.1.1-1ubuntu2.fips.2.1~18.04.13.2 |
| ubuntu/openssl(Ubuntu:Pro:FIPS-updates:18.04) | = 1.1.1-1ubuntu2.fips.2.1~18.04.5.1 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS-updates:18.04) | = 1.1.1-1ubuntu2.fips.2.1~18.04.6.1 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS-updates:18.04) | = 1.1.1-1ubuntu2.fips.2.1~18.04.7.1 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS-updates:18.04) | = 1.1.1-1ubuntu2.fips.2.1~18.04.9.1 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS-updates:18.04) | = 1.1.1-1ubuntu2.fips.2.1~18.04.9.2 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS-updates:18.04) | = 1.1.1-1ubuntu2.fips.2.1~18.04.9.3 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS:18.04) | All versions | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS:18.04) | = 1.1.1-1ubuntu2.fips.2.1~18.04.3.1 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS:18.04) | = 1.1.1-1ubuntu2.fips.2.1~18.04.15.2 | No fix listed |
| ubuntu/openssl(Ubuntu:20.04) | < 1.1.1f-1ubuntu2.8 | 1.1.1f-1ubuntu2.8 |
| ubuntu/openssl(Ubuntu:20.04) | = 1.1.1c-1ubuntu4 | No fix listed |
| ubuntu/openssl(Ubuntu:20.04) | = 1.1.1d-2ubuntu3 | No fix listed |
| ubuntu/openssl(Ubuntu:20.04) | = 1.1.1d-2ubuntu6 | No fix listed |
| ubuntu/openssl(Ubuntu:20.04) | = 1.1.1f-1ubuntu1 | No fix listed |
| ubuntu/openssl(Ubuntu:20.04) | = 1.1.1f-1ubuntu2 | No fix listed |
| ubuntu/openssl(Ubuntu:20.04) | = 1.1.1f-1ubuntu2.1 | No fix listed |
| ubuntu/openssl(Ubuntu:20.04) | = 1.1.1f-1ubuntu2.2 | No fix listed |
| ubuntu/openssl(Ubuntu:20.04) | = 1.1.1f-1ubuntu2.3 | No fix listed |
| ubuntu/openssl(Ubuntu:20.04) | = 1.1.1f-1ubuntu2.4 | No fix listed |
| ubuntu/openssl(Ubuntu:20.04) | = 1.1.1f-1ubuntu2.5 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS-updates:20.04) | < 1.1.1f-1ubuntu2.fips.7.2 | 1.1.1f-1ubuntu2.fips.7.2 |
| ubuntu/openssl(Ubuntu:Pro:FIPS-updates:20.04) | = 1.1.1f-1ubuntu2.fips.7 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS:20.04) | All versions | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS:20.04) | = 1.1.1f-1ubuntu2.fips.2.8 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS:20.04) | = 1.1.1f-1ubuntu2.fips.7.1 | No fix listed |
References
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5051-1 vendor-advisory
- www.cve.org issue-tracking
- nvd.nist.gov third-party-advisory vendor-advisory
- www.tenable.com third-party-advisory
- www.tenable.com third-party-advisory
- www.oracle.com patch third-party-advisory
- www.oracle.com patch third-party-advisory
- www.oracle.com patch third-party-advisory
- www.openssl.org issue-tracking vendor-advisory
- DSA-4963 third-party-advisory vendor-advisory
- security.netapp.com
- security.netapp.com third-party-advisory
- security.netapp.com third-party-advisory
- GLSA-202210-02 third-party-advisory vendor-advisory
- GLSA-202209-02 third-party-advisory vendor-advisory
- rustsec.org vendor-advisory
- lists.apache.org
- [tomcat-dev] 20210826 Re: OpenSSL security announcement - do we need a Tomcat Native release? mailing-list
- lists.apache.org
- [tomcat-dev] 20210825 OpenSSL security announcement - do we need a Tomcat Native release? mailing-list
- git.openssl.org
- git.openssl.org
- cert-portal.siemens.com third-party-advisory
- [oss-security] 20210825 OpenSSL SM2 Decryption Buffer Overflow (CVE-2021-3711), Read buffer overruns processing ASN.1 strings (CVE-2021-3712) mailing-list third-party-advisory
- crates.io product
- github.com
- Debian Security Tracker CVE-2021-3711 vendor-advisory
- security.alpinelinux.org vendor-advisory
- OpenSSL 1.1.1 Series Release Notes vendor-advisory
- Release and Advisory Timeline vendor-advisory
- Security advisory list (json) vendor-advisory
- ENISA EUVD EUVD-2022-2673 third-party-advisory