perf: Revert to requiring CAP_SYS_ADMIN for uprobes
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c9e0924e5c2b59365f9c0d43ff8722e79ecf4088 · < d5074256b642cdeb46a70ce2f15193e766edca68| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
perf: Revert to requiring CAP_SYS_ADMIN for uprobes
Jann reports that uprobes can be used destructively when used in the middle of an instruction. The kernel only verifies there is a valid instruction at the requested offset, but due to variable instruction length cannot determine if this is an instruction as seen by the intended execution stream.
Additionally, Mark Rutland notes that on architectures that mix data in the text segment (like arm64), a similar things can be done if the data word is 'mistaken' for an instruction.
As such, require CAP_SYS_ADMIN for uprobes.
From the CVE record · Linux
The Linux kernel’s perf uprobes can be used destructively when placed in the middle of an instruction, or when data in a text segment is mistaken for an instruction. This requires the ability to configure uprobes; the input does not specify whether other authentication or user interaction is needed.
Engineers running the Linux kernel should check their kernel version against the vendor advisory; affected versions are not specified.