# CVE-2022-50078: tracing/eprobes: Do not allow eprobes to use $stack, or % for regs

> 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.27% (percentile 13, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-06-18T11:02:21.119Z
- **Modified:** 2026-06-17T05:22:42.910Z

## Who should check

- Anyone running Linux \>= 7491e2c442781a1860181adb5ab472a52075f393, \< ba53c21ce9773743b8e0a8ada048c96ff2d55c67; \>= 7491e2c442781a1860181adb5ab472a52075f393, \< 7c262114a576d94c0ced80e232bbb17391a55908; \>= 7491e2c442781a1860181adb5ab472a52075f393, \< 2673c60ee67e71f2ebe34386e62d348f71edee47
- Anyone running Linux 5.15

## Description

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

tracing/eprobes: Do not allow eprobes to use $stack, or % for regs

While playing with event probes (eprobes), I tried to see what would
happen if I attempted to retrieve the instruction pointer (%rip) knowing
that event probes do not use pt\_regs. The result was:

 BUG: kernel NULL pointer dereference, address: 0000000000000024
 \#PF: supervisor read access in kernel mode
 \#PF: error\_code(0x0000) - not-present page
 PGD 0 P4D 0
 Oops: 0000 \[\#1\] PREEMPT SMP PTI
 CPU: 1 PID: 1847 Comm: trace-cmd Not tainted 5.19.0-rc5-test+ \#309
 Hardware name: Hewlett-Packard HP Compaq Pro 6300 SFF/339A, BIOS K01
v03.03 07/14/2016
 RIP: 0010:get\_event\_field.isra.0+0x0/0x50
 Code: ff 48 c7 c7 c0 8f 74 a1 e8 3d 8b f5 ff e8 88 09 f6 ff 4c 89 e7 e8
50 6a 13 00 48 89 ef 5b 5d 41 5c 41 5d e9 42 6a 13 00 66 90 \<48\> 63 47 24
8b 57 2c 48 01 c6 8b 47 28 83 f8 02 74 0e 83 f8 04 74
 RSP: 0018:ffff916c394bbaf0 EFLAGS: 00010086
 RAX: ffff916c854041d8 RBX: ffff916c8d9fbf50 RCX: ffff916c255d2000
 RDX: 0000000000000000 RSI: ffff916c255d2008 RDI: 0000000000000000
 RBP: 0000000000000000 R08: ffff916c3a2a0c08 R09: ffff916c394bbda8
 R10: 0000000000000000 R11: 0000000000000000 R12: ffff916c854041d8
 R13: ffff916c854041b0 R14: 0000000000000000 R15: 0000000000000000
 FS:  0000000000000000(0000) GS:ffff916c9ea40000(0000)
knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 0000000000000024 CR3: 000000011b60a002 CR4: 00000000001706e0
 Call Trace:
  \<TASK\>
  get\_eprobe\_size+0xb4/0x640
  ? \_\_mod\_node\_page\_state+0x72/0xc0
  \_\_eprobe\_trace\_func+0x59/0x1a0
  ? \_\_mod\_lruvec\_page\_state+0xaa/0x1b0
  ? page\_remove\_file\_rmap+0x14/0x230
  ? page\_remove\_rmap+0xda/0x170
  event\_triggers\_call+0x52/0xe0
  trace\_event\_buffer\_commit+0x18f/0x240
  trace\_event\_raw\_event\_sched\_wakeup\_template+0x7a/0xb0
  try\_to\_wake\_up+0x260/0x4c0
  \_\_wake\_up\_common+0x80/0x180
  \_\_wake\_up\_common\_lock+0x7c/0xc0
  do\_notify\_parent+0x1c9/0x2a0
  exit\_notify+0x1a9/0x220
  do\_exit+0x2ba/0x450
  do\_group\_exit+0x2d/0x90
  \_\_x64\_sys\_exit\_group+0x14/0x20
  do\_syscall\_64+0x3b/0x90
  entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0

Obviously this is not the desired result.

Move the testing for TPARG\_FL\_TPOINT which is only used for event probes
to the top of the "$" variable check, as all the other variables are not
used for event probes. Also add a check in the register parsing "%" to
fail if an event probe is used.

## Affected and fixed versions

- Linux: \>= 7491e2c442781a1860181adb5ab472a52075f393, \< ba53c21ce9773743b8e0a8ada048c96ff2d55c67; \>= 7491e2c442781a1860181adb5ab472a52075f393, \< 7c262114a576d94c0ced80e232bbb17391a55908; \>= 7491e2c442781a1860181adb5ab472a52075f393, \< 2673c60ee67e71f2ebe34386e62d348f71edee47 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50078.md
Affected: Linux >= 7491e2c442781a1860181adb5ab472a52075f393, < ba53c21ce9773743b8e0a8ada048c96ff2d55c67; >= 7491e2c442781a1860181adb5ab472a52075f393, < 7c262114a576d94c0ced80e232bbb17391a55908; >= 7491e2c442781a1860181adb5ab472a52075f393, < 2673c60ee67e71f2ebe34386e62d348f71edee47; Linux 5.15
Fixed in: Linux 7c262114a576d94c0ced80e232bbb17391a55908, Linux 2673c60ee67e71f2ebe34386e62d348f71edee47

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

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

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

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

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

Linux \>= 7491e2c442781a1860181adb5ab472a52075f393, \< ba53c21ce9773743b8e0a8ada048c96ff2d55c67; \>= 7491e2c442781a1860181adb5ab472a52075f393, \< 7c262114a576d94c0ced80e232bbb17391a55908; \>= 7491e2c442781a1860181adb5ab472a52075f393, \< 2673c60ee67e71f2ebe34386e62d348f71edee47; Linux 5.15.

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

Yes. Fixed in Linux 7c262114a576d94c0ced80e232bbb17391a55908, Linux 2673c60ee67e71f2ebe34386e62d348f71edee47. Upgrade Linux to 2673c60ee67e71f2ebe34386e62d348f71edee47 or later.

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

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/ba53c21ce9773743b8e0a8ada048c96ff2d55c67>
- patch: <https://git.kernel.org/stable/c/7c262114a576d94c0ced80e232bbb17391a55908>
- patch: <https://git.kernel.org/stable/c/2673c60ee67e71f2ebe34386e62d348f71edee47>

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

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