Описание
util-linux is a random collection of Linux utilities. In util-linux 2.39.1 through 2.41.4 and 2.42 through 2.42.1, the SUID mount utility reads the attacker-controlled LIBMOUNT_FORCE_MOUNT2 environment variable with getenv(), allowing a local low-privileged
user to force the non-atomic legacy bind-mount path. With an /etc/fstab bind mount authorized by user or users and protected by nosuid, noexec, or nodev, an attacker can race the window between the initial bind mount and the remount that applies those security flags and execute a SUID program from the temporarily unprotected mount, potentially gaining root privileges. This issue is fixed in 2.41.5 and 2.42.2.
A flaw was found in util-linux. The mount(8) SUID binary does not sanitize the LIBMOUNT_FORCE_MOUNT2 environment variable before use. A local unprivileged user can set this variable to force mount(8) to use the legacy two-step mount(2) code path, which applies security restrictions such as nosuid and noexec after the mount is already active. During this window, an attacker can execute a SUID binary from the mounted filesystem, allowing local privilege escalation to root.
Отчет
A flaw was found in the util-linux mount(8) utility, which is installed with the SUID bit set. This flaw is rated IMPORTANT for affected Red Hat products, including Red Hat Enterprise Linux 10 and Red Hat In-Vehicle OS 2, where the vulnerable code is present and a fix is being pursued. The SUID mount(8) binary reads the LIBMOUNT_FORCE_MOUNT2 environment variable via an unsafe getenv() call rather than a sanitizing equivalent, even when running with elevated privileges. A local unprivileged attacker can set LIBMOUNT_FORCE_MOUNT2=always to force mount(8) onto the legacy mount(2) code path, which performs a bind mount and then applies security flags such as nosuid and noexec in a separate, subsequent syscall. During the window between these two syscalls, the newly mounted filesystem lacks those protections, allowing the attacker to execute a SUID/SGID binary from it before the restrictions take effect, resulting in local privilege escalation to root. Red Hat Enterprise Linux 7, 8, and 9, Red Hat OpenShift Container Platform releases, and other evaluated Red Hat offerings are not affected because the vulnerable code is not present in the util-linux versions shipped in those products. The Red Hat severity (CVSS 7.0, IMPORTANT) is consistent with the upstream CVSS score.
Меры по смягчению последствий
In the legacy bind path, use mount_setattr() to apply security flags atomically, eliminating the window between the two syscalls. Add SUID regression test: LIBMOUNT_FORCE_MOUNT2=always must not change API path selection for unprivileged callers.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 7 | util-linux | Not affected | ||
| Red Hat Enterprise Linux 8 | util-linux | Not affected | ||
| Red Hat Enterprise Linux 9 | rhel8/flatpak-runtime | Not affected | ||
| Red Hat Enterprise Linux 9 | rhel8/flatpak-sdk | Not affected | ||
| Red Hat Enterprise Linux 9 | util-linux | Not affected | ||
| Red Hat Hardened Images | util-linux | Not affected | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Not affected | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Not affected | ||
| Red Hat OpenShift Container Platform 5 | openshift/ose-rhel-coreos-9 | Not affected | ||
| Red Hat Enterprise Linux 10 | util-linux | Fixed | RHSA-2026:93461 | 02.11.2026 |
Показывать по
Дополнительная информация
Статус:
EPSS
7 High
CVSS3
Связанные уязвимости
util-linux is a random collection of Linux utilities. In util-linux 2.39.1 through 2.41.4 and 2.42 through 2.42.1, the SUID `mount` utility reads the attacker-controlled `LIBMOUNT_FORCE_MOUNT2` environment variable with `getenv()`, allowing a local low-privileged user to force the non-atomic legacy bind-mount path. With an `/etc/fstab` bind mount authorized by `user` or `users` and protected by `nosuid`, `noexec`, or `nodev`, an attacker can race the window between the initial bind mount and the remount that applies those security flags and execute a SUID program from the temporarily unprotected mount, potentially gaining root privileges. This issue is fixed in 2.41.5 and 2.42.2.
util-linux is a random collection of Linux utilities. In util-linux 2.39.1 through 2.41.4 and 2.42 through 2.42.1, the SUID `mount` utility reads the attacker-controlled `LIBMOUNT_FORCE_MOUNT2` environment variable with `getenv()`, allowing a local low-privileged user to force the non-atomic legacy bind-mount path. With an `/etc/fstab` bind mount authorized by `user` or `users` and protected by `nosuid`, `noexec`, or `nodev`, an attacker can race the window between the initial bind mount and the remount that applies those security flags and execute a SUID program from the temporarily unprotected mount, potentially gaining root privileges. This issue is fixed in 2.41.5 and 2.42.2.
util-linux LIBMOUNT_FORCE_MOUNT2 allows nosuid and noexec bypass
util-linux is a random collection of Linux utilities. In util-linux 2. ...
EPSS
7 High
CVSS3