public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mingw-glib-networking] f44: Backport fix for CVE-2026-103963
Date: Sat, 31 Oct 2026 14:49:56 GMT [thread overview]
Message-ID: <179345819636.1.8593001071473988914.rpms-mingw-glib-networking-de2038ef07e9@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/mingw-glib-networking
Branch : f44
Commit : de2038ef07e9f0824ca42b84c38be56b8980f504
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-10-31T15:49:40+01:00
Stats : +190/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/mingw-glib-networking/c/de2038ef07e9f0824ca42b84c38be56b8980f504?branch=f44
Log:
Backport fix for CVE-2026-103963
---
diff --git a/CVE-2026-103963.patch b/CVE-2026-103963.patch
new file mode 100644
index 0000000..c5e24a0
--- /dev/null
+++ b/CVE-2026-103963.patch
@@ -0,0 +1,183 @@
+diff -rupN --no-dereference glib-networking-2.80.1/tls/base/gtlssessioncache.c glib-networking-2.80.1-new/tls/base/gtlssessioncache.c
+--- glib-networking-2.80.1/tls/base/gtlssessioncache.c 2025-01-08 22:51:06.000000000 +0100
++++ glib-networking-2.80.1-new/tls/base/gtlssessioncache.c 2026-10-31 15:49:13.322097635 +0100
+@@ -45,6 +45,7 @@ static GHashTable *client_session_cache;
+
+ #define SESSION_CACHE_MAX_SIZE 50
+ #define SESSION_CACHE_MAX_AGE (10ll * 60ll * G_USEC_PER_SEC) /* ten minutes */
++#define SESSION_CACHE_MAX_TLS13_TICKETS 32
+
+ typedef struct {
+ gpointer tls1_2_session_ticket;
+@@ -155,6 +156,18 @@ g_tls_store_session_data (gchar
+ protocol_version < G_TLS_PROTOCOL_VERSION_DTLS_1_0) ||
+ protocol_version > G_TLS_PROTOCOL_VERSION_DTLS_1_2)
+ {
++ while (g_queue_get_length (cache_data->tls1_3_session_tickets) >=
++ SESSION_CACHE_MAX_TLS13_TICKETS)
++ {
++ gpointer evicted_session_data;
++
++ evicted_session_data =
++ g_queue_pop_head (cache_data->tls1_3_session_tickets);
++
++ if (evicted_session_data && cache_data->dec_ref)
++ cache_data->dec_ref (evicted_session_data);
++ }
++
+ g_queue_push_tail (cache_data->tls1_3_session_tickets, session_data_tmp);
+ }
+ else
+diff -rupN --no-dereference glib-networking-2.80.1/tls/tests/meson.build glib-networking-2.80.1-new/tls/tests/meson.build
+--- glib-networking-2.80.1/tls/tests/meson.build 2025-01-08 22:51:06.000000000 +0100
++++ glib-networking-2.80.1-new/tls/tests/meson.build 2026-10-31 15:49:13.322329456 +0100
+@@ -45,6 +45,24 @@ test_programs = [
+ # ['dtls-connection', ['mock-interaction.c', 'lossy-socket.c'], deps, [], [mock_pkcs11_module]],
+ ]
+
++session_cache_test = executable(
++ 'session-cache',
++ 'session-cache.c',
++ include_directories: incs,
++ dependencies: [
++ gio_dep,
++ glib_dep,
++ gobject_dep,
++ tlsbase_dep,
++ ]
++)
++
++test(
++ 'session-cache',
++ session_cache_test,
++ env: envs
++)
++
+ foreach backend: backends
+ foreach program: test_programs
+ program_name = program[0] + '-' + backend
+diff -rupN --no-dereference glib-networking-2.80.1/tls/tests/session-cache.c glib-networking-2.80.1-new/tls/tests/session-cache.c
+--- glib-networking-2.80.1/tls/tests/session-cache.c 1970-01-01 01:00:00.000000000 +0100
++++ glib-networking-2.80.1-new/tls/tests/session-cache.c 2026-10-31 15:49:13.322514482 +0100
+@@ -0,0 +1,121 @@
++/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
++/*
++ * GIO TLS tests
++ *
++ * Copyright 2026 Red Hat, Inc.
++ *
++ * This library is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU Lesser General Public
++ * License as published by the Free Software Foundation; either
++ * version 2.1 of the License, or (at your option) any later version.
++ *
++ * This library is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * Lesser General Public License for more details.
++ *
++ * You should have received a copy of the GNU Lesser General
++ * Public License along with this library; if not, see
++ * <http://www.gnu.org/licenses/>.
++ *
++ * In addition, when the library is used with OpenSSL, a special
++ * exception applies. Refer to the LICENSE_EXCEPTION file for details.
++ *
++ * Author: Nieves Montero <nmontero@redhat.com>
++ */
++
++#include <gio/gio.h>
++
++#include "gtlssessioncache.h"
++
++#define TEST_SESSION_ID "test-session"
++#define TEST_TICKET_COUNT 40
++#define TEST_EXPECTED_TICKETS 32
++
++static gpointer
++session_dup (gpointer session_data)
++{
++ return g_bytes_ref (session_data);
++}
++
++static gint
++session_acquire (gpointer session_data)
++{
++ g_bytes_ref (session_data);
++ return TRUE;
++}
++
++static void
++session_release (gpointer session_data)
++{
++ g_bytes_unref (session_data);
++}
++
++static GBytes *
++create_ticket (guint value)
++{
++ return g_bytes_new (&value, sizeof (value));
++}
++
++static guint
++get_ticket_value (GBytes *ticket)
++{
++ gsize size;
++ const guint *value;
++
++ value = g_bytes_get_data (ticket, &size);
++
++ g_assert_cmpuint (size, ==, sizeof (*value));
++
++ return *value;
++}
++
++static void
++test_tls13_session_ticket_limit (void)
++{
++ guint i;
++
++ for (i = 0; i < TEST_TICKET_COUNT; i++)
++ {
++ GBytes *ticket;
++
++ ticket = create_ticket (i);
++
++ g_tls_store_session_data (TEST_SESSION_ID,
++ ticket,
++ session_dup,
++ session_acquire,
++ session_release,
++ G_TLS_PROTOCOL_VERSION_TLS_1_3);
++
++ g_bytes_unref (ticket);
++ }
++
++ for (i = TEST_TICKET_COUNT - TEST_EXPECTED_TICKETS;
++ i < TEST_TICKET_COUNT;
++ i++)
++ {
++ GBytes *ticket;
++
++ ticket = g_tls_lookup_session_data (TEST_SESSION_ID);
++
++ g_assert_nonnull (ticket);
++ g_assert_cmpuint (get_ticket_value (ticket), ==, i);
++
++ g_bytes_unref (ticket);
++ }
++
++ g_assert_null (g_tls_lookup_session_data (TEST_SESSION_ID));
++}
++
++int
++main (int argc,
++ char *argv[])
++{
++ g_test_init (&argc, &argv, NULL);
++
++ g_test_add_func ("/tls/session-cache/tls13-ticket-limit",
++ test_tls13_session_ticket_limit);
++
++ return g_test_run ();
++}
diff --git a/mingw-glib-networking.spec b/mingw-glib-networking.spec
index c69a696..7cd7ae4 100644
--- a/mingw-glib-networking.spec
+++ b/mingw-glib-networking.spec
@@ -5,12 +5,15 @@
Name: mingw-glib-networking
Version: 2.80.1
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: MinGW Windows glib-networking library
License: LGPL-2.1-or-later
URL: http://www.gnome.org/
Source0: http://ftp.gnome.org/pub/GNOME/sources/glib-networking/%{release_version}/glib-networking-%{version}.tar.xz
+# Backport fix for CVE-2026-103963
+# https://gitlab.gnome.org/GNOME/glib-networking/-/commit/2df47856016fdd3ac7544cc7c899b22819c29c4e
+Patch0: CVE-2026-103963.patch
BuildArch: noarch
@@ -91,6 +94,9 @@ rm -f %{buildroot}%{mingw64_libdir}/gio/modules/*.la
%changelog
+* Sat Oct 31 2026 Sandro Mani <manisandro@gmail.com> - 2.80.1-5
+- Backport fix for CVE-2026-103963
+
* Thu Jan 22 2026 Sandro Mani <manisandro@gmail.com> - 2.80.1-4
- Add Requires: mingw32-gsettings-desktop-schemas (#2431589)
reply other threads:[~2026-10-31 14:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179345819636.1.8593001071473988914.rpms-mingw-glib-networking-de2038ef07e9@fedoraproject.org \
--to=manisandro@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox