CVE-2023-2235
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free vulnerability (CVE-2023-2235) was discovered in the Linux Kernel Performance Events system, identified on May 1, 2023. The vulnerability affects the perfgroupdetach function in the Linux kernel versions 5.13 through versions prior to 6.3-rc2. This security flaw can potentially be exploited to achieve local privilege escalation (NVD, Debian Tracker).

Technical details

The vulnerability occurs when the perfgroupdetach function fails to check the event's siblings' attachstate before calling addeventtogroups(). The removeonexec functionality made it possible to call listdelevent() before detaching from their group, which could result in a dangling pointer causing a use-after-free vulnerability. The issue has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NetApp Security).

Impact

The successful exploitation of this vulnerability could lead to local privilege escalation, disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). However, on Ubuntu systems, the impact is mitigated as Ubuntu kernels enable SECURITYPERFEVENTSRESTRICT which sets kernel.perfevent_paranoid >= 2 and disables unprivileged users from using perf by default (Ubuntu Security).

Mitigation and workarounds

The vulnerability has been fixed in Linux kernel commit fd0815f632c24878e325821943edccc7fde947a2. The fix involves adding a proper check of sibling's attachstate before calling addeventtogroups() in the perfgroupdetach function. Various Linux distributions have released patches to address this vulnerability, including Ubuntu and Red Hat Enterprise Linux (Kernel Commit).

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-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-hwe-6.14
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-azure-fde-6.14
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-tools-libs-devel
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesNov 24, 2025

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