Fedora Account System
Red Hat Associate
Red Hat Customer
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process. A flaw was found in tuned's spindown-disk profile script. The script selects the partitions to remount by grepping the human-readable output of mount for ext3/ext4 filesystems and using the first field as the mount source, without validating it. Because mount does not escape attacker-controlled FUSE mount fields, a local user able to create FUSE mounts can craft an entry that matches the filter and controls the source string passed to "mount -o remount", which tuned runs as root. For a FUSE filesystem, mount dispatches to the mount.fuse helper, which still supports the old program#argument source syntax and executes the program via /bin/sh -c, resulting in command execution as root. Exploitation requires the spindown-disk profile to be installed (shipped in the tuned-profiles-compat package on Fedora and RHEL) and a FUSE installation providing both the setuid fusermount3 helper and mount.fuse. With the default polkit policy, a user in an active local session can trigger the flaw without authentication by switching to the spindown-disk profile; a user without an active session can achieve the same result by waiting for the tuned service to restart or another user to reload the profile while spindown-disk is active.