ARM: 9484/1: enable interrupts when unhandled user faults are triggered
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ARM: 9484/1: enable interrupts when unhandled user faults are triggered
PREEMPT_RT requires interrupts to be enabled when sending signals.
When do_DataAbort()/do_PrefetchAbort() triggers unhandled user faults, that is `inf->fn()` return a non-zero value, and the interrupts are not enabled within the hook function, force_sig_fault() will be called with interrupts disabled.
This can be triggered by user programs executing the bkpt instruction, with kernel config CONFIG_PERF_EVENTS=n.
Enable interrupts in do_DataAbort()/do_PrefetchAbort() when unhandled user faults are triggered to fix the issue.
From the CVE record · Linux
On ARM, the Linux kernel can call force_sig_fault() with interrupts disabled when an unhandled user fault occurs. A local user program can trigger this condition by executing the bkpt instruction when CONFIG_PERF_EVENTS=n; this conflicts with PREEMPT_RT's requirement that interrupts be enabled when sending signals.
Engineers running Linux kernels on ARM with CONFIG_PERF_EVENTS=n should check their systems, particularly those using PREEMPT_RT; affected versions were not provided.