bpf: Set run context for rawtp test_run callback
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bpf: Set run context for rawtp test_run callback
syzbot reported crash when rawtp program executed through the test_run interface calls bpf_get_attach_cookie helper or any other helper that touches task->bpf_ctx pointer.
Setting the run context (task->bpf_ctx pointer) for test_run callback.
From the CVE record · Linux
The Linux kernel’s BPF raw tracepoint test_run callback does not set the run context needed by helpers that access task->bpf_ctx. Running a raw tracepoint program through test_run that calls bpf_get_attach_cookie or another such helper can crash the kernel. The input does not specify whether authentication, local access, or user interaction is required.
Engineers running the Linux kernel should check whether their kernel is affected; affected versions are not specified.