Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5342

HKDF output length should be restricted to 255 * HashLen

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-9.0.0
    • gnutls
    • None
    • Low
    • rhel-sst-security-crypto
    • ssg_security
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      RFC 5869 2.3 requires that requested output length of HKDF-Expand to
      be equal to or less than 255 times hash output size. However, GnuTLS doesn't enforce this restriction.

      Version-Release number of selected component (if applicable):
      gnutls-3.7.6-12.el9_0

      How reproducible:
      always

      Steps to Reproduce:
      1. call `gnutls_hkdf_expand` with output size larger than 255 * hash length
      2.
      3.

      Actual results:
      The function succeeds.

      Expected results:
      The function should return an error.

      Additional info:
      From FIPS point of view, this is not a blocker, as the generic use of HKDF is not approved in FIPS mode, and the TLS use doesn't require generating output keying material longer than 255 * hash length.

              dueno@redhat.com Daiki Ueno
              dueno@redhat.com Daiki Ueno
              Daiki Ueno Daiki Ueno
              SSG Security QE SSG Security QE
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: