Changes between v2.41.2 and v2.41.3 -------------------------------------------- commit 5305e6c70b274f679329b79c0e1ef5a07e9dc1a6 Author: Karel Zak Date: Mon Dec 15 13:50:01 2025 +0100 build-sys: update release dates Signed-off-by: Karel Zak NEWS | 2 +- configure.ac | 2 +- meson.build | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 8a708eb99f5918c8358cdc85e086539f838cad9c Author: Karel Zak Date: Mon Dec 15 13:49:45 2025 +0100 docs: add v2.41.3-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.41.3-ReleaseNotes | 83 +++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) commit 17e7decf656e23486b280f4b6f7752e79c75083c Author: Мирослав Николић Date: Mon Dec 15 13:38:51 2025 +0100 po: update sr.po (from translationproject.org) po/sr.po | 4777 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 2404 insertions(+), 2373 deletions(-) commit f7a02eb1971045940abd95d320d0919995d0dc5f Author: Karel Zak Date: Mon Dec 15 13:38:48 2025 +0100 po-man: merge changes po-man/util-linux-man.pot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 98efc507eeb67d4ab10ee146d378af99962cc03f Author: Мирослав Николић Date: Mon Dec 15 13:38:43 2025 +0100 po-man: update sr.po (from translationproject.org) po-man/sr.po | 31927 ++++++++++++--------------------------------------------- 1 file changed, 6405 insertions(+), 25522 deletions(-) commit 2d61c2f4a9fa5c3a9a5ba8a3fed08812f3008dac Author: yao zhang <294772273@qq.com> Date: Thu Dec 11 19:20:58 2025 +0800 Fix memory leak in setpwnam() Add memeory release for tmpname upon successful return. (cherry picked from commit 9ac5db2c5b7b8bde467448968c77a289b4ed1465) login-utils/setpwnam.c | 1 + 1 file changed, 1 insertion(+) commit 73ba96a3043127a0bd3f3eff6080b32705043b63 Author: Karel Zak Date: Thu Aug 21 11:35:17 2025 +0200 lscpu: use maximum CPU speed from DMI, avoid duplicate version string * Read maximum CPU speed from DMI * Don't use max speed if nonsensical * Avoid appending "CPU @ speed" to the version string if it's already included. (This is a code robustness improvement as DMI is currently read for ARMs only, and the issue was detected on Intel.) Fixes: https://github.com/util-linux/util-linux/commit/a772d7c493afcec32f0123fc947013f74db6e45d Signed-off-by: Karel Zak (cherry picked from commit c332544d215ccb466a64a441eb5a421b9fe8cdfd) sys-utils/lscpu-dmi.c | 21 +++++++++++++++++---- sys-utils/lscpu.h | 1 + 2 files changed, 18 insertions(+), 4 deletions(-) commit 0bdcbccf51cd58b90d0f76563fc22e2f52537399 Author: Masatake YAMATO Date: Sun Nov 30 04:10:46 2025 +0900 lsfd: fix memory leak related to stat_error_class Memory objects pointed by the name member of a file object allocate as an instance of stat_error_class are leaked. I intrdouced this bug in a125e2eea7cea4d0bac1404c2e1b1d65d11cc10c. In the commit, I arranged the class hierarchy. Signed-off-by: Masatake YAMATO (cherry picked from commit 3ce751c0347de472ac1dcdd58e06a21759f1ad78) lsfd-cmd/file.c | 6 ++++++ 1 file changed, 6 insertions(+) commit affb93a19c29162c48a36380f5ab316d1f5ccef9 Author: Masatake YAMATO Date: Sat Nov 8 11:42:31 2025 +0900 lsfd: (bugfix) use PRIu32 for prining lport of netlink socket Fixes #3849 Signed-off-by: Masatake YAMATO (cherry picked from commit 5bbe47432f98a7e391da04157af9906832058ef7) lsfd-cmd/sock-xinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 254d583cf77b2db2555c64124c21e643b4162395 Author: Karel Zak Date: Thu Nov 27 16:50:19 2025 +0100 eject: fix const qualifier warning in read_speed Fix const qualifier discarded warning in read_speed(). This warning is reported by gcc 15 which defaults to the C23 standard. The strrchr() function returns a pointer into a const string, so the receiving variable must be declared as const char *. Signed-off-by: Karel Zak (cherry picked from commit cc1f2ac99b99eede36a58cf115a56bdfbc977e52) sys-utils/eject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8aaf7e2ea5f4ff6b8c9890f40f71a95eb3fcfb11 Author: Karel Zak Date: Thu Nov 27 16:48:53 2025 +0100 partx: fix const qualifier warning in get_max_partno Fix const qualifier discarded warning in get_max_partno(). This warning is reported by gcc 15 which defaults to the C23 standard. The strrchr() function returns a pointer into a const string, so the receiving variable must be declared as const char *. Signed-off-by: Karel Zak (cherry picked from commit 4c94ce5d05d97420df7a512bbbaee8c4017414ae) disk-utils/partx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 2d3ab47ab080cd37bd4fadf6d5ad879bde528603 Author: Karel Zak Date: Thu Nov 27 16:47:46 2025 +0100 enosys: fix const qualifier warning in parse_block Fix const qualifier discarded warning in parse_block(). This warning is reported by gcc 15 which defaults to the C23 standard. The strchr() function returns a pointer into a const string, so the receiving variable must be declared as const char *. Signed-off-by: Karel Zak (cherry picked from commit 70379d240dcf975d140160bb4c14cf1b3fe70bcc) misc-utils/enosys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1f58ebe18a233da355d6d50de766a232f72d29c2 Author: Karel Zak Date: Thu Nov 27 16:46:22 2025 +0100 whereis: fix const qualifier warnings for C23 Fix const qualifier discarded warnings in dirlist_add_subdir() and lookup() functions. These warnings are reported by gcc 15 which defaults to the C23 standard. The strchr() and strrchr() functions return pointers into const strings, so the receiving variables must be declared as const char *. Signed-off-by: Karel Zak (cherry picked from commit 01018b74163f9122c75179a7c991b0aa0f8c603c) misc-utils/whereis.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit 21a430258ac1c7862aefc8e4c655cb25fe038d85 Author: Karel Zak Date: Thu Nov 27 16:44:47 2025 +0100 namei: fix const qualifier warning in readlink_to_namei Fix const qualifier discarded warning in readlink_to_namei(). This warning is reported by gcc 15 which defaults to the C23 standard. The strrchr() function returns a pointer into a const string, so the receiving variable must be declared as const char *. Signed-off-by: Karel Zak (cherry picked from commit e318417f00982bf496fd2359853b07ada3e3c544) misc-utils/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6fc66c11023efa1c0da53b2b99186052eeaf1321 Author: Karel Zak Date: Thu Nov 27 16:43:38 2025 +0100 logger: fix const qualifier warnings for C23 Fix const qualifier discarded warnings in valid_structured_data_param() and valid_structured_data_id() functions. These warnings are reported by gcc 15 which defaults to the C23 standard. The strchr() and strstr() functions return pointers into const strings, so the receiving variables must be declared as const char *. Signed-off-by: Karel Zak (cherry picked from commit 22c3b959ef381b35a55ed00cf6acd2507b461d4b) misc-utils/logger.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit f0026a6661116db5599c6cdabe2b1f76335233e9 Author: Karel Zak Date: Thu Nov 27 16:38:18 2025 +0100 lsfd: fix const qualifier warning in strnrstr Fix const qualifier discarded warning in strnrstr(). This warning is reported by gcc 15 which defaults to the C23 standard. The function returns a non-const pointer into the haystack parameter, and callers modify the string through that pointer. Therefore, the haystack parameter should be char * rather than const char *. Signed-off-by: Karel Zak (cherry picked from commit 935f2ab21add95059a92208f69ef578708307481) lsfd-cmd/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c6ce00e794195cec7a6997d6395f27ac94da17e8 Author: Karel Zak Date: Thu Nov 27 16:35:56 2025 +0100 lsfd: fix const qualifier warning in new_counter_spec Fix const qualifier discarded warning in new_counter_spec(). This warning is reported by gcc 15 which defaults to the C23 standard. The function modifies the input string by inserting a null terminator to split it into name and expression parts, so the parameter should be char * rather than const char *. Signed-off-by: Karel Zak (cherry picked from commit 014d2779afb4118d7117442eeed562e2c7b7594f) lsfd-cmd/lsfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3469a96896018df229b91c8946b43cb6b4025ad6 Author: Karel Zak Date: Thu Nov 27 16:33:04 2025 +0100 dmesg: fix const qualifier warnings in parse_callerid Fix const qualifier discarded warnings in parse_callerid(). These warnings are reported by gcc 15 which defaults to the C23 standard. The strchr() and strstr() functions return pointers into const strings, so the receiving variables must be declared as const char *. Signed-off-by: Karel Zak (cherry picked from commit 40e6850d2b2ba2492d5f3e75656cb9bcce2806bb) sys-utils/dmesg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 1f7bf6851a2c6e5a7a66ac19dc521019070b7372 Author: Karel Zak Date: Thu Nov 27 16:28:41 2025 +0100 libblkid: fix const qualifier warning in blkid_parse_tag_string Fix const qualifier discarded warning in blkid_parse_tag_string(). This warning is reported by gcc 15 which defaults to the C23 standard. The strchr() function returns a pointer into a const string, so introduce a separate 'eq' variable to hold this const pointer for finding the '=' separator. Also move the 'cp' variable declaration into the block where it's actually used for quote handling. Signed-off-by: Karel Zak (cherry picked from commit c45442ef125270d0ab2cb539747ccaf737d60d37) libblkid/src/tag.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 1c2047da4935fb6f3340b0143d71f6ca4bb622e7 Author: Karel Zak Date: Thu Nov 27 16:24:11 2025 +0100 libmount: fix const qualifier warning in mnt_parse_mountinfo_line Fix const qualifier discarded warning in mnt_parse_mountinfo_line(). This warning is reported by gcc 15 which defaults to the C23 standard. The strstr() function returns a pointer into a const string, so introduce a separate 'sep' variable to hold this const pointer, keeping 'p' for non-const unmangle() results that need to be freed. Signed-off-by: Karel Zak (cherry picked from commit 530bf5c5b071753e149699c638ad1820daf5c205) libmount/src/tab_parse.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit 95a4937e40d7f2351e7ffcb88744ead2bb827ee5 Author: Karel Zak Date: Thu Nov 27 15:45:55 2025 +0100 libmount: fix const qualifier warnings for C23 Fix const qualifier discarded warnings in optlist_add_flags(), mnt_opt_value_with(), and mnt_optstr_apply_flags() functions. These warnings are reported by gcc 15 which defaults to the C23 standard. The strchr() and strstr() functions return pointers into const strings, so the receiving variables must be declared as const char *. Signed-off-by: Karel Zak (cherry picked from commit c0c79c41527365ca7de30c75daaa018ea01fff97) libmount/src/optlist.c | 7 +++---- libmount/src/optstr.c | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) commit 8b3f70ce1755e9140badd212b05609703d853c9a Author: Karel Zak Date: Thu Nov 27 15:41:21 2025 +0100 lsns: fix const qualifier warnings for C23 Fix const qualifier discarded warnings in read_persistent_namespaces() and is_path_included() functions. These warnings are reported by gcc 15 which defaults to the C23 standard. The strchr() and strstr() functions return pointers into const strings, so the receiving variables must be declared as const char *. Signed-off-by: Karel Zak (cherry picked from commit dbe4c16973d5d0f69ba3bf1bd8942a51de9a0933) sys-utils/lsns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 67fdcff1434fbe7f0faae892aa3e38ed2d13ad70 Author: Karel Zak Date: Thu Nov 27 10:27:07 2025 +0100 lib, lscpu: fix const qualifier discarded warnings in bsearch Fix compilation warnings from newer compilers with stricter const-correctness checks. When bsearch() searches in const arrays, the result pointer must also be const to avoid discarding the const qualifier. Fixed in: - lib/color-names.c: searching in static const basic_schemes[] - sys-utils/lscpu-cputype.c: searching in const pattern arrays The warnings were: lib/color-names.c:62:13: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] Signed-off-by: Karel Zak (cherry picked from commit 0cef3e4f5aac19bc3623883ca64c66538aa9b442) lib/color-names.c | 3 ++- sys-utils/lscpu-cputype.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) commit a05b701f8a0515952e89b25b8db2bd7fb23331e5 Author: Cristian Rodríguez Date: Sat Nov 22 10:41:08 2025 -0300 lsfd: fix bsearch macro usage with glibc C23 C23 requires bsearch to be a const preserving macro, build now fails with ../lsfd-cmd/lsfd.c:1879:75: error: macro ‘bsearch’ passed 6 arguments, but takes just 5 1879 | nfds, sizeof(struct pollfd), pollfdcmp)) | ^ In file included from ../include/c.h:17, from ../lsfd-cmd/lsfd.c:48: /usr/include/stdlib.h:987:10: note: macro ‘bsearch’ defined here 987 | # define bsearch(KEY, BASE, NMEMB, SIZE, COMPAR) \ add parenthesis around expression to fix it. (cherry picked from commit 711bda1441561bfd2eb6d45fe0bc789535c1f1a8) lsfd-cmd/lsfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 932d10adb69ee25e454adf272a83fbcf0ad7393e Author: Jonathan Thackray Date: Thu Nov 27 16:54:40 2025 +0000 lscpu: Add a few missing Arm CPU identifiers (cherry picked from commit 4a1d1e33b56beccfb70d4f10e4ea1a5b91a5af2f) sys-utils/lscpu-arm.c | 5 +++++ 1 file changed, 5 insertions(+) commit caef4f903ae042bcb22216df6d36ec9a9f04ace3 Author: Benno Schulenberg Date: Wed Oct 29 12:03:56 2025 +0100 losetup: sort 'O' correctly for the mutual-exclusive check to work The options need to be in strict ascending order. [kzak@redhat.com: - backport to stable/v2.41] Signed-off-by: Benno Schulenberg Signed-off-by: Karel Zak sys-utils/losetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 130f96c94e02fdaea9d8b976ff65ad37b59bc4df Author: Munehisa Kamata Date: Tue Oct 28 12:54:17 2025 -0700 wdctl: remove -d option leftover -d option was removed in commit f56338b43973 ("wdctl: allow to specify more than one device"), but the optstring wasn't updated at that time and wdctl can still accept the option halfway as below: $ wdctl -d wdctl: option requires an argument -- 'd' whereas it should say: wdctl: invalid option -- 'd' So update the optstring. Fixes: f56338b43973 ("wdctl: allow to specify more than one device") Signed-off-by: Munehisa Kamata (cherry picked from commit 56e2c86c2c7ea012b63cd896d9ca3daa34f19565) sys-utils/wdctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c0ee6fc19c0458c83a80bd981c5b171d44c6392f Author: Karel Zak Date: Thu Oct 30 12:11:43 2025 +0100 libfdisk: (dos) fix off-by-one in maximum last sector calculation The get_disk_ranges() function incorrectly capped the last usable sector at UINT_MAX, which could cause an overflow when calculating partition size for MBR partition tables. MBR stores partition size as a 32-bit value with maximum UINT_MAX. The partition size is calculated as: size = stop - start + 1 For a partition starting at sector 0: - If stop = UINT_MAX: size = UINT_MAX + 1 (overflow!) - If stop = UINT_MAX - 1: size = UINT_MAX (correct maximum) This fixes the inconsistency where dos_init() correctly warns about disks larger than UINT_MAX sectors (2TiB - 512 bytes for 512-byte sectors), but get_disk_ranges() allowed creating partitions that would overflow the 32-bit size field. Addresses: https://issues.redhat.com/browse/RHEL-122367 Signed-off-by: Karel Zak (cherry picked from commit 578923fe582903628ecc0d2a434af0affa3660d2) libfdisk/src/dos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 117cd747a3a53d8b628e69bb380f475da62ed314 Author: Christian Goeschel Ndjomouo Date: Mon Oct 13 13:42:17 2025 -0400 bash-completion: (mount) add missing options Signed-off-by: Christian Goeschel Ndjomouo (cherry picked from commit acdd6d51f4814bf4f4ebb0f6804fcfe296acdb29) bash-completion/mount | 5 +++++ 1 file changed, 5 insertions(+) commit 605070106cf88c6c178c66b5bc5cb486998920c5 Author: Christian Goeschel Ndjomouo Date: Sat Oct 11 23:09:27 2025 -0400 umount: consider helper return status for success message If a helper function was executed to unmount, we simply return without any user feedback. That can unintentionally surpress verbose messages (`--verbose`) for non-root users who use udisks2 to mount filesystems, and unmount via the unmount.udisks2 helper. It would be better to check the helper return status as well for completeness and a more reliable way to test the success of the unmount operation. mnt_context_get_helper_status() is only called if the helper was executed, i.e. mnt_context_helper_executed == 1, anything else wouldnt make sense anyways. Addresses: #3790 Signed-off-by: Christian Goeschel Ndjomouo (cherry picked from commit 24478afdf0a1941e9b7049ef263677f666e73c80) libmount/src/context_mount.c | 2 +- sys-utils/umount.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) commit bdd413a88a2e8d3c504c7e6b8777b0d76e3258f1 Author: Karel Zak Date: Thu Oct 2 14:35:43 2025 +0200 bash-completion: add lsfd Signed-off-by: Karel Zak (cherry picked from commit 9fd4790e0c8bd6b3600ae3cdb1dd47b5c7796ee8) bash-completion/Makemodule.am | 3 ++ bash-completion/lsfd | 67 +++++++++++++++++++++++++++++++++++++++++++ meson.build | 1 + 3 files changed, 71 insertions(+) commit 192f7bf3eed920b1cd4aaa298b41ba961a749603 Author: Karel Zak Date: Thu Oct 2 14:17:42 2025 +0200 bash-completion: add blkpr Signed-off-by: Karel Zak (cherry picked from commit 4e9b71e1c92d69b8225ca69230fe8313dc772c4a) bash-completion/Makemodule.am | 3 +++ bash-completion/blkpr | 47 +++++++++++++++++++++++++++++++++++++++++++ meson.build | 1 + 3 files changed, 51 insertions(+) commit 106b1dc1f1bc76b993a9eced7c94a37100f53404 Author: Karel Zak Date: Tue Sep 23 10:46:59 2025 +0200 liblastlog2: fix operator precedence in conditional assignments Fix operator precedence in ll2_rename_user() where != comparison was taking precedence over assignment, causing retval to be assigned 0 or 1 instead of the actual function return value. Fixes: https://github.com/util-linux/util-linux/issues/3756 Signed-off-by: Karel Zak (cherry picked from commit 2348237f059ddb8ff4bc255235766771e1af3dd1) liblastlog2/src/lastlog2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 9753e6ad9705104c3b05713f79ad6732cc4c7b30 Author: Karel Zak Date: Mon Dec 8 13:36:41 2025 +0100 login-utils: fix setpwnam() buffer use [CVE-2025-14104] This issue has been originally fixed in the master branch, but unfortunately was not backported to stable/v2.41 yet. References: aaa9e718c88d6916b003da7ebcfe38a3c88df8e6 References: 9a36d77012c4c771f8d51eba46b6e62c29bf572a Signed-off-by: Karel Zak login-utils/setpwnam.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) commit 917917253e60b0ba485cf6a27a2f993aa43e1eea Author: Karel Zak Date: Mon Oct 6 15:04:24 2025 +0200 libblkid: use snprintf() instead of sprintf() Replace sprintf() calls with snprintf() to ensure proper bounds checking when formatting strings. In encode.c, the check now validates snprintf() return value instead of pre-checking buffer size, providing more robust error handling. In probe.c, snprintf() is used with proper size calculation based on remaining buffer space. Signed-off-by: Karel Zak (cherry picked from commit 041380f4ca7244df624bf7efdb5e27fdd3144175) libblkid/src/encode.c | 6 ++++-- libblkid/src/probe.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) commit 0027056fe902764320fac9fa38f04dba65bf6775 Author: Karel Zak Date: Thu Oct 2 13:38:13 2025 +0200 bash-completion: add bits to dist tarball The bits command was added in commit 6e1301d59 (text-utils: add bits command) but the bash-completion file was not added to the autotools Makemodule.am, causing it to be missing from release tarballs. This resulted in meson build failures when using the tarball with bash-completion installed, as meson.build references the file but it doesn't exist in the tarball. Fixes: https://github.com/util-linux/util-linux/issues/3766 Signed-off-by: Karel Zak (cherry picked from commit eb0e08a76e3ebd4571b957e727847060304c32bb) bash-completion/Makemodule.am | 3 +++ 1 file changed, 3 insertions(+) commit a352807e5026456da4e26bdc1366470643aba227 Author: Satadru Pramanik, DO, MPH, MEng Date: Tue Sep 23 16:48:19 2025 -0400 Fix meson "does not support the `+` operator" error. Fixes #3761 meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)