util-linux LIBMOUNT_FORCE_MOUNT2 allows nosuid and noexec bypass
What fixes it
- 2.41.5; 2.42.2util-linuxGitHub
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
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.
Text from GitHub Advisory Database
Affected versions 3
- util-linuxaffected: >= 2.39.1, < 2.41.5CVE List
- util-linuxaffected: >= 2.42, < 2.42.2CVE List
- util-linux>= 2.39.1GitHub
References 8
- github.com/util-linux/util-linux/commit/31e37c1c7dcf25b76ccf41391fe934a75644c661Fixvia CVE List
- github.com/util-linux/util-linux/commit/53ff0fcdab12d69c60c971c69a3d0d173fa46ca9Fixvia CVE List
- github.com/util-linux/util-linux/commit/9cbfb823500f510b34767edabd3ffd5b436987b4Fixvia CVE List
- github.com/util-linux/util-linux/commit/cc81bbcec598cb91f0eb8456282f33eed820ed5fFixvia CVE List
- github.com/util-linux/util-linux/commit/fd6b4d94ff013dc7ed680d4e864610da5b9751f1Fixvia CVE List
- github.com/util-linux/util-linux/releases/tag/v2.41.5Fixvia CVE List
- github.com/util-linux/util-linux/releases/tag/v2.42.2Fixvia CVE List
- github.com/util-linux/util-linux/security/advisories/GHSA-67r7-8m5w-22wxAdvisoryvia CVE List