Описание
util-linux is a random collection of Linux utilities. In util-linux 2.17 through 2.41.6 and 2.42 through 2.42.3, and in 2.42.4 when the legacy mount(2) path is used without /proc, restricted non-root mount requests validate an /etc/fstab target before the mount operation re-resolves that pathname. A local low-privileged user authorized by an fstab user or users entry whose target has an attacker-writable ancestor can use renameat2(RENAME_EXCHANGE) to swap a path component and redirect an authorized mount to a root-owned location, such as mounting attacker-controlled content over /etc/sudoers.d, and thereby gain root privileges. Versions 2.41.5 and 2.42.2 pin targets for the new mount API, and 2.42.4 pins legacy targets through /proc/self/fd; the documented legacy fallback without /proc remains affected.
When an /etc/fstab entry is configured with the user or users option, mount(8) validates the target path before performing the mount syscall, creating a Time-of-Check-Time-of-Use (TOCTOU) window. A local unprivileged user with write access to an ancestor directory of the mount target can swap that directory - for example by using renameat2(RENAME_EXCHANGE) - to redirect the mount to an arbitrary root-owned location, potentially escalating privileges to root.
Отчет
This issue is rated Important and affects Red Hat products that ship util-linux, including Red Hat Enterprise Linux and OpenShift Container Platform, with fixes being pursued for the affected streams. Successful exploitation requires an /etc/fstab entry with the user or users option whose mount target has an attacker-writable ancestor directory, which limits the attack to specific configurations and is reflected in the high attack-complexity score.
Red Hat UBI images ship the affected util-linux package with mount(8) installed SUID root, and fixes are currently in progress across all active RHEL streams. Once the respective RHSA ships for each stream, updated UBI images are typically rebuilt within hours to days for Important severity CVEs. In the meantime, no action is required for standard (unprivileged) UBI container deployments, as the default container security controls prevent exploitation of this vulnerability:
- No
/etc/fstabexists in the default UBI images. Exploitation requires an fstab entry with the user or users mount option - without one, the attack has no entry point. - The mount syscall is blocked by default. Container runtimes do not grant CAP_SYS_ADMIN to containers, and the default seccomp profile further restricts mount operations. Exploitation would require a non-standard configuration that simultaneously adds a custom fstab with user mount entries, grants CAP_SYS_ADMIN or runs the container in privileged mode, and provides writable directories in the mount target path. This combination does not occur in typical container workloads.
Меры по смягчению последствий
Review /etc/fstab and remove the user or users mount option from any entry where unprivileged user mounting is not strictly required. This eliminates the prerequisite for exploitation. For entries that must retain user mount capability, ensure all ancestor directories in the mount target path are owned by root and not writable by unprivileged users (mode 0755 or stricter), preventing the renameat2(RENAME_EXCHANGE) directory swap needed to exploit the race. These changes take effect immediately with no reboot required.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 7 | util-linux | Affected | ||
| Red Hat Hardened Images | util-linux | Not affected | ||
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ai-gateway-operator-rhel9 | Not affected | ||
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-core-bff-rhel9 | Under investigation | ||
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-dashboard-operator-rhel9 | Not affected | ||
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-dashboard-rhel9 | Under investigation | ||
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-data-science-pipelines-operator-controller-rhel9 | Not affected | ||
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-kf-notebook-controller-rhel9 | Under investigation | ||
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-kserve-controller-rhel9 | Not affected | ||
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-kserve-llmisvc-controller-rhel9 | Not affected |
Показывать по
Дополнительная информация
Статус:
EPSS
7 High
CVSS3
Связанные уязвимости
util-linux is a random collection of Linux utilities. In util-linux 2.17 through 2.41.6 and 2.42 through 2.42.3, and in 2.42.4 when the legacy `mount(2)` path is used without `/proc`, restricted non-root `mount` requests validate an `/etc/fstab` target before the mount operation re-resolves that pathname. A local low-privileged user authorized by an fstab `user` or `users` entry whose target has an attacker-writable ancestor can use `renameat2(RENAME_EXCHANGE)` to swap a path component and redirect an authorized mount to a root-owned location, such as mounting attacker-controlled content over `/etc/sudoers.d`, and thereby gain root privileges. Versions 2.41.5 and 2.42.2 pin targets for the new mount API, and 2.42.4 pins legacy targets through `/proc/self/fd`; the documented legacy fallback without `/proc` remains affected.
util-linux is a random collection of Linux utilities. In util-linux 2.17 through 2.41.6 and 2.42 through 2.42.3, and in 2.42.4 when the legacy `mount(2)` path is used without `/proc`, restricted non-root `mount` requests validate an `/etc/fstab` target before the mount operation re-resolves that pathname. A local low-privileged user authorized by an fstab `user` or `users` entry whose target has an attacker-writable ancestor can use `renameat2(RENAME_EXCHANGE)` to swap a path component and redirect an authorized mount to a root-owned location, such as mounting attacker-controlled content over `/etc/sudoers.d`, and thereby gain root privileges. Versions 2.41.5 and 2.42.2 pin targets for the new mount API, and 2.42.4 pins legacy targets through `/proc/self/fd`; the documented legacy fallback without `/proc` remains affected.
util-linux mount target TOCTOU allows local privilege escalation
util-linux is a random collection of Linux utilities. In util-linux 2. ...
Уязвимость пакета служебных утилит командной строки Util-linux, связанная с недостаточной проверкой состояния совместно используемого ресурса, позволяющая нарушителю вызвать отказ в обслуживании
EPSS
7 High
CVSS3