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 · 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
The vulnerable libmount code is built and shipped unfixed: mnt_context_do_mount() runs the post-mount hooks whenever do_mount() returns 0, and that is what it returns when a mount helper ran but exited non-zero. None of the 15 applied patches adds the helper exit-status check.
The attack needs an unprivileged user to drive a privileged (setuid) libmount mount context, and this image has none. util-linux mount is configured out (--disable-mount), and mount/umount on the target are BusyBox symlinks, which do not use libmount. The only other code in the build that calls mnt_context_mount() is the lws_fsmount helper in libwebsockets: it mounts a fixed overlay type with no X-mount.* options, and I found no caller of it in ttyd.
Reaching the flaw would require stepping outside the product: a root shell adding a setuid libmount-based mount program, or root-run code using pylibmount with X-mount.owner/X-mount.idmap and a failing helper. It is not reachable from the network and not enablable through YANG, the CLI or the web UI.
Evidence 11
`if (res == 0) rc = mnt_context_call_hooks(cxt, MNT_STAGE_MOUNT_POST);` gates the post-mount hooks only on the return of `do_mount()`, not on helper exit status.
output/build/util-linux-2.40.4/libmount/src/context_mount.c:885
`exec_helper()` stores the helper exit code in `cxt->helper_status` but sets `rc = 0` once `waitpid()` succeeds; `do_mount()` returns this directly (line 519-520), so a failed helper still yields `res == 0`.
output/build/util-linux-2.40.4/libmount/src/context_mount.c:473
`hook_post()` goes straight to `fchownat()`/chmod on the target with no check of `helper_status`; `hook_idmap.c:296` `hook_mount_post()` is likewise compiled (`la-hook_owner.lo`, `la-hook_idmap.lo` exist in the build dir).
output/build/util-linux-2.40.4/libmount/src/hook_owner.c:45
15 patches, none for CVE-2026-76642. Only `0011-CVE-2026-53613-1.patch` mentions helpers, and the patched source at `context_mount.c:885` still lacks the exit-status check.
output/build/util-linux-2.40.4/.applied_patches_list
`BR2_PACKAGE_UTIL_LINUX_LIBMOUNT=y`: the library is selected for the target; `output/build/util-linux-2.40.4/.files-list.txt:160` lists `./usr/lib/libmount.so.1.1.0` as installed.
output/.config:3831
`# BR2_PACKAGE_UTIL_LINUX_MOUNT is not set`: the util-linux `mount`/`umount` programs (the usual setuid entry point) are not selected.
output/.config:3863
The configure command line contains `--enable-libmount`, `--disable-mount`, `--disable-mountpoint`, `--enable-pylibmount`.
output/build/util-linux-2.40.4/config.log
No `bin/mount` or `bin/umount` entry is installed by util-linux; only `libmount.so*`, headers and `pylibmount.so`.
output/build/util-linux-2.40.4/.files-list.txt
Symlink to `busybox` (same for `umount`, `mountpoint`, `output/target/bin/mount`); BusyBox mount (`CONFIG_MOUNT=y` in the busybox `.config:675`) does not use `libmount`.
output/target/usr/bin/mount
Only non-util-linux caller of `mnt_context_mount()` in `output/build`: fixed fstype `overlay`, source `none`, no `X-mount.*` options. `LWS_WITH_FSMOUNT:BOOL=ON` at `CMakeCache.txt:559`, but a search of the `ttyd` sources for `lws_fsmount` found no caller.
output/build/libwebsockets-4.3.3/lib/misc/fsmount.c:128
No use of `X-mount.` options, `libmount` or `pylibmount` in the Infix overlay, confd sources or local packages (search returned nothing).
board/common/rootfs, src, package
Version and patches
NVD gives the affected range as through 2.41.5 and 2.42.2, so 2.40.4 is inside it. I could not read the upstream advisory or fix commits offline, so the fixed version is unconfirmed (presumably the next 2.41.x/2.42.x releases). The fix is not in the tree: context_mount.c:885 still calls the MNT_STAGE_MOUNT_POST hooks without checking helper_status, and no applied patch addresses this CVE.
Recommendation
Document as not exposed in the current image; no urgent backport is needed.
Because the vulnerable library code is shipped, pick up the fix at the next routine util-linux bump, or backport the three upstream commits (1d14676, a15c00a, f57cea1) alongside the existing libmount CVE patches.
Re-triage if BR2_PACKAGE_UTIL_LINUX_MOUNT is ever enabled or another setuid libmount consumer (for example udisks or fuse) is added. That would make this a local privilege escalation rated 8.5 HIGH.
Open questions
output/target in this tree does not contain libmount.so (it appears to be a partial snapshot), so the claim that the library is installed rests on .files-list.txt. I could not confirm final file modes or setuid bits in the real rootfs image; find -perm -4000 on output/target found nothing, but Buildroot applies permissions at image creation.
I searched output/build sources for mnt_context_mount callers by file type (c, h, go, py, cc, cpp, sh); a consumer in another language or a prebuilt binary would have been missed.
One combined cd ... && grep command was denied by the sandbox; I ran the same search with full paths instead, so nothing was left unchecked.
Members of Kernel Kit decide. Sign in if you are one.