# CVE-2023-54160: firmware: arm\_sdei: Fix sleep from invalid context BUG

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-24T13:07:08.883Z
- **Modified:** 2026-06-17T06:46:54.730Z

## Who should check

- Anyone running Linux \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 59842a9ba27d5390ae5bf3233a92cad3a26d495c; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 48ac727ea4a3577eb1b4e24f807ba532c47930f9; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 7d8f5ccc826b39e05ff252b1fccd808c7a0725e0; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 66caf22787714c925e755719c293aaf3cb0b873b; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< a8267bc8de736cae927165191b52fbc20d101dd1; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 18d5ea5b746120a3972e6c347ad9428228445327; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< d2c48b2387eb89e0bf2a2e06e30987cf410acad4
- Anyone running Linux 4.16

## Description

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

firmware: arm\_sdei: Fix sleep from invalid context BUG

Running a preempt-rt (v6.2-rc3-rt1) based kernel on an Ampere Altra
triggers:

  BUG: sleeping function called from invalid context at kernel/locking/spinlock\_rt.c:46
  in\_atomic(): 0, irqs\_disabled(): 128, non\_block: 0, pid: 24, name: cpuhp/0
  preempt\_count: 0, expected: 0
  RCU nest depth: 0, expected: 0
  3 locks held by cpuhp/0/24:
    \#0: ffffda30217c70d0 (cpu\_hotplug\_lock){++++}-{0:0}, at: cpuhp\_thread\_fun+0x5c/0x248
    \#1: ffffda30217c7120 (cpuhp\_state-up){+.+.}-{0:0}, at: cpuhp\_thread\_fun+0x5c/0x248
    \#2: ffffda3021c711f0 (sdei\_list\_lock){....}-{3:3}, at: sdei\_cpuhp\_up+0x3c/0x130
  irq event stamp: 36
  hardirqs last  enabled at (35): \[\<ffffda301e85b7bc\>\] finish\_task\_switch+0xb4/0x2b0
  hardirqs last disabled at (36): \[\<ffffda301e812fec\>\] cpuhp\_thread\_fun+0x21c/0x248
  softirqs last  enabled at (0): \[\<ffffda301e80b184\>\] copy\_process+0x63c/0x1ac0
  softirqs last disabled at (0): \[\<0000000000000000\>\] 0x0
  CPU: 0 PID: 24 Comm: cpuhp/0 Not tainted 5.19.0-rc3-rt5-\[...\]
  Hardware name: WIWYNN Mt.Jade Server \[...\]
  Call trace:
    dump\_backtrace+0x114/0x120
    show\_stack+0x20/0x70
    dump\_stack\_lvl+0x9c/0xd8
    dump\_stack+0x18/0x34
    \_\_might\_resched+0x188/0x228
    rt\_spin\_lock+0x70/0x120
    sdei\_cpuhp\_up+0x3c/0x130
    cpuhp\_invoke\_callback+0x250/0xf08
    cpuhp\_thread\_fun+0x120/0x248
    smpboot\_thread\_fn+0x280/0x320
    kthread+0x130/0x140
    ret\_from\_fork+0x10/0x20

sdei\_cpuhp\_up() is called in the STARTING hotplug section,
which runs with interrupts disabled. Use a CPUHP\_AP\_ONLINE\_DYN entry
instead to execute the cpuhp cb later, with preemption enabled.

SDEI originally got its own cpuhp slot to allow interacting
with perf. It got superseded by pNMI and this early slot is not
relevant anymore. \[1\]

Some SDEI calls (e.g. SDEI\_1\_0\_FN\_SDEI\_PE\_MASK) take actions on the
calling CPU. It is checked that preemption is disabled for them.
\_ONLINE cpuhp cb are executed in the 'per CPU hotplug thread'.
Preemption is enabled in those threads, but their cpumask is limited
to 1 CPU.
Move 'WARN\_ON\_ONCE(preemptible())' statements so that SDEI cpuhp cb
don't trigger them.

Also add a check for the SDEI\_1\_0\_FN\_SDEI\_PRIVATE\_RESET SDEI call
which acts on the calling CPU.

\[1\]:
https://lore.kernel.org/all/5813b8c5-ae3e-87fd-fccc-94c9cd08816d@arm.com/

## Affected and fixed versions

- Linux: \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 59842a9ba27d5390ae5bf3233a92cad3a26d495c; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 48ac727ea4a3577eb1b4e24f807ba532c47930f9; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 7d8f5ccc826b39e05ff252b1fccd808c7a0725e0; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 66caf22787714c925e755719c293aaf3cb0b873b; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< a8267bc8de736cae927165191b52fbc20d101dd1; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 18d5ea5b746120a3972e6c347ad9428228445327; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< d2c48b2387eb89e0bf2a2e06e30987cf410acad4 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-54160.md
Affected: Linux >= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, < 59842a9ba27d5390ae5bf3233a92cad3a26d495c; >= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, < 48ac727ea4a3577eb1b4e24f807ba532c47930f9; >= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, < 7d8f5ccc826b39e05ff252b1fccd808c7a0725e0; >= f92b5462a2f22d13a75dc66…
Fixed in: Linux 59842a9ba27d5390ae5bf3233a92cad3a26d495c, Linux 48ac727ea4a3577eb1b4e24f807ba532c47930f9, Linux 7d8f5ccc826b39e05ff252b1fccd808c7a0725e0, Linux 66caf22787714c925e755719c293aaf3cb0b873b, Linux 18d5ea5b746120a3972e6c347ad9428228445327

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-54160 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 59842a9ba27d5390ae5bf3233a92cad3a26d495c; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 48ac727ea4a3577eb1b4e24f807ba532c47930f9; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 7d8f5ccc826b39e05ff252b1fccd808c7a0725e0; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 66caf22787714c925e755719c293aaf3cb0b873b; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< a8267bc8de736cae927165191b52fbc20d101dd1; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< 18d5ea5b746120a3972e6c347ad9428228445327; \>= f92b5462a2f22d13a75dc663f7b2fac16a3e61cb, \< d2c48b2387eb89e0bf2a2e06e30987cf410acad4; Linux 4.16.

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

Yes. Fixed in Linux 59842a9ba27d5390ae5bf3233a92cad3a26d495c, Linux 48ac727ea4a3577eb1b4e24f807ba532c47930f9, Linux 7d8f5ccc826b39e05ff252b1fccd808c7a0725e0, Linux 66caf22787714c925e755719c293aaf3cb0b873b, Linux 18d5ea5b746120a3972e6c347ad9428228445327. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/59842a9ba27d5390ae5bf3233a92cad3a26d495c>
- other: <https://git.kernel.org/stable/c/48ac727ea4a3577eb1b4e24f807ba532c47930f9>
- other: <https://git.kernel.org/stable/c/7d8f5ccc826b39e05ff252b1fccd808c7a0725e0>
- other: <https://git.kernel.org/stable/c/66caf22787714c925e755719c293aaf3cb0b873b>
- other: <https://git.kernel.org/stable/c/a8267bc8de736cae927165191b52fbc20d101dd1>
- other: <https://git.kernel.org/stable/c/18d5ea5b746120a3972e6c347ad9428228445327>
- other: <https://git.kernel.org/stable/c/d2c48b2387eb89e0bf2a2e06e30987cf410acad4>

## 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-54160>

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