tools/power/x86/intel-speed-select: Harden daemon pidfile open
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7fd786dfbd2c55ddee3b87f33c82f1c58bdb1dd6 · < 607af438e6430893a822964c841a1994b33acccc| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tools/power/x86/intel-speed-select: Harden daemon pidfile open
Avoid symlink-based pidfile clobbering by opening the pidfile with O_NOFOLLOW and validating it with fstat() before locking/writing.
The daemon currently uses a fixed pidfile path under /tmp. A local unprivileged user can pre-create a symlink at that path and cause a root-run daemon instance to write into an attacker-chosen file.
From the CVE record · Linux
The intel-speed-select daemon uses a fixed pidfile path under /tmp. A local unprivileged user can place a symlink there and cause a root-run daemon to write to an attacker-chosen file when it opens the pidfile. No network access or user interaction is described.
Anyone running the Linux intel-speed-select daemon should check their installation; affected versions are not specified.