CVE-2026-138820: arm64/mm: Treat faults taken by EFI runtime firmware as kernel faults
In the Linux kernel, the following vulnerability has been resolved:
arm64/mm: Treat faults taken by EFI runtime firmware as kernel faults
When EFI runtime services are invoked from a preemptible kthread, the kthread runs with efimm installed via kthreadusemm() and preemption enabled, so neither faulthandlerdisabled() nor !mm applies in dopagefault(). A permission fault taken by the firmware on one of its own (TTBR0) mappings then hits the 'access to user memory outside uaccess routines' check and oopses, without efiruntimefixupexception() ever being consulted.
efimm has no VMAs, so there is nothing for the mm to resolve. Send such faults to nocontext directly, so that dokernelfault() can recover from them as it does when the call is made with preemption disabled.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The issue affects arm64 Linux kernel systems that invoke EFI runtime services from a preemptible kthread. The failure condition involves firmware taking a permission fault on one of its own TTBR0 mappings while efi_mm is installed.
What is the observable impact if the flaw is triggered?
The kernel can hit the "access to user memory outside uaccess routines" check and oops. Because efi_mm has no VMAs, the fault cannot be resolved through its memory mappings.
Why does the execution context matter?
When the EFI runtime service call is made with preemption enabled, neither faulthandler_disabled() nor the absence of an mm causes do_page_fault() to take the kernel-fault path. This prevents efi_runtime_fixup_exception() from being consulted before the oops condition.
How does the fix change fault handling?
It sends these EFI runtime firmware faults directly to no_context. That allows __do_kernel_fault() to attempt recovery in the same manner as EFI runtime calls made with preemption disabled.