{"id":"CVE-2023-53065","aliases":["CVE-2023-53065"],"related":[],"kind":"vulnerability","state":"published","title":"perf/core: Fix perf_output_begin parameter is incorrectly invoked in perf_event_bpf_output","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/core: Fix perf_output_begin parameter is incorrectly invoked in perf_event_bpf_output\n\nsyzkaller reportes a KASAN issue with stack-out-of-bounds.\nThe call trace is as follows:\n  dump_stack+0x9c/0xd3\n  print_address_description.constprop.0+0x19/0x170\n  __kasan_report.cold+0x6c/0x84\n  kasan_report+0x3a/0x50\n  __perf_event_header__init_id+0x34/0x290\n  perf_event_header__init_id+0x48/0x60\n  perf_output_begin+0x4a4/0x560\n  perf_event_bpf_output+0x161/0x1e0\n  perf_iterate_sb_cpu+0x29e/0x340\n  perf_iterate_sb+0x4c/0xc0\n  perf_event_bpf_event+0x194/0x2c0\n  __bpf_prog_put.constprop.0+0x55/0xf0\n  __cls_bpf_delete_prog+0xea/0x120 [cls_bpf]\n  cls_bpf_delete_prog_work+0x1c/0x30 [cls_bpf]\n  process_one_work+0x3c2/0x730\n  worker_thread+0x93/0x650\n  kthread+0x1b8/0x210\n  ret_from_fork+0x1f/0x30\n\ncommit 267fb27352b6 (\"perf: Reduce stack usage of perf_output_begin()\")\nuse on-stack struct perf_sample_data of the caller function.\n\nHowever, perf_event_bpf_output uses incorrect parameter to convert\nsmall-sized data (struct perf_bpf_event) into large-sized data\n(struct perf_sample_data), which causes memory overwriting occurs in\n__perf_event_header__init_id.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/core: Fix perf_output_begin parameter is incorrectly invoked in perf_event_bpf_output\n\nsyzkaller reportes a KASAN issue with stack-out-of-bounds.\nThe call trace is as follows:\n  dump_stack+0x9c/0xd3\n  print_address_description.constprop.0+0x19/0x170\n  __kasan_report.cold+0x6c/0x84\n  kasan_report+0x3a/0x50\n  __perf_event_header__init_id+0x34/0x290\n  perf_event_header__init_id+0x48/0x60\n  perf_output_begin+0x4a4/0x560\n  perf_event_bpf_output+0x161/0x1e0\n  perf_iterate_sb_cpu+0x29e/0x340\n  perf_iterate_sb+0x4c/0xc0\n  perf_event_bpf_event+0x194/0x2c0\n  __bpf_prog_put.constprop.0+0x55/0xf0\n  __cls_bpf_delete_prog+0xea/0x120 [cls_bpf]\n  cls_bpf_delete_prog_work+0x1c/0x30 [cls_bpf]\n  process_one_work+0x3c2/0x730\n  worker_thread+0x93/0x650\n  kthread+0x1b8/0x210\n  ret_from_fork+0x1f/0x30\n\ncommit 267fb27352b6 (\"perf: Reduce stack usage of perf_output_begin()\")\nuse on-stack struct perf_sample_data of the caller function.\n\nHowever, perf_event_bpf_output uses incorrect parameter to convert\nsmall-sized data (struct perf_bpf_event) into large-sized data\n(struct perf_sample_data), which causes memory overwriting occurs in\n__perf_event_header__init_id.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: perf/core: Se solucionó que el parámetro perf_output_begin se invocara incorrectamente en perf_event_bpf_output syzkaller informa un problema de KASAN con una pila fuera de los límites. El seguimiento de la llamada es el siguiente: 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 workers_thread+0x93/0x650 kthread+0x1b8/0x210 ret_from_fork+0x1f/0x30 commit 267fb27352b6 (\"perf: Reducir el uso de la pila de perf_output_begin()\") usa la estructura en pila perf_sample_data de la función que llama. Sin embargo, perf_event_bpf_output utiliza un parámetro incorrecto para convertir datos de tamaño pequeño (struct perf_bpf_event) en datos de tamaño grande (struct perf_sample_data), lo que provoca que se sobrescriba la memoria en __perf_event_header__init_id.","source":"nvd"}],"published":"2025-05-02T15:55:18.789Z","modified":"2026-10-15T22:17:35.960Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"267fb27352b6fc9fdbad753127a239f75618ecbc","fixed":"ddcf8320003638a06eb1e46412e045d0c5701575","status":"affected"},{"type":"git","introduced":"267fb27352b6fc9fdbad753127a239f75618ecbc","fixed":"ac5f88642cb211152041f84a985309e9af4baf59","status":"affected"},{"type":"git","introduced":"267fb27352b6fc9fdbad753127a239f75618ecbc","fixed":"ff8137727a2af4ad5f6e6c8b9f7ec5e8db9da86c","status":"affected"},{"type":"git","introduced":"267fb27352b6fc9fdbad753127a239f75618ecbc","fixed":"3a776fddb4e5598c8bfcd4ad094fba34f9856fc9","status":"affected"},{"type":"git","introduced":"267fb27352b6fc9fdbad753127a239f75618ecbc","fixed":"eb81a2ed4f52be831c9fb879752d89645a312c13","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.177","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.105","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.22","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.9","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10.1","fixed":"5.10.177"},{"status":"affected","introduced":"5.11","fixed":"5.15.105"},{"status":"affected","introduced":"5.16","fixed":"6.1.22"},{"status":"affected","introduced":"6.2","fixed":"6.2.9"},{"status":"affected","version":"5.10"},{"status":"affected","version":"5.10"},{"status":"affected","version":"5.10"},{"status":"affected","version":"5.10"},{"status":"affected","version":"5.10"},{"status":"affected","version":"6.3"},{"status":"affected","version":"6.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ddcf8320003638a06eb1e46412e045d0c5701575","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac5f88642cb211152041f84a985309e9af4baf59","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff8137727a2af4ad5f6e6c8b9f7ec5e8db9da86c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a776fddb4e5598c8bfcd4ad094fba34f9856fc9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb81a2ed4f52be831c9fb879752d89645a312c13","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:33:16.858Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53065","url":"https://www.cve.org/CVERecord?id=CVE-2023-53065","licence":"CVE Terms of Use","modified":"2026-10-15T21:41:25.473Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53065","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53065","licence":"Public domain","modified":"2026-10-15T22:17:35.960Z"}],"updatedAt":"2026-11-25T22:58:34.646Z","epss":{"score":0.00217,"percentile":0.12902,"date":"2026-12-01T12:00:22.000Z"}}