bpf: Disable preemption in bpf_get_stackid
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d5a3b1f691865be576c2bffa708549b8cdccda19 · < 15f1bd8574662f1b7b26aaa2e23ebf4066f0117d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bpf: Disable preemption in bpf_get_stackid
The get_perf_callchain call needs disabled preemption plus we need it disabled as long as we access its returned trace entries buffer.
Note the bpf_get_stackid_pe function is executed already with preemption disabled.
From the CVE record · Linux
The Linux kernel's bpf_get_stackid function can call get_perf_callchain and access its returned trace entries without disabling preemption. The input does not specify an attacker outcome or whether exploitation requires network access, authentication, or user interaction.
Engineers running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified.