mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Christian Melki <christian.melki@t2data.com>
Subject: Re: [ptxdist] [APPLIED] util-linux: Version bump. 2.42.2 -> 2.42.3
Date: Fri, 18 Sep 2026 11:02:14 +0200	[thread overview]
Message-ID: <20260918090214.1691739-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20260907171430.2969298-1-christian.melki@t2data.com>

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)))



      reply	other threads:[~2026-09-18  9:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-07 17:14 [ptxdist] [PATCH] " Christian Melki
2026-09-18  9:02 ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260918090214.1691739-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=christian.melki@t2data.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox