s390/bpf: Fix bpf_arch_text_poke() with new_addr == NULL again
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
s390/bpf: Fix bpf_arch_text_poke() with new_addr == NULL again
Commit 7ded842b356d ("s390/bpf: Fix bpf_plt pointer arithmetic") has accidentally removed the critical piece of commit c730fce7c70c ("s390/bpf: Fix bpf_arch_text_poke() with new_addr == NULL"), causing intermittent kernel panics in e.g. perf's on_switch() prog to reappear.
Restore the fix and add a comment.
From the CVE record · Linux
The Linux kernel’s s390 BPF text-patching function can intermittently panic when called with new_addr set to NULL. This can occur with programs such as perf’s on_switch() program. The input does not specify whether an attacker can trigger it or what access would be required.
Engineers running the Linux kernel on s390 should check their systems; affected versions are not specified.