From 994d01d55232af6c0a160df25a42556454f2c755 Mon Sep 17 00:00:00 2001 From: Tomas Halman Date: Wed, 15 Apr 2026 14:40:58 +0200 Subject: [PATCH] Fix crash in 'sss_client/autofs/sss_autofs.c' Resolves: RHEL-154804 --- 0003-add-missing-include.patch | 28 ++++++++++++++++++++++++++++ sssd.spec | 6 +++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 0003-add-missing-include.patch diff --git a/0003-add-missing-include.patch b/0003-add-missing-include.patch new file mode 100644 index 0000000..5e83949 --- /dev/null +++ b/0003-add-missing-include.patch @@ -0,0 +1,28 @@ +commit ca662958218f4484a89be94015066ff6a14875a8 +Author: Alexey Tikhonov +Date: Wed Apr 15 09:42:34 2026 +0200 + + Add missing include + + Original patch f3af8c89af656767333410b0e94da9288dd8ade8 didn't include + "config.h" that provides `HAVE_PTHREAD_EXT` + It works in some branches accidentally because of transitive include + via "sss_cli.h" but that's fragile (and in some branches "sss_cli.h" + doesn't include "config.h") + + Reviewed-by: Tomáš Halman + (cherry picked from commit a809b9236250e6f20e9a9ff1452708cd288b705f) + +diff --git a/src/sss_client/autofs/sss_autofs.c b/src/sss_client/autofs/sss_autofs.c +index f5986767f..45e2ce460 100644 +--- a/src/sss_client/autofs/sss_autofs.c ++++ b/src/sss_client/autofs/sss_autofs.c +@@ -18,6 +18,8 @@ + along with this program. If not, see . + */ + ++#include "config.h" ++ + #include + #include + #include diff --git a/sssd.spec b/sssd.spec index 895ee43..8f00a3e 100644 --- a/sssd.spec +++ b/sssd.spec @@ -27,7 +27,7 @@ Name: sssd Version: 2.9.8 -Release: 3%{?dist} +Release: 4%{?dist} Summary: System Security Services Daemon License: GPLv3+ URL: https://github.com/SSSD/sssd/ @@ -36,6 +36,7 @@ Source0: https://github.com/SSSD/sssd/releases/download/%{version}/sssd-%{versio ### Patches ### Patch1: 0001-do-not-require-GID-for-non-POSIX-group.patch Patch2: 0002-fix-use-after-free-in-kcm_read_options.patch +Patch3: 0003-add-missing-include.patch ### Dependencies ### @@ -1085,6 +1086,9 @@ fi %systemd_postun_with_restart sssd.service %changelog +* Wed Apr 15 2026 Tomas Halman - 2.9.8-4 +- Resolves: RHEL-154804 Crash in 'sss_client/autofs/sss_autofs.c' + * Mon Apr 13 2026 Tomas Halman - 2.9.8-3 - Resolves: RHEL-167758 - sssd-kcm fails to start if krb5_renew_interval is specified