Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
util-linux util-linux
Default version status: unaffected
2.39 to < 2.41.6affected2.42 to < 2.42.3affected
pkg:github/util-linux/util-linuxReferences
- https://github.com/util-linux/util-linux/security/advisories/GHSA-m25x-3hj9-m26f ↗
- https://github.com/util-linux/util-linux/commit/f57cea130839c0af8dc0525274267ae4cfd66bbf ↗
- https://github.com/util-linux/util-linux/commit/1d14676ea70003e9f5b2a6a76af0cadb1190411a ↗
- https://github.com/util-linux/util-linux/commit/a15c00a9e545aa8b9cf6ec0f888ff6c7b3eaeedc ↗
- https://github.com/util-linux/util-linux/blob/v2.42.2/libmount/src/context_mount.c#L476 ↗
- https://github.com/util-linux/util-linux/blob/v2.42.2/libmount/src/context_mount.c#L892 ↗
- https://github.com/util-linux/util-linux ↗
- https://www.vulncheck.com/advisories/util-linux-libmount-privilege-escalation-via-failed-mount-helper ↗