diff --git a/gnutls-3.7.8.tar.xz b/gnutls-3.7.8.tar.xz deleted file mode 100644 index 4678f69..0000000 --- a/gnutls-3.7.8.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c58ad39af0670efe6a8aee5e3a8b2331a1200418b64b7c51977fb396d4617114 -size 6029220 diff --git a/gnutls-3.7.8.tar.xz.sig b/gnutls-3.7.8.tar.xz.sig deleted file mode 100644 index 112c588..0000000 Binary files a/gnutls-3.7.8.tar.xz.sig and /dev/null differ diff --git a/gnutls-3.7.9.tar.xz b/gnutls-3.7.9.tar.xz new file mode 100644 index 0000000..8c12498 --- /dev/null +++ b/gnutls-3.7.9.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aaa03416cdbd54eb155187b359e3ec3ed52ec73df4df35a0edd49429ff64d844 +size 6377212 diff --git a/gnutls-3.7.9.tar.xz.sig b/gnutls-3.7.9.tar.xz.sig new file mode 100644 index 0000000..5488913 Binary files /dev/null and b/gnutls-3.7.9.tar.xz.sig differ diff --git a/gnutls-FIPS-140-3-references.patch b/gnutls-FIPS-140-3-references.patch index d57d38e..101757c 100644 --- a/gnutls-FIPS-140-3-references.patch +++ b/gnutls-FIPS-140-3-references.patch @@ -1,7 +1,7 @@ -Index: gnutls-3.7.8/configure.ac +Index: gnutls-3.7.9/configure.ac =================================================================== ---- gnutls-3.7.8.orig/configure.ac -+++ gnutls-3.7.8/configure.ac +--- gnutls-3.7.9.orig/configure.ac ++++ gnutls-3.7.9/configure.ac @@ -588,19 +588,19 @@ LT_INIT([disable-static,win32-dll,shared AC_LIB_HAVE_LINKFLAGS(dl,, [#include ], [dladdr (0, 0);]) @@ -25,10 +25,10 @@ Index: gnutls-3.7.8/configure.ac AC_ARG_WITH(fips140-module-name, AS_HELP_STRING([--with-fips140-module-name], [specify the FIPS140 module name]), -Index: gnutls-3.7.8/doc/cha-gtls-app.texi +Index: gnutls-3.7.9/doc/cha-gtls-app.texi =================================================================== ---- gnutls-3.7.8.orig/doc/cha-gtls-app.texi -+++ gnutls-3.7.8/doc/cha-gtls-app.texi +--- gnutls-3.7.9.orig/doc/cha-gtls-app.texi ++++ gnutls-3.7.9/doc/cha-gtls-app.texi @@ -206,7 +206,7 @@ CPU. The currently available options are @end itemize @@ -38,10 +38,10 @@ Index: gnutls-3.7.8/doc/cha-gtls-app.texi if set to one it will force the FIPS mode enablement. @end multitable -Index: gnutls-3.7.8/doc/cha-internals.texi +Index: gnutls-3.7.9/doc/cha-internals.texi =================================================================== ---- gnutls-3.7.8.orig/doc/cha-internals.texi -+++ gnutls-3.7.8/doc/cha-internals.texi +--- gnutls-3.7.9.orig/doc/cha-internals.texi ++++ gnutls-3.7.9/doc/cha-internals.texi @@ -14,7 +14,7 @@ happens inside the black box. * TLS Hello Extension Handling:: * Cryptographic Backend:: @@ -162,10 +162,10 @@ Index: gnutls-3.7.8/doc/cha-internals.texi operation. It can be attached to the current execution thread with @funcref{gnutls_fips140_push_context} and its internal state will be updated until it is detached with -Index: gnutls-3.7.8/doc/enums.texi +Index: gnutls-3.7.9/doc/enums.texi =================================================================== ---- gnutls-3.7.8.orig/doc/enums.texi -+++ gnutls-3.7.8/doc/enums.texi +--- gnutls-3.7.9.orig/doc/enums.texi ++++ gnutls-3.7.9/doc/enums.texi @@ -1169,7 +1169,7 @@ application traffic secret is installed @c gnutls_fips_mode_t @table @code @@ -186,10 +186,10 @@ Index: gnutls-3.7.8/doc/enums.texi application is aware of the followed security policy, and needs to utilize disallowed operations for other reasons (e.g., compatibility). @item GNUTLS_@-FIPS140_@-LOG -Index: gnutls-3.7.8/doc/functions/gnutls_fips140_set_mode +Index: gnutls-3.7.9/doc/functions/gnutls_fips140_set_mode =================================================================== ---- gnutls-3.7.8.orig/doc/functions/gnutls_fips140_set_mode -+++ gnutls-3.7.8/doc/functions/gnutls_fips140_set_mode +--- gnutls-3.7.9.orig/doc/functions/gnutls_fips140_set_mode ++++ gnutls-3.7.9/doc/functions/gnutls_fips140_set_mode @@ -3,7 +3,7 @@ @@ -215,10 +215,10 @@ Index: gnutls-3.7.8/doc/functions/gnutls_fips140_set_mode values for @code{mode} or to @code{GNUTLS_FIPS140_SELFTESTS} mode, the library switches to @code{GNUTLS_FIPS140_STRICT} mode. -Index: gnutls-3.7.8/doc/gnutls.html +Index: gnutls-3.7.9/doc/gnutls.html =================================================================== ---- gnutls-3.7.8.orig/doc/gnutls.html -+++ gnutls-3.7.8/doc/gnutls.html +--- gnutls-3.7.9.orig/doc/gnutls.html ++++ gnutls-3.7.9/doc/gnutls.html @@ -486,7 +486,7 @@ Documentation License”.
  • 11.4 TLS Extension Handling
  • 11.5 Cryptographic Backend
  • @@ -439,11 +439,11 @@ Index: gnutls-3.7.8/doc/gnutls.html gnutls_fips140_get_operation_stateCore TLS API gnutls_fips140_mode_enabledCore TLS API gnutls_fips140_pop_contextCore TLS API -Index: gnutls-3.7.8/doc/gnutls.info-3 +Index: gnutls-3.7.9/doc/gnutls.info-3 =================================================================== ---- gnutls-3.7.8.orig/doc/gnutls.info-3 -+++ gnutls-3.7.8/doc/gnutls.info-3 -@@ -2459,7 +2459,7 @@ to 'more'. Both will exit with a status +--- gnutls-3.7.9.orig/doc/gnutls.info-3 ++++ gnutls-3.7.9/doc/gnutls.info-3 +@@ -2458,7 +2458,7 @@ to 'more'. Both will exit with a status --inline-commands-prefix=str Change the default delimiter for inline commands --provider=file Specify the PKCS #11 provider library - file must pre-exist @@ -452,7 +452,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 --list-config Reports the configuration of the library --logfile=str Redirect informational messages to a specific file --keymatexport=str Label used for exporting keying material -@@ -3560,7 +3560,7 @@ to know what happens inside the black bo +@@ -3559,7 +3559,7 @@ to know what happens inside the black bo * TLS Hello Extension Handling:: * Cryptographic Backend:: * Random Number Generators-internals:: @@ -461,7 +461,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3  File: gnutls.info, Node: The TLS Protocol, Next: TLS Handshake Protocol, Up: Internal architecture of GnuTLS -@@ -4092,7 +4092,7 @@ and abstract key types::. +@@ -4091,7 +4091,7 @@ and abstract key types::. kernel implementation of '/dev/crypto'.  @@ -470,7 +470,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 11.6 Random Number Generators ============================= -@@ -4102,7 +4102,7 @@ About the generators +@@ -4101,7 +4101,7 @@ About the generators GnuTLS provides two random generators. The default, and the AES-DRBG random generator which is only used when the library is compiled with @@ -479,7 +479,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 The default generator - inner workings -------------------------------------- -@@ -4251,25 +4251,25 @@ after observing the output of the PRNG. +@@ -4250,25 +4250,25 @@ after observing the output of the PRNG. the above paragraph, all levels are immune to such attack.  @@ -513,7 +513,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 modified as follows. * The random generator used switches to DRBG-AES -@@ -4277,11 +4277,11 @@ modified as follows. +@@ -4276,11 +4276,11 @@ modified as follows. startup * Algorithm self-tests are run on library load @@ -528,7 +528,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 generation * Any cryptographic operation will be refused if any of the self-tests failed -@@ -4290,7 +4290,7 @@ There are also few environment variables +@@ -4289,7 +4289,7 @@ There are also few environment variables The environment variable 'GNUTLS_SKIP_FIPS_INTEGRITY_CHECKS' will disable the library integrity tests on startup, and the variable 'GNUTLS_FORCE_FIPS_MODE' can be set to force a value from *note Figure @@ -537,7 +537,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 while '0' will disable it. The integrity checks for the dependent libraries and GnuTLS are -@@ -4299,20 +4299,20 @@ library. The key for the operations can +@@ -4298,20 +4298,20 @@ library. The key for the operations can with the configure option '-with-fips140-key'. The MAC algorithm used is HMAC-SHA256. @@ -562,7 +562,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 'GNUTLS_FIPS140_STRICT' The default mode; all forbidden operations will cause an operation failure via error code. -@@ -4320,8 +4320,8 @@ in *note Figure 11.5: gnutls_fips_mode_t +@@ -4319,8 +4319,8 @@ in *note Figure 11.5: gnutls_fips_mode_t A transient state during library initialization. That state cannot be set or seen by applications. 'GNUTLS_FIPS140_LAX' @@ -573,7 +573,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 the application is aware of the followed security policy, and needs to utilize disallowed operations for other reasons (e.g., compatibility). -@@ -4334,7 +4334,7 @@ in *note Figure 11.5: gnutls_fips_mode_t +@@ -4333,7 +4333,7 @@ in *note Figure 11.5: gnutls_fips_mode_t Figure 11.5: The 'gnutls_fips_mode_t' enumeration. The intention of this API is to be used by applications which may run in @@ -582,7 +582,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 set, e.g., for non-security related purposes. In these cases applications should wrap the non-compliant code within blocks like the following. -@@ -4358,10 +4358,10 @@ are macros to simplify the following seq +@@ -4357,10 +4357,10 @@ are macros to simplify the following seq The reason of the 'GNUTLS_FIPS140_SET_MODE_THREAD' flag in the previous calls is to localize the change in the mode. Note also, that such a @@ -595,7 +595,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 gnutls_fips140_set_mode(GNUTLS_FIPS140_LAX, 0); Service indicator -@@ -4380,7 +4380,7 @@ within a given context. +@@ -4379,7 +4379,7 @@ within a given context. 'INT *note gnutls_fips140_push_context:: (gnutls_fips140_context_t CONTEXT)' 'INT *note gnutls_fips140_pop_context:: ( VOID)' @@ -604,7 +604,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 operation. It can be attached to the current execution thread with *note gnutls_fips140_push_context:: and its internal state will be updated until it is detached with *note gnutls_fips140_pop_context::. -@@ -4838,8 +4838,8 @@ There are certifications from national o +@@ -4837,8 +4837,8 @@ There are certifications from national o practices, such as unit testing and reliance on well known crypto primitives. @@ -615,7 +615,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3  File: gnutls.info, Node: Error codes, Next: Supported ciphersuites, Prev: Support, Up: Top -@@ -9316,7 +9316,7 @@ gnutls_fips140_set_mode +@@ -9315,7 +9315,7 @@ gnutls_fips140_set_mode -- Function: void gnutls_fips140_set_mode (gnutls_fips_mode_t MODE, unsigned FLAGS) @@ -624,7 +624,7 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 FLAGS: should be zero or 'GNUTLS_FIPS140_SET_MODE_THREAD' -@@ -9326,12 +9326,12 @@ gnutls_fips140_set_mode +@@ -9325,12 +9325,12 @@ gnutls_fips140_set_mode undefined. When the flag 'GNUTLS_FIPS140_SET_MODE_THREAD' is specified then @@ -639,10 +639,10 @@ Index: gnutls-3.7.8/doc/gnutls.info-3 values for 'mode' or to 'GNUTLS_FIPS140_SELFTESTS' mode, the library switches to 'GNUTLS_FIPS140_STRICT' mode. -Index: gnutls-3.7.8/doc/invoke-gnutls-cli.texi +Index: gnutls-3.7.9/doc/invoke-gnutls-cli.texi =================================================================== ---- gnutls-3.7.8.orig/doc/invoke-gnutls-cli.texi -+++ gnutls-3.7.8/doc/invoke-gnutls-cli.texi +--- gnutls-3.7.9.orig/doc/invoke-gnutls-cli.texi ++++ gnutls-3.7.9/doc/invoke-gnutls-cli.texi @@ -99,7 +99,7 @@ None: --inline-commands-prefix=str Change the default delimiter for inline commands --provider=file Specify the PKCS #11 provider library @@ -652,10 +652,10 @@ Index: gnutls-3.7.8/doc/invoke-gnutls-cli.texi --list-config Reports the configuration of the library --logfile=str Redirect informational messages to a specific file --keymatexport=str Label used for exporting keying material -Index: gnutls-3.7.8/doc/manpages/gnutls-cli.1 +Index: gnutls-3.7.9/doc/manpages/gnutls-cli.1 =================================================================== ---- gnutls-3.7.8.orig/doc/manpages/gnutls-cli.1 -+++ gnutls-3.7.8/doc/manpages/gnutls-cli.1 +--- gnutls-3.7.9.orig/doc/manpages/gnutls-cli.1 ++++ gnutls-3.7.9/doc/manpages/gnutls-cli.1 @@ -389,7 +389,7 @@ Specify the PKCS #11 provider library. This will override the default options in /etc/gnutls/pkcs11.conf .TP @@ -665,10 +665,10 @@ Index: gnutls-3.7.8/doc/manpages/gnutls-cli.1 .sp .TP .NOP \f\*[B-Font]\-\-list\-config\f[] -Index: gnutls-3.7.8/doc/reference/html/gnutls-gnutls.html +Index: gnutls-3.7.9/doc/reference/html/gnutls-gnutls.html =================================================================== ---- gnutls-3.7.8.orig/doc/reference/html/gnutls-gnutls.html -+++ gnutls-3.7.8/doc/reference/html/gnutls-gnutls.html +--- gnutls-3.7.9.orig/doc/reference/html/gnutls-gnutls.html ++++ gnutls-3.7.9/doc/reference/html/gnutls-gnutls.html @@ -20552,12 +20552,12 @@ gnutls_fips140_set_mode (: Core TLS API. (line 3564) * gnutls_fips140_mode_enabled: Core TLS API. (line 3578) * gnutls_fips140_pop_context: Core TLS API. (line 3596) -Index: gnutls-3.7.8/doc/gnutls.info +Index: gnutls-3.7.9/doc/gnutls.info =================================================================== ---- gnutls-3.7.8.orig/doc/gnutls.info -+++ gnutls-3.7.8/doc/gnutls.info -@@ -612,7 +612,7 @@ Ref: fig-crypto-layers757273 - Ref: Cryptographic Backend-Footnote-1760557 - Ref: Cryptographic Backend-Footnote-2760642 - Node: Random Number Generators-internals760750 --Node: FIPS140-2 mode768114 -+Node: FIPS140-3 mode768114 - Ref: gnutls_fips_mode_t770750 - Node: Upgrading from previous versions774347 - Node: Support788341 +--- gnutls-3.7.9.orig/doc/gnutls.info ++++ gnutls-3.7.9/doc/gnutls.info +@@ -611,7 +611,7 @@ Ref: fig-crypto-layers757265 + Ref: Cryptographic Backend-Footnote-1760549 + Ref: Cryptographic Backend-Footnote-2760634 + Node: Random Number Generators-internals760742 +-Node: FIPS140-2 mode768106 ++Node: FIPS140-3 mode768106 + Ref: gnutls_fips_mode_t770742 + Node: Upgrading from previous versions774339 + Node: Support788333 +Index: gnutls-3.7.9/src/gnutls-cli-options.json +=================================================================== +--- gnutls-3.7.9.orig/src/gnutls-cli-options.json ++++ gnutls-3.7.9/src/gnutls-cli-options.json +@@ -372,7 +372,7 @@ + }, + { + "long-option": "fips140-mode", +- "description": "Reports the status of the FIPS140-2 mode in gnutls library" ++ "description": "Reports the status of the FIPS140-3 mode in gnutls library" + }, + { + "long-option": "list-config", diff --git a/gnutls.changes b/gnutls.changes index c79d635..59f268c 100644 --- a/gnutls.changes +++ b/gnutls.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Feb 10 13:12:25 UTC 2023 - Pedro Monreal + +- Update to 3.7.9: [bsc#1208143, CVE-2023-0361] + * libgnutls: Fix a Bleichenbacher oracle in the TLS RSA key + exchange. [GNUTLS-SA-2020-07-14, CVSS: medium][CVE-2023-0361] + * Rebase gnutls-FIPS-140-3-references.patch + ------------------------------------------------------------------- Fri Jan 20 09:58:53 UTC 2023 - Pedro Monreal diff --git a/gnutls.spec b/gnutls.spec index 6a08915..b02f8ef 100644 --- a/gnutls.spec +++ b/gnutls.spec @@ -36,7 +36,7 @@ %bcond_with tpm %bcond_without guile Name: gnutls -Version: 3.7.8 +Version: 3.7.9 Release: 0 Summary: The GNU Transport Layer Security Library License: GPL-3.0-or-later AND LGPL-2.1-or-later