# CVE-2023-53649: perf trace: Really free the evsel-\>priv area

> 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.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-10-07T15:19:46.459Z
- **Modified:** 2026-06-17T06:45:47.717Z

## Who should check

- Anyone running Linux \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< c3bc668581e71e7c3bc7eb1d647f25f8db222163; \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< 62dd514c34be63d3d5cae1f52a7e8b96c6dd6630; \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< 27f396f64537b1ae48d0644d7cbf0d250b3c0b33; \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< 7962ef13651a9163f07b530607392ea123482e8a
- Anyone running Linux 5.14

## Description

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

perf trace: Really free the evsel-\>priv area

In 3cb4d5e00e037c70 ("perf trace: Free syscall tp fields in
evsel-\>priv") it only was freeing if strcmp(evsel-\>tp\_format-\>system,
"syscalls") returned zero, while the corresponding initialization of
evsel-\>priv was being performed if it was \_not\_ zero, i.e. if the tp
system wasn't 'syscalls'.

Just stop looking for that and free it if evsel-\>priv was set, which
should be equivalent.

Also use the pre-existing evsel\_trace\_\_delete() function.

This resolves these leaks, detected with:

  $ make EXTRA\_CFLAGS="-fsanitize=address" BUILD\_BPF\_SKEL=1 CORESIGHT=1 O=/tmp/build/perf-tools-next -C tools/perf install-bin

  =================================================================
  ==481565==ERROR: LeakSanitizer: detected memory leaks

  Direct leak of 40 byte(s) in 1 object(s) allocated from:
      \#0 0x7f7343cba097 in calloc (/lib64/libasan.so.8+0xba097)
      \#1 0x987966 in zalloc (/home/acme/bin/perf+0x987966)
      \#2 0x52f9b9 in evsel\_trace\_\_new /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:307
      \#3 0x52f9b9 in evsel\_\_syscall\_tp /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:333
      \#4 0x52f9b9 in evsel\_\_init\_raw\_syscall\_tp /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:458
      \#5 0x52f9b9 in perf\_evsel\_\_raw\_syscall\_newtp /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:480
      \#6 0x540e8b in trace\_\_add\_syscall\_newtp /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:3212
      \#7 0x540e8b in trace\_\_run /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:3891
      \#8 0x540e8b in cmd\_trace /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:5156
      \#9 0x5ef262 in run\_builtin /home/acme/git/perf-tools-next/tools/perf/perf.c:323
      \#10 0x4196da in handle\_internal\_command /home/acme/git/perf-tools-next/tools/perf/perf.c:377
      \#11 0x4196da in run\_argv /home/acme/git/perf-tools-next/tools/perf/perf.c:421
      \#12 0x4196da in main /home/acme/git/perf-tools-next/tools/perf/perf.c:537
      \#13 0x7f7342c4a50f in \_\_libc\_start\_call\_main (/lib64/libc.so.6+0x2750f)

  Direct leak of 40 byte(s) in 1 object(s) allocated from:
      \#0 0x7f7343cba097 in calloc (/lib64/libasan.so.8+0xba097)
      \#1 0x987966 in zalloc (/home/acme/bin/perf+0x987966)
      \#2 0x52f9b9 in evsel\_trace\_\_new /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:307
      \#3 0x52f9b9 in evsel\_\_syscall\_tp /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:333
      \#4 0x52f9b9 in evsel\_\_init\_raw\_syscall\_tp /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:458
      \#5 0x52f9b9 in perf\_evsel\_\_raw\_syscall\_newtp /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:480
      \#6 0x540dd1 in trace\_\_add\_syscall\_newtp /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:3205
      \#7 0x540dd1 in trace\_\_run /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:3891
      \#8 0x540dd1 in cmd\_trace /home/acme/git/perf-tools-next/tools/perf/builtin-trace.c:5156
      \#9 0x5ef262 in run\_builtin /home/acme/git/perf-tools-next/tools/perf/perf.c:323
      \#10 0x4196da in handle\_internal\_command /home/acme/git/perf-tools-next/tools/perf/perf.c:377
      \#11 0x4196da in run\_argv /home/acme/git/perf-tools-next/tools/perf/perf.c:421
      \#12 0x4196da in main /home/acme/git/perf-tools-next/tools/perf/perf.c:537
      \#13 0x7f7342c4a50f in \_\_libc\_start\_call\_main (/lib64/libc.so.6+0x2750f)

  SUMMARY: AddressSanitizer: 80 byte(s) leaked in 2 allocation(s).
  \[root@quaco ~\]\#

With this we plug all leaks with "perf trace sleep 1".

## Affected and fixed versions

- Linux: \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< c3bc668581e71e7c3bc7eb1d647f25f8db222163; \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< 62dd514c34be63d3d5cae1f52a7e8b96c6dd6630; \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< 27f396f64537b1ae48d0644d7cbf0d250b3c0b33; \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< 7962ef13651a9163f07b530607392ea123482e8a (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 7962ef13651a9163f07b530607392ea123482e8a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53649.md
Affected: Linux >= 3cb4d5e00e037c70f239173bdd399a7e6040830f, < c3bc668581e71e7c3bc7eb1d647f25f8db222163; >= 3cb4d5e00e037c70f239173bdd399a7e6040830f, < 62dd514c34be63d3d5cae1f52a7e8b96c6dd6630; >= 3cb4d5e00e037c70f239173bdd399a7e6040830f, < 27f396f64537b1ae48d0644d7cbf0d250b3c0b33; >= 3cb4d5e00e037c70f239173…
Fixed in: Linux 62dd514c34be63d3d5cae1f52a7e8b96c6dd6630, Linux 27f396f64537b1ae48d0644d7cbf0d250b3c0b33, Linux 7962ef13651a9163f07b530607392ea123482e8a

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-2023-53649 being exploited?

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

### How serious is CVE-2023-53649?

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

### Which versions are affected by CVE-2023-53649?

Linux \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< c3bc668581e71e7c3bc7eb1d647f25f8db222163; \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< 62dd514c34be63d3d5cae1f52a7e8b96c6dd6630; \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< 27f396f64537b1ae48d0644d7cbf0d250b3c0b33; \>= 3cb4d5e00e037c70f239173bdd399a7e6040830f, \< 7962ef13651a9163f07b530607392ea123482e8a; Linux 5.14.

### Is there a fix for CVE-2023-53649?

Yes. Fixed in Linux 62dd514c34be63d3d5cae1f52a7e8b96c6dd6630, Linux 27f396f64537b1ae48d0644d7cbf0d250b3c0b33, Linux 7962ef13651a9163f07b530607392ea123482e8a. Upgrade Linux to 7962ef13651a9163f07b530607392ea123482e8a or later.

### How do I check if I'm affected by CVE-2023-53649?

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/c3bc668581e71e7c3bc7eb1d647f25f8db222163>
- patch: <https://git.kernel.org/stable/c/62dd514c34be63d3d5cae1f52a7e8b96c6dd6630>
- patch: <https://git.kernel.org/stable/c/27f396f64537b1ae48d0644d7cbf0d250b3c0b33>
- patch: <https://git.kernel.org/stable/c/7962ef13651a9163f07b530607392ea123482e8a>

## 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-2023-53649>

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