kprobes/x86: Use copy_from_kernel_nofault() to read from unsafe address
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:
kprobes/x86: Use copy_from_kernel_nofault() to read from unsafe address
Read from an unsafe address with copy_from_kernel_nofault() in arch_adjust_kprobe_addr() because this function is used before checking the address is in text or not. Syzcaller bot found a bug and reported the case if user specifies inaccessible data area, arch_adjust_kprobe_addr() will cause a kernel panic.
[ mingo: Clarified the comment. ]
From the CVE record · Linux
The Linux kernel's x86 kprobes code can read an unsafe address before checking whether it is in kernel text. If a user specifies an inaccessible data area, this can cause a kernel panic. The input does not specify authentication requirements or whether user interaction is needed.
Engineers running Linux kernels with x86 kprobes should check their versions; affected versions are not specified.