RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1826337 - libreswan in FIPS mode rejects ECDSA keys based on faulty RSA key size check being applied
Summary: libreswan in FIPS mode rejects ECDSA keys based on faulty RSA key size check ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libreswan
Version: 8.3
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: 8.0
Assignee: Paul Wouters
QA Contact: Ondrej Moriš
URL:
Whiteboard:
Depends On: 1820206
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-21 13:15 UTC by Paul Wouters
Modified: 2020-11-04 03:23 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Minimal key length check for FIPS assumed keys were RSA based Consequence: ECDSA keys that have less bits were getting rejected, despite being fine for FIPS Fix: Do not apply RSA size check to ECDSA keys Result: ECDSA based certificates and authby=ecdsa can now be used in FIPS mode.
Clone Of:
Environment:
Last Closed: 2020-11-04 03:18:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:4722 0 None None None 2020-11-04 03:18:08 UTC

Description Paul Wouters 2020-04-21 13:15:19 UTC
ECDSA keys are being rejected in FIPS mode because the minimum key size for RSA key lengths is mistakenly checked for.

I've fixed this upstream:

https://github.com/libreswan/libreswan/commit/ad73bc5a5b2ea0d509feff07b56fbbdfe046a218

https://github.com/libreswan/libreswan/commit/101f48526d1848cc3b185b9617d19f1b614bc72e

I also added one of two test cases upstream:

RSA key size reject:

https://github.com/libreswan/libreswan/commit/6cd7ee47d78f4084ce4e156f4f2acc1437da6863

Second test case with ECDSA certificates is pending,

Comment 1 Paul Wouters 2020-04-22 00:39:40 UTC
upstrean test case fips-14-ikev2-x509-ecdsa

Comment 2 Paul Wouters 2020-05-21 15:29:11 UTC
upstream tests:

fips-13-ikev2-x509-key2032
fips-14-ikev2-x509-ecdsa
fips-15-ikev2-x509-key2048

Comment 12 errata-xmlrpc 2020-11-04 03:18:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (libreswan bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:4722


Note You need to log in before you can comment on or make changes to this bug.