Certain signatures result in the ecc point multiply function being called with out-of-range scalars, which may give incorrect results, or crash in an assertion failure. It's an old bug, probably since Nettle's initial implementation of ECDSA. Even when it's not possible to trigger an assertion failure, it's easy to produce valid-looking input "signatures" that hit out-of range intermediate scalar values where point multiplication may misbehave. This applies to all the NIST secp* curves as well as the GOST curves. Reference: https://lists.lysator.liu.se/pipermail/nettle-bugs/2021/009457.html
Created gnutls tracking bugs for this issue: Affects: fedora-all [bug 1942535]
List of upstream fixes: - New functions ecc_mod_mul_canonical and ecc_mod_sqr_canonical. https://git.lysator.liu.se/nettle/nettle/-/commit/a63893791280d441c713293491da97c79c0950fe - Use ecc_mod_mul_canonical for point comparison. https://git.lysator.liu.se/nettle/nettle/-/commit/971bed6ab4b27014eb23085e8176917e1a096fd5 - Fix bug in ecc_ecdsa_verify. https://git.lysator.liu.se/nettle/nettle/-/commit/74ee0e82b6891e090f20723750faeb19064e31b2 - Ensure ecdsa_sign output is canonically reduced. https://git.lysator.liu.se/nettle/nettle/-/commit/51f643eee00e2caa65c8a2f5857f49acdf3ef1ce - Analogous fix to ecc_gostdsa_verify. https://git.lysator.liu.se/nettle/nettle/-/commit/401c8d53d8a8cf1e79980e62bda3f946f8e07c14 - Similar fix for eddsa. https://git.lysator.liu.se/nettle/nettle/-/commit/ae3801a0e5cce276c270973214385c86048d5f7b - Fix canonical reduction in gostdsa_vko. https://git.lysator.liu.se/nettle/nettle/-/commit/63f222c60b03470c0005aa9bc4296fbf585f68b9
Created nettle tracking bugs for this issue: Affects: fedora-all [bug 1942921]
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2021:1145 https://access.redhat.com/errata/RHSA-2021:1145
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2021-20305
Created mingw-nettle tracking bugs for this issue: Affects: fedora-all [bug 1948707]
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2021:1206 https://access.redhat.com/errata/RHSA-2021:1206
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.1 Extended Update Support Via RHSA-2021:1245 https://access.redhat.com/errata/RHSA-2021:1245
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.2 Extended Update Support Via RHSA-2021:1246 https://access.redhat.com/errata/RHSA-2021:1246
Acknowledgments: Name: Niels Möller
External References: https://lists.lysator.liu.se/pipermail/nettle-bugs/2021/009457.html
Statement: * Although Red Hat OpenStack's dibbler package bundles nettle, it does not include the flawed functionality and is therefore unaffected.
This issue has been addressed in the following products: Red Hat Enterprise Linux 7.7 Extended Update Support Via RHSA-2021:2280 https://access.redhat.com/errata/RHSA-2021:2280
This issue has been addressed in the following products: Red Hat Enterprise Linux 7.6 Advanced Update Support Red Hat Enterprise Linux 7.6 Telco Extended Update Support Red Hat Enterprise Linux 7.6 Update Services for SAP Solutions Via RHSA-2021:2356 https://access.redhat.com/errata/RHSA-2021:2356
This issue has been addressed in the following products: Red Hat Enterprise Linux 7.4 Advanced Update Support Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions Red Hat Enterprise Linux 7.4 Telco Extended Update Support Via RHSA-2021:2758 https://access.redhat.com/errata/RHSA-2021:2758
This issue has been addressed in the following products: Red Hat Enterprise Linux 7.3 Advanced Update Support Via RHSA-2021:2760 https://access.redhat.com/errata/RHSA-2021:2760