* [ptxdist] [PATCH] util-linux: Version bump. 2.42.2 -> 2.42.3
@ 2026-09-07 17:14 Christian Melki
2026-09-18 9:02 ` [ptxdist] [APPLIED] " Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Christian Melki @ 2026-09-07 17:14 UTC (permalink / raw)
To: ptxdist
Various fixes, including security.
https://github.com/util-linux/util-linux/blob/v2.42.3/Documentation/releases/v2.42.3-ReleaseNotes
Plugs CVEs:
CVE-2026-76642: mount post-mount hooks execute after helper failure.
CVE-2026-78410: mount TOCTOU race on source path.
CVE-2026-78409: mount X-mount.subdir symlink escape.
CVE-2026-78408: nsenter, unshare file descriptor leak.
CVE-2024-28085: wall, write, hostname escape sequence injection. (additional fixes)
* Add upstream patch for openat2 build breakage.
Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
...sing-fileutils.h-include-to-hook_idm.patch | 33 +++++++++++++++++++
patches/util-linux-2.42.3/series | 4 +++
rules/util-linux.make | 4 +--
3 files changed, 39 insertions(+), 2 deletions(-)
create mode 100644 patches/util-linux-2.42.3/0001-libmount-add-missing-fileutils.h-include-to-hook_idm.patch
create mode 100644 patches/util-linux-2.42.3/series
diff --git a/patches/util-linux-2.42.3/0001-libmount-add-missing-fileutils.h-include-to-hook_idm.patch b/patches/util-linux-2.42.3/0001-libmount-add-missing-fileutils.h-include-to-hook_idm.patch
new file mode 100644
index 000000000..1722dea4e
--- /dev/null
+++ b/patches/util-linux-2.42.3/0001-libmount-add-missing-fileutils.h-include-to-hook_idm.patch
@@ -0,0 +1,33 @@
+From: Karel Zak <kzak@redhat.com>
+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 <kzak@redhat.com>
+---
+ 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 77494e298102..2c697b171544 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"
diff --git a/patches/util-linux-2.42.3/series b/patches/util-linux-2.42.3/series
new file mode 100644
index 000000000..666af239c
--- /dev/null
+++ b/patches/util-linux-2.42.3/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-libmount-add-missing-fileutils.h-include-to-hook_idm.patch
+# 68b169e8902b5198d49c78f09057ae1d - git-ptx-patches magic
diff --git a/rules/util-linux.make b/rules/util-linux.make
index 33e525820..dc65181eb 100644
--- a/rules/util-linux.make
+++ b/rules/util-linux.make
@@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_UTIL_LINUX) += util-linux
#
# Paths and names
#
-UTIL_LINUX_VERSION := 2.42.2
-UTIL_LINUX_SHA256 := 03a05d3adf9602ef128f2da05b84b3205ce60c351e5737c0370f74000679ce8a
+UTIL_LINUX_VERSION := 2.42.3
+UTIL_LINUX_SHA256 := 66ac7c0e725278eb2b039e3104f2c91119341d941b41bac7a285c695f940bd57
UTIL_LINUX := util-linux-$(UTIL_LINUX_VERSION)
UTIL_LINUX_SUFFIX := tar.xz
UTIL_LINUX_BASENAME := v$(if $(filter 2,$(basename $(UTIL_LINUX_VERSION))),$(UTIL_LINUX_VERSION),$(basename $(UTIL_LINUX_VERSION)))
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [ptxdist] [APPLIED] util-linux: Version bump. 2.42.2 -> 2.42.3
2026-09-07 17:14 [ptxdist] [PATCH] util-linux: Version bump. 2.42.2 -> 2.42.3 Christian Melki
@ 2026-09-18 9:02 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2026-09-18 9:02 UTC (permalink / raw)
To: ptxdist; +Cc: Christian Melki
Thanks, applied as 6693728bddadf1917ad772318d47b02272e45e76.
Michael
[sent from post-receive hook]
On Fri, 18 Sep 2026 11:02:14 +0200, Christian Melki <christian.melki@t2data.com> wrote:
> Various fixes, including security.
> https://github.com/util-linux/util-linux/blob/v2.42.3/Documentation/releases/v2.42.3-ReleaseNotes
>
> Plugs CVEs:
> CVE-2026-76642: mount post-mount hooks execute after helper failure.
> CVE-2026-78410: mount TOCTOU race on source path.
> CVE-2026-78409: mount X-mount.subdir symlink escape.
> CVE-2026-78408: nsenter, unshare file descriptor leak.
> CVE-2024-28085: wall, write, hostname escape sequence injection. (additional fixes)
>
> * Add upstream patch for openat2 build breakage.
>
> Signed-off-by: Christian Melki <christian.melki@t2data.com>
> Message-Id: <20260907171430.2969298-1-christian.melki@t2data.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/patches/util-linux-2.42.3/0001-libmount-add-missing-fileutils.h-include-to-hook_idm.patch b/patches/util-linux-2.42.3/0001-libmount-add-missing-fileutils.h-include-to-hook_idm.patch
> new file mode 100644
> index 000000000000..1722dea4eb5d
> --- /dev/null
> +++ b/patches/util-linux-2.42.3/0001-libmount-add-missing-fileutils.h-include-to-hook_idm.patch
> @@ -0,0 +1,33 @@
> +From: Karel Zak <kzak@redhat.com>
> +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 <kzak@redhat.com>
> +---
> + 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 77494e298102..2c697b171544 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"
> diff --git a/patches/util-linux-2.42.3/series b/patches/util-linux-2.42.3/series
> new file mode 100644
> index 000000000000..666af239cb10
> --- /dev/null
> +++ b/patches/util-linux-2.42.3/series
> @@ -0,0 +1,4 @@
> +# generated by git-ptx-patches
> +#tag:base --start-number 1
> +0001-libmount-add-missing-fileutils.h-include-to-hook_idm.patch
> +# 68b169e8902b5198d49c78f09057ae1d - git-ptx-patches magic
> diff --git a/rules/util-linux.make b/rules/util-linux.make
> index 33e5258209a2..dc65181eb131 100644
> --- a/rules/util-linux.make
> +++ b/rules/util-linux.make
> @@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_UTIL_LINUX) += util-linux
> #
> # Paths and names
> #
> -UTIL_LINUX_VERSION := 2.42.2
> -UTIL_LINUX_SHA256 := 03a05d3adf9602ef128f2da05b84b3205ce60c351e5737c0370f74000679ce8a
> +UTIL_LINUX_VERSION := 2.42.3
> +UTIL_LINUX_SHA256 := 66ac7c0e725278eb2b039e3104f2c91119341d941b41bac7a285c695f940bd57
> UTIL_LINUX := util-linux-$(UTIL_LINUX_VERSION)
> UTIL_LINUX_SUFFIX := tar.xz
> UTIL_LINUX_BASENAME := v$(if $(filter 2,$(basename $(UTIL_LINUX_VERSION))),$(UTIL_LINUX_VERSION),$(basename $(UTIL_LINUX_VERSION)))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-18 9:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-07 17:14 [ptxdist] [PATCH] util-linux: Version bump. 2.42.2 -> 2.42.3 Christian Melki
2026-09-18 9:02 ` [ptxdist] [APPLIED] " Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox