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 2178741 - Feature requests: SUNRPC add support for modern ciphers described by RFC8009
Summary: Feature requests: SUNRPC add support for modern ciphers described by RFC8009
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: kernel
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Scott Mayhew
QA Contact: Yongcheng Yang
Michal Stubna
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-15 17:42 UTC by Olga Kornieskaia
Modified: 2023-11-07 10:34 UTC (History)
6 users (show)

Fixed In Version: kernel-5.14.0-306.el9
Doc Type: Enhancement
Doc Text:
.New encryption types for the RPCSEC GSS Kerberos V5 The RPCSEC GSS Kerberos V5 mechanism now supports encryption types defined in RFC 6803 (Camellia Encryption for Kerberos 5) and RFC 8009 (AES Encryption with HMAC-SHA2 for Kerberos 5). The following encryption types have been added: * `camellia128-cts-cmac` * `camellia256-cts-cmac` * `aes128-cts-hmac-sha256-128` * `aes256-cts-hmac-sha384-192` This allows NFS clients and NFS servers to use stronger encryption types when negotiating GSS contexts.
Clone Of:
Environment:
Last Closed: 2023-11-07 08:42:20 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/src/kernel centos-stream-9 merge_requests 2382 0 None opened SUNRPC: Add RPCSEC GSS krb5 support for additional encryption types 2023-04-21 09:42:41 UTC
Red Hat Issue Tracker RHELPLAN-151980 0 None None None 2023-03-15 17:44:17 UTC
Red Hat Product Errata RHSA-2023:6583 0 None None None 2023-11-07 08:42:58 UTC

Description Olga Kornieskaia 2023-03-15 17:42:18 UTC
Description of problem:

In 6.3 linux kernel release there is a series of patches that adds support for Kerberos AES-SHA2-based encryption types has been added for both the NFS client and server. This provides a clean path for deprecating and removing insecure encryption types based on DES and SHA-1. AES-SHA2 is also FIPS-140 compliant, so that NFS with Kerberos may now be used on systems with fips enabled.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 15 Yongcheng Yang 2023-05-03 13:45:05 UTC
Have verified NFS with Kerberos now can work on camellia128-cts-cmac/camellia256-cts-cmac
E.g.
https://beaker.engineering.redhat.com/jobs/7810883
https://beaker.engineering.redhat.com/jobs/7810999
--------------------
[21:34:46 root@ ~~]# cat /proc/fs/nfsd/supported_krb5_enctypes
20,19,26,25,18,17
{Info} 20 - the NFS server supports encryption aes256-cts-hmac-sha384-192
{Info} 19 - the NFS server supports encryption aes128-cts-hmac-sha256-128
{Info} 26 - the NFS server supports encryption camellia256-cts-cmac
{Info} 25 - the NFS server supports encryption camellia128-cts-cmac
{Info} 18 - the NFS server supports encryption aes256-cts-hmac-sha1-96
{Info} 17 - the NFS server supports encryption aes128-cts-hmac-sha1-96
[21:34:47 root@ ~~]# klist -e -k
Keytab name: FILE:/etc/krb5.keytab
KVNO Principal
---- --------------------------------------------------------------------------
   2 host/kvm-04-guest17.lab.eng.rdu2.redhat.com (camellia256-cts-cmac) 
   2 nfs/kvm-04-guest17.lab.eng.rdu2.redhat.com (camellia256-cts-cmac) 
   2 cifs/kvm-04-guest17.lab.eng.rdu2.redhat.com (camellia256-cts-cmac) 
[21:34:47 root@ ~~]# mount -t nfs -o sec=krb5 kvm-04-guest17.lab.eng.rdu2.redhat.com:/exportDir-krb5-crypto /mnt/nfsmp-krb5-crypto
[21:34:47 root@ ~~]# nfsstat -m
/mnt/nfsmp-krb5-crypto from kvm-04-guest17.lab.eng.rdu2.redhat.com:/exportDir-krb5-crypto
 Flags:	rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp6,timeo=600,retrans=2,sec=krb5,clientaddr=2620:52:0:800:216:3eff:fe34:33c9,local_lock=none,addr=2620:52:0:800:216:3eff:fe34:33c9

[21:34:48 root@ ~~]# umount /mnt/nfsmp-krb5-crypto


But camellia128/camellia256 with fips enabled get failed. Maybe that's as expected but I need to get some docs later.
https://beaker.engineering.redhat.com/jobs/7810741
https://beaker.engineering.redhat.com/jobs/7810665
-----------
add_principal: Cryptosystem internal error while creating "root/admin".

P.s. aes256-cts-hmac-sha1-96/aes128-cts-hmac-sha1-96 can work with fips enabled:
https://beaker.engineering.redhat.com/jobs/7810633
https://beaker.engineering.redhat.com/jobs/7810701

Comment 16 Yongcheng Yang 2023-05-04 06:04:38 UTC
(In reply to Yongcheng Yang from comment #15)
...
> But camellia128/camellia256 with fips enabled get failed. Maybe that's as
> expected but I need to get some docs later.

This should be as expected as https://pagure.io/freeipa/issue/8111 says, i.e., the camellia is not added into KRB5 encsalttypes in FIPS mode.

I'm verifying this bug for now.

Comment 25 errata-xmlrpc 2023-11-07 08:42:20 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 (Important: kernel security, 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/RHSA-2023:6583


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