# CVE-2022-49800: tracing: Fix memory leak in test\_gen\_synth\_cmd() and test\_empty\_synth\_event()

> 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.28% (percentile 14, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-05-01T14:09:29.042Z
- **Modified:** 2026-11-05T20:17:12.410Z

## Who should check

- Anyone running Linux \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< 65ba7e7c241122ef0a9e61d1920f2ae9689aa796; \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< 07ba4f0603aba288580866394f2916dfe55823a2; \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< 0e5baaa181a052d968701bb9c5b1d55847f00942; \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< a4527fef9afe5c903c718d0cd24609fe9c754250
- Anyone running Linux 5.6

## Description

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

tracing: Fix memory leak in test\_gen\_synth\_cmd() and test\_empty\_synth\_event()

test\_gen\_synth\_cmd() only free buf in fail path, hence buf will leak
when there is no failure. Add kfree(buf) to prevent the memleak. The
same reason and solution in test\_empty\_synth\_event().

unreferenced object 0xffff8881127de000 (size 2048):
  comm "modprobe", pid 247, jiffies 4294972316 (age 78.756s)
  hex dump (first 32 bytes):
    20 67 65 6e 5f 73 79 6e 74 68 5f 74 65 73 74 20   gen\_synth\_test
    20 70 69 64 5f 74 20 6e 65 78 74 5f 70 69 64 5f   pid\_t next\_pid\_
  backtrace:
    \[\<000000004254801a\>\] kmalloc\_trace+0x26/0x100
    \[\<0000000039eb1cf5\>\] 0xffffffffa00083cd
    \[\<000000000e8c3bc8\>\] 0xffffffffa00086ba
    \[\<00000000c293d1ea\>\] do\_one\_initcall+0xdb/0x480
    \[\<00000000aa189e6d\>\] do\_init\_module+0x1cf/0x680
    \[\<00000000d513222b\>\] load\_module+0x6a50/0x70a0
    \[\<000000001fd4d529\>\] \_\_do\_sys\_finit\_module+0x12f/0x1c0
    \[\<00000000b36c4c0f\>\] do\_syscall\_64+0x3f/0x90
    \[\<00000000bbf20cf3\>\] entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
unreferenced object 0xffff8881127df000 (size 2048):
  comm "modprobe", pid 247, jiffies 4294972324 (age 78.728s)
  hex dump (first 32 bytes):
    20 65 6d 70 74 79 5f 73 79 6e 74 68 5f 74 65 73   empty\_synth\_tes
    74 20 20 70 69 64 5f 74 20 6e 65 78 74 5f 70 69  t  pid\_t next\_pi
  backtrace:
    \[\<000000004254801a\>\] kmalloc\_trace+0x26/0x100
    \[\<00000000d4db9a3d\>\] 0xffffffffa0008071
    \[\<00000000c31354a5\>\] 0xffffffffa00086ce
    \[\<00000000c293d1ea\>\] do\_one\_initcall+0xdb/0x480
    \[\<00000000aa189e6d\>\] do\_init\_module+0x1cf/0x680
    \[\<00000000d513222b\>\] load\_module+0x6a50/0x70a0
    \[\<000000001fd4d529\>\] \_\_do\_sys\_finit\_module+0x12f/0x1c0
    \[\<00000000b36c4c0f\>\] do\_syscall\_64+0x3f/0x90
    \[\<00000000bbf20cf3\>\] entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

## Affected and fixed versions

- Linux: \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< 65ba7e7c241122ef0a9e61d1920f2ae9689aa796; \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< 07ba4f0603aba288580866394f2916dfe55823a2; \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< 0e5baaa181a052d968701bb9c5b1d55847f00942; \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< a4527fef9afe5c903c718d0cd24609fe9c754250 (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49800.md
Affected: Linux >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 65ba7e7c241122ef0a9e61d1920f2ae9689aa796; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 07ba4f0603aba288580866394f2916dfe55823a2; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 0e5baaa181a052d968701bb9c5b1d55847f00942; >= 9fe41efaca08416657efa87…
Fixed in: Linux 65ba7e7c241122ef0a9e61d1920f2ae9689aa796, Linux 07ba4f0603aba288580866394f2916dfe55823a2, Linux 0e5baaa181a052d968701bb9c5b1d55847f00942

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

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

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

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

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

Linux \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< 65ba7e7c241122ef0a9e61d1920f2ae9689aa796; \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< 07ba4f0603aba288580866394f2916dfe55823a2; \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< 0e5baaa181a052d968701bb9c5b1d55847f00942; \>= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, \< a4527fef9afe5c903c718d0cd24609fe9c754250; Linux 5.6.

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

Yes. Fixed in Linux 65ba7e7c241122ef0a9e61d1920f2ae9689aa796, Linux 07ba4f0603aba288580866394f2916dfe55823a2, Linux 0e5baaa181a052d968701bb9c5b1d55847f00942. No fix listed yet: follow the vendor advisory.

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

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/65ba7e7c241122ef0a9e61d1920f2ae9689aa796>
- patch: <https://git.kernel.org/stable/c/07ba4f0603aba288580866394f2916dfe55823a2>
- patch: <https://git.kernel.org/stable/c/0e5baaa181a052d968701bb9c5b1d55847f00942>
- patch: <https://git.kernel.org/stable/c/a4527fef9afe5c903c718d0cd24609fe9c754250>

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

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