tracing/user_events: Ensure write index cannot be negative
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tracing/user_events: Ensure write index cannot be negative
The write index indicates which event the data is for and accesses a per-file array. The index is passed by user processes during write() calls as the first 4 bytes. Ensure that it cannot be negative by returning -EINVAL to prevent out of bounds accesses.
Update ftrace self-test to ensure this occurs properly.
From the CVE record · Linux
The Linux kernel's tracing/user_events code did not reject a negative write index used to access a per-file array. A local process could supply that index in the first four bytes of a write() call, potentially causing an out-of-bounds access. The input does not specify authentication requirements or user interaction.
Engineers running the Linux kernel should check their installations; affected versions are not specified.