# CVE-2023-53634: bpf, arm64: Fixed a BTI error on returning to patched function

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.23% (percentile 9, 2026-11-26)
- **Published:** 2025-10-07T15:19:36.306Z
- **Modified:** 2026-06-17T06:45:45.787Z

## Who should check

- Anyone running Linux \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 8b9c64942ada229f52fe6f1b537a50f88b3c2673; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< eabc166919d169e105263974991f52b0351e431a; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 738a96c4a8c36950803fdd27e7c30aca92dccefd
- Anyone running Linux 6.0

## Description

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

bpf, arm64: Fixed a BTI error on returning to patched function

When BPF\_TRAMP\_F\_CALL\_ORIG is set, BPF trampoline uses BLR to jump
back to the instruction next to call site to call the patched function.
For BTI-enabled kernel, the instruction next to call site is usually
PACIASP, in this case, it's safe to jump back with BLR. But when
the call site is not followed by a PACIASP or bti, a BTI exception
is triggered.

Here is a fault log:

 Unhandled 64-bit el1h sync exception on CPU0, ESR 0x0000000034000002 -- BTI
 CPU: 0 PID: 263 Comm: test\_progs Tainted: GF
 Hardware name: linux,dummy-virt (DT)
 pstate: 40400805 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=-c)
 pc : bpf\_fentry\_test1+0xc/0x30
 lr : bpf\_trampoline\_6442573892\_0+0x48/0x1000
 sp : ffff80000c0c3a50
 x29: ffff80000c0c3a90 x28: ffff0000c2e6c080 x27: 0000000000000000
 x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000050
 x23: 0000000000000000 x22: 0000ffffcfd2a7f0 x21: 000000000000000a
 x20: 0000ffffcfd2a7f0 x19: 0000000000000000 x18: 0000000000000000
 x17: 0000000000000000 x16: 0000000000000000 x15: 0000ffffcfd2a7f0
 x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
 x11: 0000000000000000 x10: ffff80000914f5e4 x9 : ffff8000082a1528
 x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0101010101010101
 x5 : 0000000000000000 x4 : 00000000fffffff2 x3 : 0000000000000001
 x2 : ffff8001f4b82000 x1 : 0000000000000000 x0 : 0000000000000001
 Kernel panic - not syncing: Unhandled exception
 CPU: 0 PID: 263 Comm: test\_progs Tainted: GF
 Hardware name: linux,dummy-virt (DT)
 Call trace:
  dump\_backtrace+0xec/0x144
  show\_stack+0x24/0x7c
  dump\_stack\_lvl+0x8c/0xb8
  dump\_stack+0x18/0x34
  panic+0x1cc/0x3ec
  \_\_el0\_error\_handler\_common+0x0/0x130
  el1h\_64\_sync\_handler+0x60/0xd0
  el1h\_64\_sync+0x78/0x7c
  bpf\_fentry\_test1+0xc/0x30
  bpf\_fentry\_test1+0xc/0x30
  bpf\_prog\_test\_run\_tracing+0xdc/0x2a0
  \_\_sys\_bpf+0x438/0x22a0
  \_\_arm64\_sys\_bpf+0x30/0x54
  invoke\_syscall+0x78/0x110
  el0\_svc\_common.constprop.0+0x6c/0x1d0
  do\_el0\_svc+0x38/0xe0
  el0\_svc+0x30/0xd0
  el0t\_64\_sync\_handler+0x1ac/0x1b0
  el0t\_64\_sync+0x1a0/0x1a4
 Kernel Offset: disabled
 CPU features: 0x0000,00034c24,f994fdab
 Memory Limit: none

And the instruction next to call site of bpf\_fentry\_test1 is ADD,
not PACIASP:

\<bpf\_fentry\_test1\>:
	bti     c
	nop
	nop
	add     w0, w0, \#0x1
	paciasp

For BPF prog, JIT always puts a PACIASP after call site for BTI-enabled
kernel, so there is no problem. To fix it, replace BLR with RET to bypass
the branch target check.

## Affected and fixed versions

- Linux: \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 8b9c64942ada229f52fe6f1b537a50f88b3c2673; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< eabc166919d169e105263974991f52b0351e431a; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 738a96c4a8c36950803fdd27e7c30aca92dccefd (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 738a96c4a8c36950803fdd27e7c30aca92dccefd 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-53634. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53634.md
Affected: Linux >= efc9909fdce00a827a37609628223cd45bf95d0b, < 8b9c64942ada229f52fe6f1b537a50f88b3c2673; >= efc9909fdce00a827a37609628223cd45bf95d0b, < eabc166919d169e105263974991f52b0351e431a; >= efc9909fdce00a827a37609628223cd45bf95d0b, < 738a96c4a8c36950803fdd27e7c30aca92dccefd; Linux 6.0
Fixed in: Linux 8b9c64942ada229f52fe6f1b537a50f88b3c2673, Linux 738a96c4a8c36950803fdd27e7c30aca92dccefd

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 8b9c64942ada229f52fe6f1b537a50f88b3c2673; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< eabc166919d169e105263974991f52b0351e431a; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 738a96c4a8c36950803fdd27e7c30aca92dccefd; Linux 6.0.

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

Yes. Fixed in Linux 8b9c64942ada229f52fe6f1b537a50f88b3c2673, Linux 738a96c4a8c36950803fdd27e7c30aca92dccefd. Upgrade Linux to 738a96c4a8c36950803fdd27e7c30aca92dccefd or later.

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

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/8b9c64942ada229f52fe6f1b537a50f88b3c2673>
- patch: <https://git.kernel.org/stable/c/eabc166919d169e105263974991f52b0351e431a>
- patch: <https://git.kernel.org/stable/c/738a96c4a8c36950803fdd27e7c30aca92dccefd>

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

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