From f85168c2c5ee7b107ee072823c452f7317b26317 Mon Sep 17 00:00:00 2001 From: Joan Torres Lopez Date: Fri, 14 Aug 2026 12:50:50 +0200 Subject: [PATCH] Fix crash in session-settings related with ActUser Resolves: https://redhat.atlassian.net/browse/RHEL-240874 --- ...sion-settings-keep-a-ref-to-the-user.patch | 26 +++++++++++++++++++ gdm.spec | 8 +++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 0001-gdm-session-settings-keep-a-ref-to-the-user.patch diff --git a/0001-gdm-session-settings-keep-a-ref-to-the-user.patch b/0001-gdm-session-settings-keep-a-ref-to-the-user.patch new file mode 100644 index 0000000..022cc36 --- /dev/null +++ b/0001-gdm-session-settings-keep-a-ref-to-the-user.patch @@ -0,0 +1,26 @@ +From 5a0c2afd7e2001a848101a8154d38fcf1b092963 Mon Sep 17 00:00:00 2001 +From: Ignacio Casal Quinteiro +Date: Fri, 14 Aug 2026 11:43:09 +0200 +Subject: [PATCH] gdm-session-settings: keep a ref to the user + +The user needs to keep a reference so it stays alive during +the signal emissions in case the manager decides to remove +the user internally. + +Part-of: +--- + daemon/gdm-session-settings.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/daemon/gdm-session-settings.c b/daemon/gdm-session-settings.c +index fd1c097..7a604d7 100644 +--- a/daemon/gdm-session-settings.c ++++ b/daemon/gdm-session-settings.c +@@ -356,6 +356,7 @@ gdm_session_settings_load (GdmSessionSettings *settings, + + settings->priv->user = act_user_manager_get_user (settings->priv->user_manager, + username); ++ g_object_ref (settings->priv->user); + + g_clear_object (&old_user); + diff --git a/gdm.spec b/gdm.spec index db3ec1f..57dc8b1 100644 --- a/gdm.spec +++ b/gdm.spec @@ -11,7 +11,7 @@ Name: gdm Epoch: 1 Version: 40.1 -Release: 48%{?dist} +Release: 49%{?dist} Summary: The GNOME Display Manager License: GPLv2+ @@ -83,6 +83,8 @@ Patch180002: 0001-data-Add-support-for-unified-authentication.patch Patch190001: 0001-data-Add-PAM-substack-wrappers-to-prevent-auth-bypas.patch +Patch200001: 0001-gdm-session-settings-keep-a-ref-to-the-user.patch + # Non-upstreamable workarounds Patch66610001: 0001-data-reap-gdm-sessions-on-shutdown.patch @@ -394,6 +396,10 @@ dconf update || : %{_libdir}/pkgconfig/gdm-pam-extensions.pc %changelog +* Fri Aug 14 2026 Joan Torres Lopez - 40.1-49 +- Fix crash in session-settings related with ActUser + Resolves: https://redhat.atlassian.net/browse/RHEL-240874 + * Fri Jul 10 2026 Joan Torres Lopez - 40.1-48 - Fix auth bypass in authselect pam substacks Resolves: https://redhat.atlassian.net/browse/RHEL-194090