# CVE-2022-49801: tracing: Fix memory leak in tracing\_read\_pipe()

> 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 13, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-05-01T14:09:29.682Z
- **Modified:** 2026-11-05T20:17:12.570Z

## Who should check

- Anyone running Linux \>= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, \< 2c21ee020ce43d744ecd7f3e9bddfcaafef270ce; \>= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, \< a7d3f8f33c113478737bc61bb32ec5f9a987da7d; \>= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, \< 649e72070cbbb8600eb823833e4748f5a0815116; 840ce9cfc86f89c335625ec297acc0375f82e19b; \>= 5.10.190, \< 5.11
- Anyone running Linux 5.12

## Description

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

tracing: Fix memory leak in tracing\_read\_pipe()

kmemleak reports this issue:

unreferenced object 0xffff888105a18900 (size 128):
  comm "test\_progs", pid 18933, jiffies 4336275356 (age 22801.766s)
  hex dump (first 32 bytes):
    25 73 00 90 81 88 ff ff 26 05 00 00 42 01 58 04  %s......&...B.X.
    03 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    \[\<00000000560143a1\>\] \_\_kmalloc\_node\_track\_caller+0x4a/0x140
    \[\<000000006af00822\>\] krealloc+0x8d/0xf0
    \[\<00000000c309be6a\>\] trace\_iter\_expand\_format+0x99/0x150
    \[\<000000005a53bdb6\>\] trace\_check\_vprintf+0x1e0/0x11d0
    \[\<0000000065629d9d\>\] trace\_event\_printf+0xb6/0xf0
    \[\<000000009a690dc7\>\] trace\_raw\_output\_bpf\_trace\_printk+0x89/0xc0
    \[\<00000000d22db172\>\] print\_trace\_line+0x73c/0x1480
    \[\<00000000cdba76ba\>\] tracing\_read\_pipe+0x45c/0x9f0
    \[\<0000000015b58459\>\] vfs\_read+0x17b/0x7c0
    \[\<000000004aeee8ed\>\] ksys\_read+0xed/0x1c0
    \[\<0000000063d3d898\>\] do\_syscall\_64+0x3b/0x90
    \[\<00000000a06dda7f\>\] entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

iter-\>fmt alloced in
  tracing\_read\_pipe() -\> .. -\>trace\_iter\_expand\_format(), but not
freed, to fix, add free in tracing\_release\_pipe()

## Affected and fixed versions

- Linux: \>= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, \< 2c21ee020ce43d744ecd7f3e9bddfcaafef270ce; \>= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, \< a7d3f8f33c113478737bc61bb32ec5f9a987da7d; \>= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, \< 649e72070cbbb8600eb823833e4748f5a0815116; 840ce9cfc86f89c335625ec297acc0375f82e19b; \>= 5.10.190, \< 5.11 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49801.md
Affected: Linux >= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, < 2c21ee020ce43d744ecd7f3e9bddfcaafef270ce; >= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, < a7d3f8f33c113478737bc61bb32ec5f9a987da7d; >= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, < 649e72070cbbb8600eb823833e4748f5a0815116; 840ce9cfc86f89c335625ec297…
Fixed in: Linux 2c21ee020ce43d744ecd7f3e9bddfcaafef270ce, Linux 649e72070cbbb8600eb823833e4748f5a0815116, Linux 5.11

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

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

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

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

Linux \>= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, \< 2c21ee020ce43d744ecd7f3e9bddfcaafef270ce; \>= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, \< a7d3f8f33c113478737bc61bb32ec5f9a987da7d; \>= efbbdaa22bb78761bff8dfdde027ad04bedd47ce, \< 649e72070cbbb8600eb823833e4748f5a0815116; 840ce9cfc86f89c335625ec297acc0375f82e19b; \>= 5.10.190, \< 5.11; Linux 5.12.

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

Yes. Fixed in Linux 2c21ee020ce43d744ecd7f3e9bddfcaafef270ce, Linux 649e72070cbbb8600eb823833e4748f5a0815116, Linux 5.11. Upgrade Linux to 5.11 or later.

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

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/2c21ee020ce43d744ecd7f3e9bddfcaafef270ce>
- patch: <https://git.kernel.org/stable/c/a7d3f8f33c113478737bc61bb32ec5f9a987da7d>
- patch: <https://git.kernel.org/stable/c/649e72070cbbb8600eb823833e4748f5a0815116>

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

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