diff --git a/backport-Fix-memory-leak-issue-in-read_Subid_range.patch b/backport-Fix-memory-leak-issue-in-read_Subid_range.patch new file mode 100644 index 0000000000000000000000000000000000000000..ca89744d07a0b4b47b7a238f26130ba642d4a510 --- /dev/null +++ b/backport-Fix-memory-leak-issue-in-read_Subid_range.patch @@ -0,0 +1,25 @@ +From 47344ed614cb6adfbf9e0eec7f7c18a672e1057b Mon Sep 17 00:00:00 2001 +From: fortunate-lee +Date: Thu, 23 Oct 2025 15:01:31 +0800 +Subject: [PATCH] Fix memory leak issue in read_Subid_range() + +Signed-off-by: fortunate-lee +--- + sys-utils/unshare.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c +index 3ff4137..157aeac 100644 +--- a/sys-utils/unshare.c ++++ b/sys-utils/unshare.c +@@ -463,6 +463,7 @@ static struct map_range *read_subid_range(char *filename, uid_t uid) + fclose(idmap); + free(pw); + free(pwbuf); ++ free(line); + + return map; + } +-- +2.33.0 + diff --git a/util-linux.spec b/util-linux.spec index 938df267d44e8844cb42331bf86086d1348284e3..d11f2f2d96027adf0895874fe1b740c2a3ae69d6 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -3,7 +3,7 @@ Name: util-linux Version: 2.39.1 -Release: 30 +Release: 31 Summary: A random collection of Linux utilities License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain URL: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git @@ -134,6 +134,7 @@ Patch9003: add-new-gmo-file.patch Patch9004: mount-fix-use-option-owner-mount-failed.patch Patch9005: Add-new-cpu-model-name-of-arm-Kunpeng.patch Patch9006: fix-audit-arch.h-support-sw64.patch +Patch9007: backport-Fix-memory-leak-issue-in-read_Subid_range.patch BuildRequires: audit-libs-devel >= 1.0.6 gettext-devel libselinux-devel ncurses-devel pam-devel zlib-devel popt-devel BuildRequires: libutempter-devel systemd-devel systemd libuser-devel libcap-ng-devel python3-devel gcc autoconf automake @@ -492,6 +493,12 @@ fi %endif %changelog +* Wed Nov 12 2025 lijian - 2.39.1-31 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC: Fix memory leak issue in read_Subid_range + * Mon Oct 20 2025 yanglongkang - 2.39.1-30 - backport community patches