{
  "cveId": "CVE-2022-49888",
  "url": "https://patchblox.com/security/cve/CVE-2022-49888",
  "summary": "CVE-2022-49888 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-49888, released May 1, 2025. It is not reported as exploited. Patch Radar priority: High.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  arm64: entry: avoid kprobe recursion  The cortex...",
  "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 (\u0022arm64: entry: consolidate Cortex-A76 erratum 1463225 workaround\u0022)  ... 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 \u003E /sys/kernel/debug/tracing/kprobe_events | # echo p do_el0_svc \u003E\u003E /sys/kernel/debug/tracing/kprobe_events | # echo 1 \u003E /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 \u002BPAN -UAO -TCO -DIT -SSBS BTYPE=--) | pc : arm64_enter_el1_dbg\u002B0x4/0x20 | lr : el1_dbg\u002B0x24/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\u002B0xe4/0x104 |  show_stack\u002B0x18/0x4c |  dump_stack_lvl\u002B0x64/0x7c |  dump_stack\u002B0x18/0x38 |  panic\u002B0x14c/0x338 |  test_taint\u002B0x0/0x2c |  panic_bad_stack\u002B0x104/0x118 |  handle_bad_stack\u002B0x34/0x48 |  __bad_stack\u002B0x78/0x7c |  arm64_enter_el1_dbg\u002B0x4/0x20 |  el1h_64_sync_handler\u002B0x40/0x98 |  el1h_64_sync\u002B0x64/0x68 |  cortex_a76_erratum_1463225_debug_handler\u002B0x0/0x34 ... |  el1h_64_sync_handler\u002B0x40/0x98 |  el1h_64_sync\u002B0x64/0x68 |  cortex_a76_erratum_1463225_debug_handler\u002B0x0/0x34 ... |  el1h_64_sync_handler\u002B0x40/0x98 |  el1h_64_sync\u002B0x64/0x68 |  cortex_a76_erratum_1463225_debug_handler\u002B0x0/0x34 |  el1h_64_sync_handler\u002B0x40/0x98 |  el1h_64_sync\u002B0x64/0x68 |  do_el0_svc\u002B0x0/0x28 |  el0t_64_sync_handler\u002B0x84/0xf0 |  el0t_64_sync\u002B0x18c/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 \u003E /sys/kernel/debug/tracing/kprobe_events | sh: write error: No such file or directory | # grep -w cortex_a76_errat ---truncated---",
  "published": "2025-05-01T15:16:13Z",
  "severity": "high",
  "cvss": 7.8,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
  "epss": 0.00247,
  "epssPercentile": 0.16131,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "6.0.8-1",
      "fix": "DEBIAN-CVE-2022-49888",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-49888",
      "released": "2025-05-01T15:16:13Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.0.8-1",
      "fix": "DEBIAN-CVE-2022-49888",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-49888",
      "released": "2025-05-01T15:16:13Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.0.8-1",
      "fix": "DEBIAN-CVE-2022-49888",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-49888",
      "released": "2025-05-01T15:16:13Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}