# CVE-2023-53065: perf/core: Fix perf\_output\_begin parameter is incorrectly invoked in perf\_event\_bpf\_output

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.31% (percentile 16, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2025-05-02T15:55:18.789Z
- **Modified:** 2026-10-15T22:17:35.960Z

## Who should check

- Anyone running Linux \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< ddcf8320003638a06eb1e46412e045d0c5701575; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< ac5f88642cb211152041f84a985309e9af4baf59; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< ff8137727a2af4ad5f6e6c8b9f7ec5e8db9da86c; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< 3a776fddb4e5598c8bfcd4ad094fba34f9856fc9; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< eb81a2ed4f52be831c9fb879752d89645a312c13
- Anyone running Linux 5.10

## Description

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

perf/core: Fix perf\_output\_begin parameter is incorrectly invoked in perf\_event\_bpf\_output

syzkaller reportes a KASAN issue with stack-out-of-bounds.
The call trace is as follows:
  dump\_stack+0x9c/0xd3
  print\_address\_description.constprop.0+0x19/0x170
  \_\_kasan\_report.cold+0x6c/0x84
  kasan\_report+0x3a/0x50
  \_\_perf\_event\_header\_\_init\_id+0x34/0x290
  perf\_event\_header\_\_init\_id+0x48/0x60
  perf\_output\_begin+0x4a4/0x560
  perf\_event\_bpf\_output+0x161/0x1e0
  perf\_iterate\_sb\_cpu+0x29e/0x340
  perf\_iterate\_sb+0x4c/0xc0
  perf\_event\_bpf\_event+0x194/0x2c0
  \_\_bpf\_prog\_put.constprop.0+0x55/0xf0
  \_\_cls\_bpf\_delete\_prog+0xea/0x120 \[cls\_bpf\]
  cls\_bpf\_delete\_prog\_work+0x1c/0x30 \[cls\_bpf\]
  process\_one\_work+0x3c2/0x730
  worker\_thread+0x93/0x650
  kthread+0x1b8/0x210
  ret\_from\_fork+0x1f/0x30

commit 267fb27352b6 ("perf: Reduce stack usage of perf\_output\_begin()")
use on-stack struct perf\_sample\_data of the caller function.

However, perf\_event\_bpf\_output uses incorrect parameter to convert
small-sized data (struct perf\_bpf\_event) into large-sized data
(struct perf\_sample\_data), which causes memory overwriting occurs in
\_\_perf\_event\_header\_\_init\_id.

## Affected and fixed versions

- Linux: \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< ddcf8320003638a06eb1e46412e045d0c5701575; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< ac5f88642cb211152041f84a985309e9af4baf59; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< ff8137727a2af4ad5f6e6c8b9f7ec5e8db9da86c; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< 3a776fddb4e5598c8bfcd4ad094fba34f9856fc9; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< eb81a2ed4f52be831c9fb879752d89645a312c13 (cvelist)
- Linux: 5.10 (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-2023-53065. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53065.md
Affected: Linux >= 267fb27352b6fc9fdbad753127a239f75618ecbc, < ddcf8320003638a06eb1e46412e045d0c5701575; >= 267fb27352b6fc9fdbad753127a239f75618ecbc, < ac5f88642cb211152041f84a985309e9af4baf59; >= 267fb27352b6fc9fdbad753127a239f75618ecbc, < ff8137727a2af4ad5f6e6c8b9f7ec5e8db9da86c; >= 267fb27352b6fc9fdbad753…
Fixed in: Linux 3a776fddb4e5598c8bfcd4ad094fba34f9856fc9

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

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

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

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

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

Linux \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< ddcf8320003638a06eb1e46412e045d0c5701575; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< ac5f88642cb211152041f84a985309e9af4baf59; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< ff8137727a2af4ad5f6e6c8b9f7ec5e8db9da86c; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< 3a776fddb4e5598c8bfcd4ad094fba34f9856fc9; \>= 267fb27352b6fc9fdbad753127a239f75618ecbc, \< eb81a2ed4f52be831c9fb879752d89645a312c13; Linux 5.10.

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

Yes. Fixed in Linux 3a776fddb4e5598c8bfcd4ad094fba34f9856fc9. No fix listed yet: follow the vendor advisory.

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

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/ddcf8320003638a06eb1e46412e045d0c5701575>
- patch: <https://git.kernel.org/stable/c/ac5f88642cb211152041f84a985309e9af4baf59>
- patch: <https://git.kernel.org/stable/c/ff8137727a2af4ad5f6e6c8b9f7ec5e8db9da86c>
- patch: <https://git.kernel.org/stable/c/3a776fddb4e5598c8bfcd4ad094fba34f9856fc9>
- patch: <https://git.kernel.org/stable/c/eb81a2ed4f52be831c9fb879752d89645a312c13>

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

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