Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package librelp for openSUSE:Factory checked in at 2026-12-01 17:19:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/librelp (Old) and /work/SRC/openSUSE:Factory/.librelp.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "librelp" Tue Dec 1 17:19:04 2026 rev:46 rq:1401606 version:1.13.0 Changes: -------- --- /work/SRC/openSUSE:Factory/librelp/librelp.changes 2026-08-24 12:02:44.241015341 +0200 +++ /work/SRC/openSUSE:Factory/.librelp.new.1340718/librelp.changes 2026-12-01 17:19:05.983888212 +0100 @@ -1,0 +2,7 @@ +Fri Nov 27 12:54:30 UTC 2026 - Thomas Blume <[email protected]> + +- VUL-0: CVE-2026-132888: librelp: certificate validation bypass in + certvalid TLS authentication mode (bsc#1292059) + * add 0001-Fix-GnuTLS-certvalid-verification.patch + +------------------------------------------------------------------- New: ---- 0001-Fix-GnuTLS-certvalid-verification.patch ----------(New B)---------- New: certvalid TLS authentication mode (bsc#1292059) * add 0001-Fix-GnuTLS-certvalid-verification.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ librelp.spec ++++++ --- /var/tmp/diff_new_pack.fXTOyI/_old 2026-12-01 17:19:06.739920035 +0100 +++ /var/tmp/diff_new_pack.fXTOyI/_new 2026-12-01 17:19:06.740920077 +0100 @@ -25,6 +25,11 @@ Group: Development/Libraries/C and C++ URL: http://www.librelp.com/ Source: http://download.rsyslog.com/librelp/%{name}-%{version}.tar.gz +Patch0: 0001-Fix-GnuTLS-certvalid-verification.patch +BuildRequires: autoconf +BuildRequires: autoconf-archive +BuildRequires: automake +BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(gnutls) >= 2.0.0 BuildRequires: pkgconfig(openssl) @@ -101,7 +106,8 @@ applications. %prep -%setup -q +%autosetup -p1 +autoreconf -fiv %build %configure \ ++++++ 0001-Fix-GnuTLS-certvalid-verification.patch ++++++ >From be7fae052d550b11e1807a79441e9babd27afd68 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards <[email protected]> Date: Wed, 19 Aug 2026 16:21:33 +0200 Subject: [PATCH 2/2] Fix GnuTLS certvalid verification (cherry picked from commit e616484005deb0bbcc7aae980fdb715f5f211112) --- src/tcp.c | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/src/tcp.c b/src/tcp.c index 9199178..547023c 100644 --- a/src/tcp.c +++ b/src/tcp.c @@ -2778,6 +2778,28 @@ finalize_it: LEAVE_RELPFUNC; } +/* Check that the peer certificate chains to a trusted CA. */ +static int +relpTcpChkPeerCertValid_gtls(relpTcp_t *const pThis) +{ + int ret; + unsigned int status = 0; + + ret = gnutls_certificate_verify_peers2(pThis->session, &status); + if(ret < 0) { + callOnAuthErr(pThis, "", "certificate validation failed", + RELP_RET_AUTH_CERT_INVL); + return GNUTLS_E_CERTIFICATE_ERROR; + } + if(status != 0) { /* Certificate is not trusted */ + callOnAuthErr(pThis, "", "certificate validation failed", + RELP_RET_AUTH_CERT_INVL); + return GNUTLS_E_CERTIFICATE_ERROR; + } + + return 0; +} + /* This function will verify the peer's certificate, and check * if the hostname matches, as well as the activation, expiration dates. */ @@ -2813,11 +2835,20 @@ relpTcpVerifyCertificateCallback(gnutls_session_t session) */ gnutls_x509_crt_init(&cert); bMustDeinitCert = 1; /* indicate cert is initialized and must be freed on exit */ - gnutls_x509_crt_import(cert, &cert_list[0], GNUTLS_X509_FMT_DER); + r = gnutls_x509_crt_import(cert, &cert_list[0], GNUTLS_X509_FMT_DER); + if(chkGnutlsCode(pThis, "Failed to import peer certificate", RELP_RET_AUTH_CERT_INVL, r)) { + callOnAuthErr(pThis, "", "certificate validation failed", + RELP_RET_AUTH_CERT_INVL); + r = GNUTLS_E_CERTIFICATE_ERROR; goto done; + } if(pThis->authmode == eRelpAuthMode_Fingerprint) { r = relpTcpChkPeerFingerprint(pThis, cert); - } else if(pThis->authmode == eRelpAuthMode_Name){ + } else if(pThis->authmode == eRelpAuthMode_Name) { r = relpTcpChkPeerName(pThis, (void*)cert); + } else if(pThis->authmode == eRelpAuthMode_CertValid) { + r = relpTcpChkPeerCertValid_gtls(pThis); + } else { + r = GNUTLS_E_CERTIFICATE_ERROR; } if(r != 0) goto done; -- 2.56.1
