REDHAT-BUG-2585500: High severity redhat/tuned-profiles-compat vulnerability
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.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Exposure requires the spindown-disk profile from tuned-profiles-compat to be installed, plus a FUSE installation that provides both the setuid fusermount3 helper and mount.fuse. The profile is shipped in tuned-profiles-compat on Fedora and RHEL.
What level of access does an attacker need?
An attacker needs local access and must be able to create a FUSE mount with attacker-controlled mount fields. Under the default polkit policy, a user in an active local session can switch to the spindown-disk profile without authentication.
Can a local user exploit this without an active desktop or login session?
Yes. A user without an active session can wait for the tuned service to restart or for another user to reload the profile, which can trigger the vulnerable remount operation.
How can administrators assess whether a host is affected?
Check whether tuned-profiles-compat and its spindown-disk profile are installed, and whether the host has FUSE with setuid fusermount3 and mount.fuse available. Hosts where local users can create FUSE mounts and cause the spindown-disk profile to be activated meet the stated exploitation prerequisites.