Skip to content

Commit d4186be

Browse files
Patch gnutls for CVE-2025-32989, CVE-2025-32988
1 parent 40d8bab commit d4186be

File tree

3 files changed

+67
-1
lines changed

3 files changed

+67
-1
lines changed

SPECS/gnutls/CVE-2025-32988.patch

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
From e5c3697a3ef3ab6b8a07e3212621ae334f93ea4d Mon Sep 17 00:00:00 2001
2+
From: Azure Linux Security Servicing Account
3+
4+
Date: Tue, 15 Jul 2025 19:22:38 +0000
5+
Subject: [PATCH] Fix CVE CVE-2025-32988 in gnutls
6+
7+
Upstream Patch Reference: https://gitlab.com/gnutls/gnutls/-/commit/608829769cbc247679ffe98841109fc73875e573.patch
8+
---
9+
lib/x509/extensions.c | 2 --
10+
1 file changed, 2 deletions(-)
11+
12+
diff --git a/lib/x509/extensions.c b/lib/x509/extensions.c
13+
index dc333f4..2f0823a 100644
14+
--- a/lib/x509/extensions.c
15+
+++ b/lib/x509/extensions.c
16+
@@ -805,7 +805,6 @@ _gnutls_write_new_othername(asn1_node ext, const char *ext_name,
17+
result = asn1_write_value(ext, name2, oid, 1);
18+
if (result != ASN1_SUCCESS) {
19+
gnutls_assert();
20+
- asn1_delete_structure(&ext);
21+
return _gnutls_asn2err(result);
22+
}
23+
24+
@@ -814,7 +813,6 @@ _gnutls_write_new_othername(asn1_node ext, const char *ext_name,
25+
result = asn1_write_value(ext, name2, data, data_size);
26+
if (result != ASN1_SUCCESS) {
27+
gnutls_assert();
28+
- asn1_delete_structure(&ext);
29+
return _gnutls_asn2err(result);
30+
}
31+
32+
--
33+
2.45.3
34+

SPECS/gnutls/CVE-2025-32989.patch

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 0300315c208ae9fec5780bc7a7f0f319449d1195 Mon Sep 17 00:00:00 2001
2+
From: Azure Linux Security Servicing Account
3+
4+
Date: Tue, 15 Jul 2025 19:22:59 +0000
5+
Subject: [PATCH] Fix CVE CVE-2025-32989 in gnutls
6+
7+
Upstream Patch Reference: https://gitlab.com/gnutls/gnutls/-/commit/8e5ca951257202089246fa37e93a99d210ee5ca2.patch
8+
---
9+
lib/x509/x509_ext.c | 2 +-
10+
1 file changed, 1 insertion(+), 1 deletion(-)
11+
12+
diff --git a/lib/x509/x509_ext.c b/lib/x509/x509_ext.c
13+
index 40b0f77..29cdae6 100644
14+
--- a/lib/x509/x509_ext.c
15+
+++ b/lib/x509/x509_ext.c
16+
@@ -3850,7 +3850,7 @@ int gnutls_x509_ext_ct_import_scts(const gnutls_datum_t *ext, gnutls_x509_ct_sct
17+
}
18+
19+
length = _gnutls_read_uint16(scts_content.data);
20+
- if (length < 4) {
21+
+ if (length < 4 || length > scts_content.size) {
22+
gnutls_free(scts_content.data);
23+
return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE;
24+
}
25+
--
26+
2.45.3
27+

SPECS/gnutls/gnutls.spec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: The GnuTLS Transport Layer Security Library
22
Name: gnutls
33
Version: 3.7.11
4-
Release: 3%{?dist}
4+
Release: 4%{?dist}
55
License: GPLv3+ AND LGPLv2.1+
66
Vendor: Microsoft Corporation
77
Distribution: Mariner
@@ -10,6 +10,8 @@ URL: https://www.gnutls.org
1010
Source0: https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/%{name}-%{version}.tar.xz
1111
Patch0: CVE-2024-12133.patch
1212
Patch1: CVE-2024-12243.patch
13+
Patch2: CVE-2025-32989.patch
14+
Patch3: CVE-2025-32988.patch
1315
BuildRequires: autogen-libopts-devel
1416
BuildRequires: gc-devel
1517
BuildRequires: guile-devel
@@ -96,6 +98,9 @@ sed -i 's/TESTS += test-ciphers-openssl.sh//' tests/slow/Makefile.am
9698
%{_mandir}/man3/*
9799

98100
%changelog
101+
* Tue Jul 15 2025 Azure Linux Security Servicing Account <[email protected]> - 3.7.11-4
102+
- Patch for CVE-2025-32989, CVE-2025-32988
103+
99104
* Tue Mar 11 2025 Sreeniavsulu Malavathula <[email protected]> - 3.7.11-3
100105
- Patch to fix CVE-2024-12243
101106

0 commit comments

Comments
 (0)