# CVE-2026-93254: arm64: entry: Avoid unnecessary local_irq_disable() on kernel exit

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-09-24T15:51:40.955Z
- Modified: 2026-10-19T10:17:16.687Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

arm64: entry: Avoid unnecessary local_irq_disable() on kernel exit

Currently, when exiting to kernel mode, we attempt involuntary
preemption. The preemption logic expects IRQs to be disabled, which is
why we call local_irq_disable() before attempting preemption.

However, depending on the context, local_irq_disable() may be
unnecessary:

- __el1_irq(), the non-NMI EL1 IRQ path, already has IRQs disabled, so
  local_irq_disable() is redundant.

- irqentry_exit_to_kernel_mode_preempt() immediately returns when
  exiting from an NMI-like context, so calling local_irq_disable()
  beforehand is unnecessary work.

Furthermore, it confuses the pNMI state tracking when we are in a
context with interrupts disabled and the GIC_PRIO_PSR_I_SET bit is set
in the PMR, leading to a warning when
CONFIG_ARM64_DEBUG_PRIORITY_MASKING=y:

     WARNING: ./arch/arm64/include/asm/irqflags.h:63 at arm64_exit_to_kernel_mode+0xb8/0xc0, CPU#40: retsnoop/31805
     CPU: 40 UID: 0 PID: 31805 Comm: retsnoop Not tainted 7.2.0-rc6-next-20260805 #7 PREEMPTLAZY
     pstate: 234013c9 (nzCv DAIF +PAN -UAO +TCO +DIT +SSBS BTYPE=--)
     pc : arm64_exit_to_kernel_mode (arch/arm64/kernel/entry-common.c:63)
     lr : el1_abort (arch/arm64/kernel/entry-common.c:323)
     pmr: 000000f0
     Call trace:
      arm64_exit_to_kernel_mode (arch/arm64/kernel/entry-common.c:63) (P)
      el1_abort (arch/arm64/kernel/entry-common.c:323)
      el1h_64_sync_handler (arch/arm64/kernel/entry-common.c:449)
      el1h_64_sync (arch/arm64/kernel/entry.S:589)
      [...]

Split arm64_exit_to_kernel_mode() into preempt, non-preempt, and
dispatch parts so that we can avoid this extra work where it is not
needed and avoid breaking the pNMI tracking logic.

(As written by CVE List.)

## Affected

- Linux Linux: from ae654112eac05f316ef31587fc55e4d7160d0086 before 49a61174186bed25d439ff37400c7ce5e3603e73; from ae654112eac05f316ef31587fc55e4d7160d0086 before 39aebe0e89469c2904e60b1e977e0d4dbf33326b; 7.1 (not affected: before 7.1; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/49a61174186bed25d439ff37400c7ce5e3603e73>
- <https://git.kernel.org/stable/c/39aebe0e89469c2904e60b1e977e0d4dbf33326b>

## Sources

- CVE List: [CVE-2026-93254](https://www.cve.org/CVERecord?id=CVE-2026-93254), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-93254](https://nvd.nist.gov/vuln/detail/CVE-2026-93254), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-93254 · Whole record: https://cve.day/CVE-2026-93254.json · Rebuilt by cve.day 2026-11-25T22:59:40.796Z
