ARM: 9064/1: hw_breakpoint: Do not directly check the event's overflow_handler hook
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1879445dfa7bbd6fe21b09c5cc72f4934798afed · < 7eeacc6728c5478e3c01bc82a1f08958eaa12366| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ARM: 9064/1: hw_breakpoint: Do not directly check the event's overflow_handler hook
The commit 1879445dfa7b ("perf/core: Set event's default ::overflow_handler()") set a default event->overflow_handler in perf_event_alloc(), and replace the check event->overflow_handler with is_default_overflow_handler(), but one is missing.
Currently, the bp->overflow_handler can not be NULL. As a result, enable_single_step() is always not invoked.
Comments from Zhen Lei:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/20210207105934.2001-1-thunder.leizhen@huawei.com/
From the CVE record · Linux
The Linux kernel’s ARM hw_breakpoint code checks an overflow handler that cannot be NULL, so enable_single_step() is never invoked. The input does not specify how an attacker could use this issue or whether access or user interaction is required.
Engineers running Linux kernels with the affected ARM hw_breakpoint code should check their versions; no affected versions are specified.