Bug 2083576

Summary: AES-SIV-CMAC disabled in FIPS mode
Product: Red Hat Enterprise Linux 9 Reporter: Ondrej Moriš <omoris>
Component: gnutlsAssignee: Daiki Ueno <dueno>
Status: CLOSED MIGRATED QA Contact: Alexander Sosedkin <asosedki>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 9.0CC: asosedki, dueno, mlichvar, qe-baseos-security
Target Milestone: rcKeywords: MigratedToJIRA, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2005048 Environment:
Last Closed: 2023-09-19 20:44:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2005048    
Bug Blocks:    

Description Ondrej Moriš 2022-05-10 11:49:50 UTC
+++ This bug was initially created as a clone of Bug #2005048 +++

Description of problem:

When chrony upstream tests are executed via TC#520626 - /CoreOS/chrony/Sanity/upstream-testsuite [1] in FIPS mode then 'nts' test case fails (other tests pass) as follows:

Testing NTP authentication with NTS:
  network with 1*1 servers and 1 clients:
    non-default settings:
      client_conf= nosystemcert ntstrustedcerts /dev/null ntstrustedcerts tmp/server1.crt ntstrustedcerts /dev/null logdir tmp log rawmeasurements
      client_server_options=minpoll 6 maxpoll 6 nts
      dns=1
      max_sync_time=400
      server_conf= ntsserverkey tmp/server1.key ntsservercert tmp/server1.crt ntsprocesses 0 ntsrotate 66 ntsdumpdir tmp
    starting node 1:                                    	OK
    starting node 2:                                    	OK
    running simulation:                                 	OK
    checking chronyd exit:
      node 1:                                           	BAD
      node 2:                                           	OK
FAIL

It only happens in FIPS mode.

[1] http://pkgs.devel.redhat.com/cgit/tests/chrony/tree/Sanity/upstream-testsuite

Version-Release number of selected component (if applicable):

chrony-4.1-1.el8

How reproducible:

 * Always when FIPS mode is enabled
 * Never when FIPS mode is disabled

Steps to Reproduce:

1. Enable FIPS mode (fips-mode-setup --enabled && reboot)
2. Install test dependecies (recommend section in main.fmf)
3. Run aforementioned test (bash runtest.sh).

Actual results:

nts fails

Expected results:

all tests pass

--- Additional comment from Miroslav Lichvar on 2021-09-20 13:18:20 UTC ---

NTS uses AES-SIV-CMAC, which does not seem to be allowed by gnutls in FIPS mode. gnutls_aead_cipher_init() returns with an error (An algorithm that is not enabled was negotiated.).

I'm not sure if that is expected or not, but I don't think it's a chrony issue. Reassigning to gnutls.

Comment 1 RHEL Program Management 2023-09-19 20:25:37 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 2 RHEL Program Management 2023-09-19 20:44:33 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.