Kernel Kit / Infix / v26.10.0latest
CVE-2026-76642
8.5highutil-linux-libsutil-linux2.40.4 · 2.40.2in 4 of 4 releases
Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach util-linux-libs · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
util-linux versions through 2.41.5 and 2.42.2 fail to check mount helper exit status before running post-mount hooks, allowing unprivileged users to execute privileged operations on pre-existing filesystems. Attackers can exploit X-mount.idmap or X-mount.owner hooks to clone filesystems with inherited suid bits or modify target inode permissions after a helper fails, achieving privilege escalation.
Published 2026-09-03NVD
CVSS 4.0Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- High
- Integrity
- High
- Availability
- High
What it costs other systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References 8
- github.com/util-linux/util-linux
- github.com/util-linux/util-linux/blob/v2.42.2/libmount/src/context_mount.c#L476
- github.com/util-linux/util-linux/blob/v2.42.2/libmount/src/context_mount.c#L892
- github.com/util-linux/util-linux/commit/1d14676ea70003e9f5b2a6a76af0cadb1190411a
- github.com/util-linux/util-linux/commit/a15c00a9e545aa8b9cf6ec0f888ff6c7b3eaeedc
- github.com/util-linux/util-linux/commit/f57cea130839c0af8dc0525274267ae4cfd66bbf
- github.com/util-linux/util-linux/security/advisories/GHSA-m25x-3hj9-m26f
- www.vulncheck.com/advisories/util-linux-libmount-privilege-escalation-via-failed-mount-helper
Fable 5.2 · medium confidence · 2026-11-19
The vulnerable libmount code is present and unpatched in this build, but nothing in the image that I could inspect ever drives a mount through it. The flaw needs a privileged program that calls mnt_context_mount() (in practice a setuid util-linux mount), and this image does not build that program: mount is BusyBox, which does not use libmount.
No executable in output/target imports any mnt_context_* symbol; the ones linked to libmount.so.1 (findmnt, lsblk, lsns, lslocks, fstrim, swapon, swapoff, cfdisk, ttyd) only read mount tables. Reaching the code would require root to add a new program or a Python script using the libmount binding, which is outside the product's management interfaces and not reachable from the network.
Confidence is medium rather than high because the output/target snapshot contains no shared libraries, so library-level consumers (libgio, libcryptsetup, libmultipath, the pylibmount module) could not be inspected.
Evidence 12
After `waitpid()` the function stores the helper's exit code in `cxt->helper_status` but returns `rc = 0` whatever that code is, so a failed mount helper looks like success to the caller.
output/build/util-linux-libs-2.40.4/libmount/src/context_mount.c:465-481 (exec_helper)
`MNT_STAGE_MOUNT_POST` hooks run whenever `res == 0`, with no check of `helper_status`; this is the unfixed pattern the CVE describes.
output/build/util-linux-libs-2.40.4/libmount/src/context_mount.c:873-882 (mnt_context_do_mount)
`MNT_STAGE_POST` hooks are likewise gated only on `rc == 0`.
output/build/util-linux-libs-2.40.4/libmount/src/context_mount.c:1061-1062 (mnt_context_mount)
The `X-mount.idmap` and `X-mount.owner` hook sources named in the CVE were compiled into `libmount`.
output/build/util-linux-libs-2.40.4/libmount/src/la-hook_idmap.lo, la-hook_owner.lo
The file is empty: no patches were applied to this package, so no backported fix. No patch under `buildroot/package/util-linux/` names CVE-2026-76642 either.
output/build/util-linux-libs-2.40.4/.applied_patches_list
Configured with `--disable-all-programs --enable-libmount`: the library is built, but no `mount` program comes from this package.
output/build/util-linux-libs-2.40.4/config.log:7
`BR2_PACKAGE_UTIL_LINUX_LIBMOUNT=y`, while `BR2_PACKAGE_UTIL_LINUX_MOUNT` is not set.
output/.config:3831, 3863
The full `util-linux` package is also configured with `--disable-mount`, so no util-linux `mount` binary exists in the image. It does pass `--enable-pylibmount`.
output/build/util-linux-2.40.4/config.log:7
`mount` is a symlink to `busybox` (`CONFIG_MOUNT=y` in `output/build/busybox-1.37.0/.config:675`); BusyBox mount does not use `libmount` or its `X-mount.*` hooks.
output/target/usr/bin/mount
No file in the target tree contains any `mnt_context_*` symbol name. Nine executables reference `libmount.so.1`, none of them through the mount-context API.
output/target (search for `mnt_context_`)
No `user`/`users` entries and no `X-mount.*` options; the only helper entry (`/usr/libexec/infix/mnt#`) is processed at boot by the init system, not by `libmount`.
output/target/etc/fstab
No Infix-specific source, overlay file or package references `libmount` or its mount API, so no YANG node or CLI command leads to it.
src/, board/, package/ (search for `libmount`, `mnt_context`)
Version and patches
The CVE covers util-linux through 2.41.5 and 2.42.2, so 2.40.4 is in range and the CPE match is correct. The tree gives no fixed version number; the fix commits are 1d14676e, a15c00a9 and f57cea13 upstream, which I could not read from here. The source in output/build/util-linux-libs-2.40.4/libmount/src/context_mount.c still has the unfixed logic, and .applied_patches_list is empty, so no fix is applied.
Recommendation
Document as not exposed in the current image; no urgent backport is needed.
Pick up the fix with the next routine util-linux bump, or backport the three upstream commits to libmount/src/context_mount.c, because the library is vulnerable as built. Re-triage immediately if BR2_PACKAGE_UTIL_LINUX_MOUNT is ever enabled or a package that mounts through libmount is added, since the CVE is a local privilege escalation rated 8.5.
Separately, check why .applied_patches_list is empty for util-linux-libs: the CVE patches 0008 to 0015 in buildroot/package/util-linux/ (several touching libmount) do not appear to be applied to this package.
Open questions
The output/target snapshot has no .so files, so I could not confirm that shared libraries linking libmount (libgio from libglib2, libcryptsetup, libmultipath) avoid mnt_context_mount(). Upstream they only use table parsing and monitoring, but that is not verified from this tree.
The pylibmount Python module is enabled in the full util-linux build and would expose Context.mount() to a root-run Python script. I found no script in the target or in src/, board/ or package/ that imports it.
Both util-linux and util-linux-libs install libmount.so.1.1.0; I did not check whether the full util-linux build has patches applied or which copy ends up in the image. Neither can contain a fix for this CVE, as no patch for it exists in the tree.
The defconfig named in the brief (/mnt/worker/repos/kernelkit/infix/configs/x86_64_defconfig) is outside the tree. The in-tree configs/x86_64_defconfig has no util-linux lines, so libmount is selected indirectly; buildroot/package/multipath-tools/Config.in:25 is one selector that is enabled.
One command was refused by the sandbox (a cd into the build directory followed by ls -a); I got the same information with find from the tree root, so nothing is missing because of it.
Members of Kernel Kit decide. Sign in if you are one.