# CVE-2022-49799: tracing: Fix wild-memory-access in register\_synth\_event()

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; 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.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-05-01T14:09:28.377Z
- **Modified:** 2026-11-05T20:17:12.233Z

## Who should check

- Anyone running Linux \>= 4b147936fa509650beaf638b331573c23ba4d609, \< 315b149f08229a233d47532eb5da1707b28f764c; \>= 4b147936fa509650beaf638b331573c23ba4d609, \< 6517b97134f724d12f673f9fb4f456d75c7a905f; \>= 4b147936fa509650beaf638b331573c23ba4d609, \< a5bfa53e5036b3e7a80be902dd3719a930accabd; \>= 4b147936fa509650beaf638b331573c23ba4d609, \< 1b5f1c34d3f5a664a57a5a7557a50e4e3cc2505c
- Anyone running Linux 4.17

## Description

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

tracing: Fix wild-memory-access in register\_synth\_event()

In register\_synth\_event(), if set\_synth\_event\_print\_fmt() failed, then
both trace\_remove\_event\_call() and unregister\_trace\_event() will be
called, which means the trace\_event\_call will call
\_\_unregister\_trace\_event() twice. As the result, the second unregister
will causes the wild-memory-access.

register\_synth\_event
    set\_synth\_event\_print\_fmt failed
    trace\_remove\_event\_call
        event\_remove
            if call-\>event.funcs then
            \_\_unregister\_trace\_event (first call)
    unregister\_trace\_event
        \_\_unregister\_trace\_event (second call)

Fix the bug by avoiding to call the second \_\_unregister\_trace\_event() by
checking if the first one is called.

general protection fault, probably for non-canonical address
	0xfbd59c0000000024: 0000 \[\#1\] SMP KASAN PTI
KASAN: maybe wild-memory-access in range
\[0xdead000000000120-0xdead000000000127\]
CPU: 0 PID: 3807 Comm: modprobe Not tainted
6.1.0-rc1-00186-g76f33a7eedb4 \#299
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014
RIP: 0010:unregister\_trace\_event+0x6e/0x280
Code: 00 fc ff df 4c 89 ea 48 c1 ea 03 80 3c 02 00 0f 85 0e 02 00 00 48
b8 00 00 00 00 00 fc ff df 4c 8b 63 08 4c 89 e2 48 c1 ea 03 \<80\> 3c 02
00 0f 85 e2 01 00 00 49 89 2c 24 48 85 ed 74 28 e8 7a 9b
RSP: 0018:ffff88810413f370 EFLAGS: 00010a06
RAX: dffffc0000000000 RBX: ffff888105d050b0 RCX: 0000000000000000
RDX: 1bd5a00000000024 RSI: ffff888119e276e0 RDI: ffffffff835a8b20
RBP: dead000000000100 R08: 0000000000000000 R09: fffffbfff0913481
R10: ffffffff8489a407 R11: fffffbfff0913480 R12: dead000000000122
R13: ffff888105d050b8 R14: 0000000000000000 R15: ffff888105d05028
FS:  00007f7823e8d540(0000) GS:ffff888119e00000(0000)
knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7823e7ebec CR3: 000000010a058002 CR4: 0000000000330ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 \_\_create\_synth\_event+0x1e37/0x1eb0
 create\_or\_delete\_synth\_event+0x110/0x250
 synth\_event\_run\_command+0x2f/0x110
 test\_gen\_synth\_cmd+0x170/0x2eb \[synth\_event\_gen\_test\]
 synth\_event\_gen\_test\_init+0x76/0x9bc \[synth\_event\_gen\_test\]
 do\_one\_initcall+0xdb/0x480
 do\_init\_module+0x1cf/0x680
 load\_module+0x6a50/0x70a0
 \_\_do\_sys\_finit\_module+0x12f/0x1c0
 do\_syscall\_64+0x3f/0x90
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

## Affected and fixed versions

- Linux: \>= 4b147936fa509650beaf638b331573c23ba4d609, \< 315b149f08229a233d47532eb5da1707b28f764c; \>= 4b147936fa509650beaf638b331573c23ba4d609, \< 6517b97134f724d12f673f9fb4f456d75c7a905f; \>= 4b147936fa509650beaf638b331573c23ba4d609, \< a5bfa53e5036b3e7a80be902dd3719a930accabd; \>= 4b147936fa509650beaf638b331573c23ba4d609, \< 1b5f1c34d3f5a664a57a5a7557a50e4e3cc2505c (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49799.md
Affected: Linux >= 4b147936fa509650beaf638b331573c23ba4d609, < 315b149f08229a233d47532eb5da1707b28f764c; >= 4b147936fa509650beaf638b331573c23ba4d609, < 6517b97134f724d12f673f9fb4f456d75c7a905f; >= 4b147936fa509650beaf638b331573c23ba4d609, < a5bfa53e5036b3e7a80be902dd3719a930accabd; >= 4b147936fa509650beaf638…
Fixed in: Linux 315b149f08229a233d47532eb5da1707b28f764c, Linux 6517b97134f724d12f673f9fb4f456d75c7a905f, Linux 1b5f1c34d3f5a664a57a5a7557a50e4e3cc2505c

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

There is no confirmed exploitation: CVE-2022-49799 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-2022-49799?

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

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

Linux \>= 4b147936fa509650beaf638b331573c23ba4d609, \< 315b149f08229a233d47532eb5da1707b28f764c; \>= 4b147936fa509650beaf638b331573c23ba4d609, \< 6517b97134f724d12f673f9fb4f456d75c7a905f; \>= 4b147936fa509650beaf638b331573c23ba4d609, \< a5bfa53e5036b3e7a80be902dd3719a930accabd; \>= 4b147936fa509650beaf638b331573c23ba4d609, \< 1b5f1c34d3f5a664a57a5a7557a50e4e3cc2505c; Linux 4.17.

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

Yes. Fixed in Linux 315b149f08229a233d47532eb5da1707b28f764c, Linux 6517b97134f724d12f673f9fb4f456d75c7a905f, Linux 1b5f1c34d3f5a664a57a5a7557a50e4e3cc2505c. Upgrade Linux to 1b5f1c34d3f5a664a57a5a7557a50e4e3cc2505c or later.

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

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/315b149f08229a233d47532eb5da1707b28f764c>
- patch: <https://git.kernel.org/stable/c/6517b97134f724d12f673f9fb4f456d75c7a905f>
- patch: <https://git.kernel.org/stable/c/a5bfa53e5036b3e7a80be902dd3719a930accabd>
- patch: <https://git.kernel.org/stable/c/1b5f1c34d3f5a664a57a5a7557a50e4e3cc2505c>

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

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