# CVE-2022-49888: arm64: entry: avoid kprobe recursion

> 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, NVD) `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.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-05-01T14:10:33.183Z
- **Modified:** 2026-11-05T20:17:17.070Z

## Who should check

- Anyone running Linux \>= 6459b8469753e9feaa8b34691d097cffad905931, \< 71d6c33fe223255f4416a01514da2c0bc3e283e7; \>= 6459b8469753e9feaa8b34691d097cffad905931, \< db66629d43b2d12cb43b004a4ca6be1d03228e97; \>= 6459b8469753e9feaa8b34691d097cffad905931, \< 024f4b2e1f874934943eb2d3d288ebc52c79f55c
- Anyone running Linux 5.12

## Description

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

arm64: entry: avoid kprobe recursion

The cortex\_a76\_erratum\_1463225\_debug\_handler() function is called when
handling debug exceptions (and synchronous exceptions from BRK
instructions), and so is called when a probed function executes. If the
compiler does not inline cortex\_a76\_erratum\_1463225\_debug\_handler(), it
can be probed.

If cortex\_a76\_erratum\_1463225\_debug\_handler() is probed, any debug
exception or software breakpoint exception will result in recursive
exceptions leading to a stack overflow. This can be triggered with the
ftrace multiple\_probes selftest, and as per the example splat below.

This is a regression caused by commit:

  6459b8469753e9fe ("arm64: entry: consolidate Cortex-A76 erratum 1463225 workaround")

... which removed the NOKPROBE\_SYMBOL() annotation associated with the
function.

My intent was that cortex\_a76\_erratum\_1463225\_debug\_handler() would be
inlined into its caller, el1\_dbg(), which is marked noinstr and cannot
be probed. Mark cortex\_a76\_erratum\_1463225\_debug\_handler() as
\_\_always\_inline to ensure this.

Example splat prior to this patch (with recursive entries elided):

\| \# echo p cortex\_a76\_erratum\_1463225\_debug\_handler \> /sys/kernel/debug/tracing/kprobe\_events
\| \# echo p do\_el0\_svc \>\> /sys/kernel/debug/tracing/kprobe\_events
\| \# echo 1 \> /sys/kernel/debug/tracing/events/kprobes/enable
\| Insufficient stack space to handle exception!
\| ESR: 0x0000000096000047 -- DABT (current EL)
\| FAR: 0xffff800009cefff0
\| Task stack:     \[0xffff800009cf0000..0xffff800009cf4000\]
\| IRQ stack:      \[0xffff800008000000..0xffff800008004000\]
\| Overflow stack: \[0xffff00007fbc00f0..0xffff00007fbc10f0\]
\| CPU: 0 PID: 145 Comm: sh Not tainted 6.0.0 \#2
\| Hardware name: linux,dummy-virt (DT)
\| pstate: 604003c5 (nZCv DAIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\| pc : arm64\_enter\_el1\_dbg+0x4/0x20
\| lr : el1\_dbg+0x24/0x5c
\| sp : ffff800009cf0000
\| x29: ffff800009cf0000 x28: ffff000002c74740 x27: 0000000000000000
\| x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000000
\| x23: 00000000604003c5 x22: ffff80000801745c x21: 0000aaaac95ac068
\| x20: 00000000f2000004 x19: ffff800009cf0040 x18: 0000000000000000
\| x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
\| x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
\| x11: 0000000000000010 x10: ffff800008c87190 x9 : ffff800008ca00d0
\| x8 : 000000000000003c x7 : 0000000000000000 x6 : 0000000000000000
\| x5 : 0000000000000000 x4 : 0000000000000000 x3 : 00000000000043a4
\| x2 : 00000000f2000004 x1 : 00000000f2000004 x0 : ffff800009cf0040
\| Kernel panic - not syncing: kernel stack overflow
\| CPU: 0 PID: 145 Comm: sh Not tainted 6.0.0 \#2
\| Hardware name: linux,dummy-virt (DT)
\| Call trace:
\|  dump\_backtrace+0xe4/0x104
\|  show\_stack+0x18/0x4c
\|  dump\_stack\_lvl+0x64/0x7c
\|  dump\_stack+0x18/0x38
\|  panic+0x14c/0x338
\|  test\_taint+0x0/0x2c
\|  panic\_bad\_stack+0x104/0x118
\|  handle\_bad\_stack+0x34/0x48
\|  \_\_bad\_stack+0x78/0x7c
\|  arm64\_enter\_el1\_dbg+0x4/0x20
\|  el1h\_64\_sync\_handler+0x40/0x98
\|  el1h\_64\_sync+0x64/0x68
\|  cortex\_a76\_erratum\_1463225\_debug\_handler+0x0/0x34
...
\|  el1h\_64\_sync\_handler+0x40/0x98
\|  el1h\_64\_sync+0x64/0x68
\|  cortex\_a76\_erratum\_1463225\_debug\_handler+0x0/0x34
...
\|  el1h\_64\_sync\_handler+0x40/0x98
\|  el1h\_64\_sync+0x64/0x68
\|  cortex\_a76\_erratum\_1463225\_debug\_handler+0x0/0x34
\|  el1h\_64\_sync\_handler+0x40/0x98
\|  el1h\_64\_sync+0x64/0x68
\|  do\_el0\_svc+0x0/0x28
\|  el0t\_64\_sync\_handler+0x84/0xf0
\|  el0t\_64\_sync+0x18c/0x190
\| Kernel Offset: disabled
\| CPU features: 0x0080,00005021,19001080
\| Memory Limit: none
\| ---\[ end Kernel panic - not syncing: kernel stack overflow \]---

With this patch, cortex\_a76\_erratum\_1463225\_debug\_handler() is inlined
into el1\_dbg(), and el1\_dbg() cannot be probed:

\| \# echo p cortex\_a76\_erratum\_1463225\_debug\_handler \> /sys/kernel/debug/tracing/kprobe\_events
\| sh: write error: No such file or directory
\| \# grep -w cortex\_a76\_errat
---truncated---

## Affected and fixed versions

- Linux: \>= 6459b8469753e9feaa8b34691d097cffad905931, \< 71d6c33fe223255f4416a01514da2c0bc3e283e7; \>= 6459b8469753e9feaa8b34691d097cffad905931, \< db66629d43b2d12cb43b004a4ca6be1d03228e97; \>= 6459b8469753e9feaa8b34691d097cffad905931, \< 024f4b2e1f874934943eb2d3d288ebc52c79f55c (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- Upgrade Linux to 024f4b2e1f874934943eb2d3d288ebc52c79f55c or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49888.md
Affected: Linux >= 6459b8469753e9feaa8b34691d097cffad905931, < 71d6c33fe223255f4416a01514da2c0bc3e283e7; >= 6459b8469753e9feaa8b34691d097cffad905931, < db66629d43b2d12cb43b004a4ca6be1d03228e97; >= 6459b8469753e9feaa8b34691d097cffad905931, < 024f4b2e1f874934943eb2d3d288ebc52c79f55c; Linux 5.12
Fixed in: Linux 71d6c33fe223255f4416a01514da2c0bc3e283e7, Linux 024f4b2e1f874934943eb2d3d288ebc52c79f55c

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-2022-49888 being exploited?

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

### How serious is CVE-2022-49888?

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

### Which versions are affected by CVE-2022-49888?

Linux \>= 6459b8469753e9feaa8b34691d097cffad905931, \< 71d6c33fe223255f4416a01514da2c0bc3e283e7; \>= 6459b8469753e9feaa8b34691d097cffad905931, \< db66629d43b2d12cb43b004a4ca6be1d03228e97; \>= 6459b8469753e9feaa8b34691d097cffad905931, \< 024f4b2e1f874934943eb2d3d288ebc52c79f55c; Linux 5.12.

### Is there a fix for CVE-2022-49888?

Yes. Fixed in Linux 71d6c33fe223255f4416a01514da2c0bc3e283e7, Linux 024f4b2e1f874934943eb2d3d288ebc52c79f55c. Upgrade Linux to 024f4b2e1f874934943eb2d3d288ebc52c79f55c or later.

### How do I check if I'm affected by CVE-2022-49888?

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/71d6c33fe223255f4416a01514da2c0bc3e283e7>
- patch: <https://git.kernel.org/stable/c/db66629d43b2d12cb43b004a4ca6be1d03228e97>
- patch: <https://git.kernel.org/stable/c/024f4b2e1f874934943eb2d3d288ebc52c79f55c>

## 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-2022-49888>

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