# CVE-2023-53216: arm64: efi: Make efi\_rt\_lock a raw\_spinlock

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **Published:** 2025-09-15T14:21:43.935Z
- **Modified:** 2026-08-05T09:13:08.599Z

## Who should check

- Anyone running Linux \>= 4012603cbd469223f225637d265a233f034c567a, \< 030b1c4217a4f504c7d0795a2bd86b7181e56f11; \>= de2af657cab92afc13a4ccd8780370481ed0eb61, \< 6a72729ed6accc86dad5522895e8fa2f96642a2c; \>= f75a91c82dc805af8f718ff106ec9c090234b37b, \< 8b38969fa01662ec539a0d08a8ea5ec6f31fa4ed; \>= ff7a167961d1b97e0e205f245f806e564d3505e7, \< 4e8f7d998b582a99aadedd07ae6086e99b89c97a; \>= ff7a167961d1b97e0e205f245f806e564d3505e7, \< 0e68b5517d3767562889f1d83fdb828c26adb24f; \>= 5.10.165, \< 5.10.175; \>= 5.15.90, \< 5.15.103; \>= 6.1.8, \< 6.1.18
- Anyone running Linux 6.2

## Description

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

arm64: efi: Make efi\_rt\_lock a raw\_spinlock

Running a rt-kernel base on 6.2.0-rc3-rt1 on an Ampere Altra outputs
the following:
  BUG: sleeping function called from invalid context at kernel/locking/spinlock\_rt.c:46
  in\_atomic(): 1, irqs\_disabled(): 0, non\_block: 0, pid: 9, name: kworker/u320:0
  preempt\_count: 2, expected: 0
  RCU nest depth: 0, expected: 0
  3 locks held by kworker/u320:0/9:
  \#0: ffff3fff8c27d128 ((wq\_completion)efi\_rts\_wq){+.+.}-{0:0}, at: process\_one\_work (./include/linux/atomic/atomic-long.h:41)
  \#1: ffff80000861bdd0 ((work\_completion)(&efi\_rts\_work.work)){+.+.}-{0:0}, at: process\_one\_work (./include/linux/atomic/atomic-long.h:41)
  \#2: ffffdf7e1ed3e460 (efi\_rt\_lock){+.+.}-{3:3}, at: efi\_call\_rts (drivers/firmware/efi/runtime-wrappers.c:101)
  Preemption disabled at:
  efi\_virtmap\_load (./arch/arm64/include/asm/mmu\_context.h:248)
  CPU: 0 PID: 9 Comm: kworker/u320:0 Tainted: G        W          6.2.0-rc3-rt1
  Hardware name: WIWYNN Mt.Jade Server System B81.03001.0005/Mt.Jade Motherboard, BIOS 1.08.20220218 (SCP: 1.08.20220218) 2022/02/18
  Workqueue: efi\_rts\_wq efi\_call\_rts
  Call trace:
  dump\_backtrace (arch/arm64/kernel/stacktrace.c:158)
  show\_stack (arch/arm64/kernel/stacktrace.c:165)
  dump\_stack\_lvl (lib/dump\_stack.c:107 (discriminator 4))
  dump\_stack (lib/dump\_stack.c:114)
  \_\_might\_resched (kernel/sched/core.c:10134)
  rt\_spin\_lock (kernel/locking/rtmutex.c:1769 (discriminator 4))
  efi\_call\_rts (drivers/firmware/efi/runtime-wrappers.c:101)
  \[...\]

This seems to come from commit ff7a167961d1 ("arm64: efi: Execute
runtime services from a dedicated stack") which adds a spinlock. This
spinlock is taken through:
efi\_call\_rts()
\\-efi\_call\_virt()
  \\-efi\_call\_virt\_pointer()
    \\-arch\_efi\_call\_virt\_setup()

Make 'efi\_rt\_lock' a raw\_spinlock to avoid being preempted.

\[ardb: The EFI runtime services are called with a different set of
       translation tables, and are permitted to use the SIMD registers.
       The context switch code preserves/restores neither, and so EFI
       calls must be made with preemption disabled, rather than only
       disabling migration.\]

## Affected and fixed versions

- Linux: \>= 4012603cbd469223f225637d265a233f034c567a, \< 030b1c4217a4f504c7d0795a2bd86b7181e56f11; \>= de2af657cab92afc13a4ccd8780370481ed0eb61, \< 6a72729ed6accc86dad5522895e8fa2f96642a2c; \>= f75a91c82dc805af8f718ff106ec9c090234b37b, \< 8b38969fa01662ec539a0d08a8ea5ec6f31fa4ed; \>= ff7a167961d1b97e0e205f245f806e564d3505e7, \< 4e8f7d998b582a99aadedd07ae6086e99b89c97a; \>= ff7a167961d1b97e0e205f245f806e564d3505e7, \< 0e68b5517d3767562889f1d83fdb828c26adb24f; \>= 5.10.165, \< 5.10.175; \>= 5.15.90, \< 5.15.103; \>= 6.1.8, \< 6.1.18 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 6.1.18 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53216. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53216.md
Affected: Linux >= 4012603cbd469223f225637d265a233f034c567a, < 030b1c4217a4f504c7d0795a2bd86b7181e56f11; >= de2af657cab92afc13a4ccd8780370481ed0eb61, < 6a72729ed6accc86dad5522895e8fa2f96642a2c; >= f75a91c82dc805af8f718ff106ec9c090234b37b, < 8b38969fa01662ec539a0d08a8ea5ec6f31fa4ed; >= ff7a167961d1b97e0e205f2…
Fixed in: Linux 030b1c4217a4f504c7d0795a2bd86b7181e56f11, Linux 6a72729ed6accc86dad5522895e8fa2f96642a2c, Linux 8b38969fa01662ec539a0d08a8ea5ec6f31fa4ed, Linux 4e8f7d998b582a99aadedd07ae6086e99b89c97a, Linux 0e68b5517d3767562889f1d83fdb828c26adb24f, Linux 5.10.175, Linux 5.15.103, Linux 6.1.18

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53216 being exploited?

There is no confirmed exploitation: CVE-2023-53216 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53216?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53216?

Linux \>= 4012603cbd469223f225637d265a233f034c567a, \< 030b1c4217a4f504c7d0795a2bd86b7181e56f11; \>= de2af657cab92afc13a4ccd8780370481ed0eb61, \< 6a72729ed6accc86dad5522895e8fa2f96642a2c; \>= f75a91c82dc805af8f718ff106ec9c090234b37b, \< 8b38969fa01662ec539a0d08a8ea5ec6f31fa4ed; \>= ff7a167961d1b97e0e205f245f806e564d3505e7, \< 4e8f7d998b582a99aadedd07ae6086e99b89c97a; \>= ff7a167961d1b97e0e205f245f806e564d3505e7, \< 0e68b5517d3767562889f1d83fdb828c26adb24f; \>= 5.10.165, \< 5.10.175; \>= 5.15.90, \< 5.15.103; \>= 6.1.8, \< 6.1.18; Linux 6.2.

### Is there a fix for CVE-2023-53216?

Yes. Fixed in Linux 030b1c4217a4f504c7d0795a2bd86b7181e56f11, Linux 6a72729ed6accc86dad5522895e8fa2f96642a2c, Linux 8b38969fa01662ec539a0d08a8ea5ec6f31fa4ed, Linux 4e8f7d998b582a99aadedd07ae6086e99b89c97a, Linux 0e68b5517d3767562889f1d83fdb828c26adb24f, Linux 5.10.175, Linux 5.15.103, Linux 6.1.18. Upgrade Linux to 6.1.18 or later.

### How do I check if I'm affected by CVE-2023-53216?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/030b1c4217a4f504c7d0795a2bd86b7181e56f11>
- patch: <https://git.kernel.org/stable/c/6a72729ed6accc86dad5522895e8fa2f96642a2c>
- patch: <https://git.kernel.org/stable/c/8b38969fa01662ec539a0d08a8ea5ec6f31fa4ed>
- patch: <https://git.kernel.org/stable/c/4e8f7d998b582a99aadedd07ae6086e99b89c97a>
- patch: <https://git.kernel.org/stable/c/0e68b5517d3767562889f1d83fdb828c26adb24f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53216>

HTML: <https://flawdb.com/CVE-2023-53216> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53216>
