CVE-2023-5717
Linux Kernel vulnerability analysis and mitigation

Overview

A heap out-of-bounds write vulnerability (CVE-2023-5717) was discovered in the Linux kernel's Linux Kernel Performance Events (perf) component. The vulnerability was reported by Budimir Markovic and disclosed on October 25, 2023. The issue affects Linux kernel versions from 3.2.95 up to 6.6-rc7. The vulnerability occurs when perf_read_group() is called while an event's sibling_list is smaller than its child's sibling_list, allowing it to increment or write to memory locations outside of the allocated buffer (NVD, Ubuntu).

Technical details

The vulnerability stems from a group consistency issue that is non-atomic between parent (filedesc) and children (inherited) events. The problem became apparent after commit fa8c269353d5 which inverted perf_read_group() loops, changing the order of child_list and sibling_list traversal. The flaw allows for PERF_FORMAT_GROUP read() to attempt summing non-matching counter groups, resulting in potential out-of-bounds write operations. The issue has been assigned a CVSS v3.1 base score of 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (Kernel Patch).

Impact

The vulnerability can be exploited to achieve local privilege escalation. However, on systems with default configurations like Ubuntu, where SECURITY_PERF_EVENTS_RESTRICT is enabled and kernel.perf_event_paranoid >= 2, unprivileged users are prevented from using perf by default, limiting the exploitation potential (Ubuntu).

Mitigation and workarounds

The vulnerability has been fixed in Linux kernel commit 32671e3799ca2e4590773fd0e63aaa4229e50c06. The fix adds group_generation to distinguish cases where a parent group removes and adds an event, preventing the mis-matched inherited group reads. Various distributions have released patches, including Ubuntu, Debian, and Red Hat. Systems should be updated to versions containing the fix. Additionally, maintaining restrictive perf_event_paranoid settings provides protection against exploitation (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-core
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • rv
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management