CVE-2021-4160: BN_mod_exp may produce incorrect results on MIPS

Published Jan 28, 2022
·
Updated

OpenSSL could provide weaker than expected security, caused by a carry propagation flaw in the MIPS32 and MIPS64 squaring procedure. An attacker could exploit this vulnerability to launch further attacks on the system

Other sources

There is a carry propagation bug in the MIPS32 and MIPS64 squaring procedure. Many EC algorithms are affected, including some of the TLS 1.3 default curves. Impact was not analyzed in detail, because the pre-requisites for attack are considered unlikely and include reusing private keys. Analysis suggests that attacks against RSA and DSA as a result of this defect would be very difficult to perform and are not believed likely. Attacks against DH are considered just feasible (although very difficult) because most of the work necessary to deduce information about a private key may be performed offline. The amount of resources required for such an attack would be significant. However, for an attack on TLS to be meaningful, the server would have to share the DH private key among multiple clients, which is no longer an option since CVE-2016-0701. This issue affects OpenSSL versions 1.0.2, 1.1.1 and 3.0.0. It was addressed in the releases of 1.1.1m and 3.0.1 on the 15th of December 2021. For the 1.0.2 release it is addressed in git commit 6fc1aaaf3 that is available to premium support customers only. It will be made available in 1.0.2zc when it is released. The issue only affects OpenSSL on MIPS platforms. Fixed in OpenSSL 3.0.1 (Affected 3.0.0). Fixed in OpenSSL 1.1.1m (Affected 1.1.1-1.1.1l). Fixed in OpenSSL 1.0.2zc-dev (Affected 1.0.2-1.0.2zb).

Affected Software

38 affected componentsFixes available
debian/openssl
1.1.1n-0+deb10u31.1.1n-0+deb10u61.1.1w-0+deb11u11.1.1n-0+deb11u53.0.11-1~deb12u23.1.4-2
OpenSSL OpenSSL>=1.0.2<=1.0.2zb
OpenSSL OpenSSL>=1.1.1<1.1.1m
OpenSSL OpenSSL=3.0.0
OpenSSL OpenSSL=3.0.0-alpha1
OpenSSL OpenSSL=3.0.0-alpha10
OpenSSL OpenSSL=3.0.0-alpha11
OpenSSL OpenSSL=3.0.0-alpha12
OpenSSL OpenSSL=3.0.0-alpha13
OpenSSL OpenSSL=3.0.0-alpha14
OpenSSL OpenSSL=3.0.0-alpha15
OpenSSL OpenSSL=3.0.0-alpha16
OpenSSL OpenSSL=3.0.0-alpha17
OpenSSL OpenSSL=3.0.0-alpha2
OpenSSL OpenSSL=3.0.0-alpha3
OpenSSL OpenSSL=3.0.0-alpha4
OpenSSL OpenSSL=3.0.0-alpha5
OpenSSL OpenSSL=3.0.0-alpha6
OpenSSL OpenSSL=3.0.0-alpha7
OpenSSL OpenSSL=3.0.0-alpha8
OpenSSL OpenSSL=3.0.0-alpha9
OpenSSL OpenSSL=3.0.0-beta1
OpenSSL OpenSSL=3.0.0-beta2
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Oracle Health Sciences Inform Publisher=6.2.1.1
Oracle Health Sciences Inform Publisher=6.3.1.1
Oracle JD Edwards EnterpriseOne Tools=9.2.6.3
Oracle Jd Edwards World Security=a9.4
Oracle PeopleSoft Enterprise PeopleTools=8.58
Oracle PeopleSoft Enterprise PeopleTools=8.59
Siemens Sinec Ins<1.0
Siemens Sinec Ins=1.0
Siemens Sinec Ins=1.0-sp1
Oracle Enterprise Manager Ops Center=12.4.0.0
IBM Cognos Analytics 11.2.x<=IBM Cognos Analytics 11.2.x
IBM Cognos Analytics 11.1.x<=IBM Cognos Analytics 11.1.x

Event History

Jan 28, 2022
CVE Published
via MITRE·09:28 PM
Data Sourced
via MITRE·09:28 PM
DescriptionWeakness

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-4160?

CVE-2021-4160 is a vulnerability in OpenSSL that could provide weaker than expected security caused by a carry propagation flaw in the MIPS32 and MIPS64 squaring procedure.

2

What is the severity of CVE-2021-4160?

The severity of CVE-2021-4160 is medium, with a severity value of 6.7.

3

Which software versions are affected by CVE-2021-4160?

OpenSSL versions 1.0.2 to 1.0.2zb, 1.1.1 to 1.1.1m, and 3.0.0 are affected by CVE-2021-4160.

4

How can I fix CVE-2021-4160?

To fix CVE-2021-4160, update OpenSSL to version 1.0.2zc, 1.1.1n, or 3.0.11.

5

Where can I find more information about CVE-2021-4160?

You can find more information about CVE-2021-4160 in the commitdiff and security advisory links provided.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203