util-linux: upgrade 2.42.2 -> 2.42.3
PATCH 1/1 util-linux: upgrade 2.42.2 -> 2.42.3
- util-linux-libuuid: upgrade 2.42.2 -> 2.42.3
- ReleaseNotes: https://github.com/util-linux/util-linux/blob/v2.42.3/Documentation/releases/v2.42.3-ReleaseNotes
- Security fixes:
CVE-2026-76642 - mount(8) post-mount hooks execute after helper failure.
When an external mount.<type> helper exits nonzero, post-mount hooks (X-mount.idmap, X-mount.owner/group/mode) still execute as if the mount had succeeded, allowing privileged operations on the pre-existing target filesystem.
CVE-2026-78410 - mount(8) TOCTOU race on source path.
In restricted (SUID, non-root) mode, the source path is canonicalized with realpath() as euid=0, following symlinks through user-writable directories. Additionally, open_tree() follows symlinks in intermediate path components. A local attacker can redirect a privileged mount or post-mount ownership change to an arbitrary path.
CVE-2026-78409 - mount(8) X-mount.subdir symlink escape.
The open_tree() call used to open a subdirectory on a detached mount follows symlinks in intermediate path components, allowing escape from the detached tree.
CVE-2026-78408 - nsenter(1), unshare(1) file descriptor leak.
File descriptors in nsenter and unshare were not created with O_CLOEXEC, potentially leaking them across exec. Added O_CLOEXEC as defense in depth.
wall(1), write(1) - hostname escape sequence injection.
The CVE-2024-28085 fix sanitized only message bodies; the banner headers still interpolated the system hostname without sanitization. An unprivileged user can inject terminal escape sequences via a user namespace hostname.
Additional fix for CVE-2024-28085.
Reported-by: Skyler Ferrante
- Additional changes:
- Refresh existning patches context
- The 2.42.3 release ships the CVE-2026-78410 fix, but that fix introduced a build regression.
hook_idmap.c:335:33: error: 'RESOLVE_NO_SYMLINKS' undeclared
- Master branch have fixes for this and added those patches along with relevent other patches
0001 7e2e010 libmount: add missing fileutils.h include to hook_idmap.c
fixes the RESOLVE_NO_SYMLINKS error above
0002 a471b62 lib/fileutils: fix unused parameter warnings without
SYS_openat2 (avoids -Werror failure on older kernels)
0003 b38324a mount: fix grammar and typo in X-mount.idmap docs
doc-only, needed so 0004 applies to the same lines
0004 e06799a libmount: use USE_LIBMOUNT_MOUNTFD_SUPPORT for idmap hook
fixes implicit mnt_open_tree() in the native build (--disable-libmount-mountfd-support)
0005 b815940 tools: add non-newmount.conf config-gen profile
completes upstream PR #4600
---
...2.42.2.bb => util-linux-libuuid_2.42.3.bb} | 0
meta/recipes-core/util-linux/util-linux.inc | 7 +-
...ing-fileutils.h-include-to-hook_idma.patch | 36 ++++++
...ests-script-Disable-size-option-test.patch | 2 +-
...x-unused-parameter-warnings-without-.patch | 66 +++++++++++
...r-and-typo-in-X-mount.idmap-document.patch | 48 ++++++++
...LIBMOUNT_MOUNTFD_SUPPORT-for-idmap-h.patch | 112 ++++++++++++++++++
...non-newmount.conf-config-gen-profile.patch | 26 ++++
.../util-linux/avoid_parallel_tests.patch | 4 +-
.../util-linux/configure-sbindir.patch | 4 +-
.../display_testname_for_subtest.patch | 2 +-
.../util-linux/util-linux/ptest.patch | 2 +-
...l-linux_2.42.2.bb => util-linux_2.42.3.bb} | 0
13 files changed, 301 insertions(+), 8 deletions(-)
rename meta/recipes-core/util-linux/{util-linux-libuuid_2.42.2.bb => util-linux-libuuid_2.42.3.bb} (100%)
create mode 100644 meta/recipes-core/util-linux/util-linux/0001-libmount-add-missing-fileutils.h-include-to-hook_idma.patch
create mode 100644 meta/recipes-core/util-linux/util-linux/0002-lib-fileutils-fix-unused-parameter-warnings-without-.patch
create mode 100644 meta/recipes-core/util-linux/util-linux/0003-mount-fix-grammar-and-typo-in-X-mount.idmap-document.patch
create mode 100644 meta/recipes-core/util-linux/util-linux/0004-libmount-use-USE_LIBMOUNT_MOUNTFD_SUPPORT-for-idmap-h.patch
create mode 100644 meta/recipes-core/util-linux/util-linux/0005-tools-add-non-newmount.conf-config-gen-profile.patch
rename meta/recipes-core/util-linux/{util-linux_2.42.2.bb => util-linux_2.42.3.bb} (100%)meta/recipes-core/util-linux/util-linux-libuuid_2.42.3.bb renamed from meta/recipes-core/util-linux/util-linux-libuuid_2.42.2.bb +0 -0
meta/recipes-core/util-linux/util-linux.inc +6 -1
@@ -17,9 +17,14 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin file://display_testname_for_subtest.patch \ file://avoid_parallel_tests.patch \ file://0001-tests-script-Disable-size-option-test.patch \ + file://0001-libmount-add-missing-fileutils.h-include-to-hook_idma.patch \ + file://0002-lib-fileutils-fix-unused-parameter-warnings-without-.patch \ + file://0003-mount-fix-grammar-and-typo-in-X-mount.idmap-document.patch \ + file://0004-libmount-use-USE_LIBMOUNT_MOUNTFD_SUPPORT-for-idmap-h.patch \ + file://0005-tools-add-non-newmount.conf-config-gen-profile.patch \ " -SRC_URI[sha256sum] = "03a05d3adf9602ef128f2da05b84b3205ce60c351e5737c0370f74000679ce8a" +SRC_URI[sha256sum] = "66ac7c0e725278eb2b039e3104f2c91119341d941b41bac7a285c695f940bd57" CVE_PRODUCT = "util-linux"
meta/recipes-core/util-linux/util-linux/0001-libmount-add-missing-fileutils.h-include-to-hook_idma.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 92369ef3fe1bcc48548441b68fb17786500c2bc3 Mon Sep 17 00:00:00 2001 +From: Karel Zak <[email protected]> +Date: Wed, 2 Sep 2026 13:32:27 +0200 +Subject: [PATCH] libmount: add missing fileutils.h include to hook_idmap.c + +The hook_idmap.c uses RESOLVE_NO_SYMLINKS (added by commit fb8e26535) +but does not include fileutils.h, which provides the fallback #define +for this constant. + +On Fedora (glibc 2.40+), this is masked because glibc's +<bits/fcntl-linux.h> transitively includes <linux/openat2.h>, which +defines RESOLVE_NO_SYMLINKS. On Ubuntu (and other distros with older +glibc), <fcntl.h> does not pull in openat2.h, so the build fails: + + hook_idmap.c:335:33: error: 'RESOLVE_NO_SYMLINKS' undeclared + +Fixes: fb8e26535 ("libmount: pin source path with openat2() for restricted users") +Signed-off-by: Karel Zak <[email protected]> +Upstream-Status: Backport [https://github.com/util-linux/util-linux/commit/7e2e010874b10b3aabdc3c4c844c9ffc46a4a374] +Signed-off-by: Jaipaul Cheernam <[email protected]> +--- + libmount/src/hook_idmap.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libmount/src/hook_idmap.c b/libmount/src/hook_idmap.c +index 77494e2..2c697b1 100644 +--- a/libmount/src/hook_idmap.c ++++ b/libmount/src/hook_idmap.c +@@ -23,6 +23,7 @@ + + #include "strutils.h" + #include "all-io.h" ++#include "fileutils.h" + #include "namespace.h" + + #include "mountP.h"
meta/recipes-core/util-linux/util-linux/0001-tests-script-Disable-size-option-test.patch +1 -1
@@ -1,4 +1,4 @@ -From 078231e4ecb5fa12107cd463f42e4c63ef3ff15c Mon Sep 17 00:00:00 2001 +From c83f9dbfd7d9b96e4969ab16d5db69e064c67c50 Mon Sep 17 00:00:00 2001 From: Paul Barker <[email protected]> Date: Mon, 5 Jan 2026 09:56:41 +0000 Subject: [PATCH] tests: script: Disable size option test
meta/recipes-core/util-linux/util-linux/0002-lib-fileutils-fix-unused-parameter-warnings-without-.patch new file +66 -0
66 lines not on this page · raw message
meta/recipes-core/util-linux/util-linux/0003-mount-fix-grammar-and-typo-in-X-mount.idmap-document.patch new file +48 -0
48 lines not on this page · raw message
meta/recipes-core/util-linux/util-linux/0004-libmount-use-USE_LIBMOUNT_MOUNTFD_SUPPORT-for-idmap-h.patch new file +112 -0
112 lines not on this page · raw message
meta/recipes-core/util-linux/util-linux/0005-tools-add-non-newmount.conf-config-gen-profile.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 19b732395c1c7dc849823a3aa0d8a66122483f54 Mon Sep 17 00:00:00 2001 +From: Karel Zak <[email protected]> +Date: Thu, 3 Sep 2026 10:15:43 +0200 +Subject: [PATCH] tools: add non-newmount.conf config-gen profile + +Add a configuration profile to test builds with +--disable-libmount-mountfd-support, useful for verifying that libmount +compiles without the new fd-based mount API. + +Signed-off-by: Karel Zak <[email protected]> +Upstream-Status: Backport [https://github.com/util-linux/util-linux/commit/b8159405b99af7af2054f9f8222cf23901368a01] +Signed-off-by: Jaipaul Cheernam <[email protected]> +--- + tools/config-gen.d/non-newmount.conf | 3 +++ + 1 file changed, 3 insertions(+) + create mode 100644 tools/config-gen.d/non-newmount.conf + +diff --git a/tools/config-gen.d/non-newmount.conf b/tools/config-gen.d/non-newmount.conf +new file mode 100644 +index 0000000..303b6cb +--- /dev/null ++++ b/tools/config-gen.d/non-newmount.conf +@@ -0,0 +1,3 @@ ++include:core.conf ++ ++--disable-libmount-mountfd-support
meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch +2 -2
@@ -1,4 +1,4 @@ -From 4303ca5212f78fa276be750e077303f5090b7e33 Mon Sep 17 00:00:00 2001 +From dde7b7ff56ed406ef96b975b88b6ab663fd10386 Mon Sep 17 00:00:00 2001 From: Tudor Florea <[email protected]> Date: Mon, 14 Jun 2021 14:00:31 +0200 Subject: [PATCH] util-linux: Add ptest
@@ -14,7 +14,7 @@ Upstream-Status: Inappropriate 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac -index e2061e7..f816656 100644 +index ea3875e..9e0377e 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ AC_CONFIG_MACRO_DIR([m4])
meta/recipes-core/util-linux/util-linux/configure-sbindir.patch +2 -2
@@ -1,4 +1,4 @@ -From d91f680b43b0c70ee7c4f3b74996c342ca15129e Mon Sep 17 00:00:00 2001 +From 5981a174707a384d6970c7ce7d8d68322985a6fa Mon Sep 17 00:00:00 2001 From: Phil Blundell <[email protected]> Date: Mon, 24 Sep 2012 07:24:51 +0100 Subject: [PATCH] util-linux: Ensure that ${sbindir} is respected
@@ -14,7 +14,7 @@ Upstream-Status: Inappropriate [configuration] 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac -index 13bed69..e2061e7 100644 +index 50ed64d..ea3875e 100644 --- a/configure.ac +++ b/configure.ac @@ -110,7 +110,10 @@ AC_SUBST([runstatedir])
meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch +1 -1
@@ -1,4 +1,4 @@ -From 42cfda0aa633f3a6786be1e490202cc9fe89e4e5 Mon Sep 17 00:00:00 2001 +From caadbbf29cfeeaac301d02185e717a5587a9cdf8 Mon Sep 17 00:00:00 2001 From: Tudor Florea <[email protected]> Date: Thu, 3 Dec 2015 04:08:00 +0100 Subject: [PATCH] Display testname for subtest
meta/recipes-core/util-linux/util-linux/ptest.patch +1 -1
@@ -1,4 +1,4 @@ -From 238020ed859acb41f1f43352afc28db14cecb34e Mon Sep 17 00:00:00 2001 +From 368d04b58ce8b52e93d33be1321e78a9c6bf80ae Mon Sep 17 00:00:00 2001 From: Tudor Florea <[email protected]> Date: Thu, 3 Dec 2015 04:08:00 +0100 Subject: [PATCH] Define TESTS variable
meta/recipes-core/util-linux/util-linux_2.42.3.bb renamed from meta/recipes-core/util-linux/util-linux_2.42.2.bb +0 -0
Patchtest results for [PATCH] util-linux: upgrade 2.42.2 -> 2.42.3
Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:
---
Testing patch /home/patchtest/share/mboxes/util-linux-upgrade-2.42.2---2.42.3.patch
FAIL: test CVE tag format: Missing or incorrectly formatted CVE tag in patch file. Correct or include the CVE tag in the patch with format: "CVE: CVE-YYYY-XXXX" (test_patch.TestPatch.test_cve_tag_format)
PASS: pretest src uri left files (test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test Signed-off-by presence (test_patch.TestPatch.test_signed_off_by_presence)
PASS: test Upstream-Status presence (test_patch.TestPatch.test_upstream_status_presence_format)
PASS: test auh changelog truncation notice (test_mbox.TestMbox.test_auh_changelog_truncation_notice)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test commit message user tags (test_mbox.TestMbox.test_commit_message_user_tags)
PASS: test lic files chksum modified not mentioned (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files (test_metadata.TestMetadata.test_src_uri_left_files)
PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list)
SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)
---
Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!