Skip to content
OpenAdvisories
High · 7.8 CVE-2023-2235 EUVD-2023-33745GHSA-hwwj-xrc2-6hxg

Use-after-free in Linux kernel's Performance Events subsystem

Published May 1, 2023 · Updated Aug 7, 2026 · Assigned by Google

Vendor: Linux Product: linux_kernel Package: kernel Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.15 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.8 Package: linux-azure Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.8 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.15 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.8 Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.15 Package: linux-hwe-5.19 Package: linux-hwe-5.8 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.15 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg Package: linux-intel-iotg-5.15 Package: linux-kvm Package: linux-lowlatency Package: linux-lowlatency-hwe-5.15 Package: linux-lowlatency-hwe-5.19 Package: linux-nvidia Package: linux-nvidia-tegra Package: linux-nvidia-tegra-5.15 Package: linux-nvidia-tegra-igx Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.15 Package: linux-oracle-5.3 Package: linux-oracle-5.8 Package: linux-raspi Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.15 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-starfive-5.19 Package: linux-vmware Package: linux-xilinx-zynqmp Platform: Linux Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

A use-after-free vulnerability in the Linux Kernel Performance Events system can be exploited to achieve local privilege escalation.

The perf_group_detach function did not check the event's siblings' attach_state before calling add_event_to_groups(), but remove_on_exec made it possible to call list_del_event() on before detaching from their group, making it possible to use a dangling pointer causing a use-after-free vulnerability.

We recommend upgrading past commit fd0815f632c24878e325821943edccc7fde947a2.

Affected products

VendorProductAffectedFixed
Linux Linux Kernel 5.13 – < 6.3 6.3

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.1.25-1 —
Debian 13 linux 6.1.25-1 —
Debian 12 linux 6.1.25-1 —
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 22.04 LTS linux-bluefield 5.15.0-1022.24 —
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux 5.15.0-79.86 USN-6300-1
Ubuntu 22.04 LTS linux-aws 5.15.0-1042.47 USN-6300-1
Ubuntu 22.04 LTS linux-azure 5.15.0-1045.52 USN-6332-1
Ubuntu 22.04 LTS linux-azure-fde 5.15.0-1044.51.1 USN-6332-1
Ubuntu 22.04 LTS linux-gcp 5.15.0-1039.47 USN-6300-1
Ubuntu 22.04 LTS linux-gke +1 5.15.0-1039.44 USN-6311-1, USN-6300-1
Ubuntu 22.04 LTS linux-gkeop 5.15.0-1025.30 USN-6311-1
Ubuntu 22.04 LTS linux-ibm +1 5.15.0-1035.38 USN-6300-1
Ubuntu 22.04 LTS linux-intel-iotg 5.15.0-1037.42 USN-6300-1
Ubuntu 22.04 LTS linux-lowlatency 5.15.0-79.88 USN-6300-1
Ubuntu 22.04 LTS linux-nvidia 5.15.0-1030.30 USN-6300-1
Ubuntu 22.04 LTS linux-nvidia-tegra 5.15.0-1016.16 —
Ubuntu 22.04 LTS linux-nvidia-tegra-igx 5.15.0-1002.2 —
Ubuntu 22.04 LTS linux-oem-6.0 6.0.0-1021.21 USN-6385-1
Ubuntu 22.04 LTS linux-oem-6.1 6.1.0-1009.9 —
Ubuntu 22.04 LTS linux-oracle 5.15.0-1040.46 USN-6300-1
Ubuntu 22.04 LTS linux-riscv +11 No fix yet —
Ubuntu 22.04 LTS linux-xilinx-zynqmp 5.15.0-1025.29 —
Ubuntu 20.04 LTS linux-aws-5.15 5.15.0-1041.46~20.04.1 USN-6300-1
Ubuntu 20.04 LTS linux-azure-5.15 5.15.0-1045.52~20.04.1 USN-6332-1
Ubuntu 20.04 LTS linux-azure-fde-5.15 5.15.0-1043.50~20.04.1.1 USN-6347-1
Ubuntu 20.04 LTS linux-gcp-5.15 5.15.0-1039.47~20.04.1 USN-6311-1
Ubuntu 20.04 LTS linux-gke-5.15 5.15.0-1039.44~20.04.1 USN-6311-1
Ubuntu 20.04 LTS linux-gkeop-5.15 5.15.0-1025.30~20.04.1 USN-6311-1
Ubuntu 20.04 LTS linux-hwe-5.15 5.15.0-79.86~20.04.2 USN-6300-1
Ubuntu 20.04 LTS linux-ibm-5.15 5.15.0-1036.39~20.04.1 —
Ubuntu 20.04 LTS linux-intel-iotg-5.15 5.15.0-1037.42~20.04.1 USN-6300-1
Ubuntu 20.04 LTS linux-lowlatency-hwe-5.15 5.15.0-79.88~20.04.1 USN-6300-1
Ubuntu 20.04 LTS linux-nvidia-tegra-5.15 5.15.0-1016.16~20.04.1 —
Ubuntu 20.04 LTS linux-oracle-5.15 5.15.0-1040.46~20.04.1 USN-6300-1
Ubuntu 20.04 LTS linux-riscv +23 No fix yet —
Ubuntu 20.04 LTS linux-riscv-5.15 5.15.0-1038.42~20.04.2 —
Ubuntu 18.04 LTS linux-gcp +13 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 22.04 LTS linux-intel-iot-realtime 5.15.0-1036.38 —
Ubuntu Pro Realtime 22.04 LTS linux-realtime 5.15.0-1043.48 —
Ubuntu Pro FIPS-preview 22.04 LTS linux-fips No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 bpftool 7.0.0-284.18.1.el9_2 RHSA-2023:3723
RHEL 9 kernel-rt +14 5.14.0-284.18.1.rt14.303.el9_2 RHSA-2023:3708
RHEL 9 kpatch-patch-5_14_0-284_11_1 1-1.el9_2 RHSA-2023:3705
RHEL 9 perf +48 5.14.0-284.18.1.el9_2 RHSA-2023:3723
RHEL 8 kernel-rt +12 4.18.0-477.21.1.rt7.284.el8_8 RHSA-2023:4541
RHEL 8 perf +26 4.18.0-477.21.1.el8_8 RHSA-2023:4517
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhev Hypervisor 4 perf +2 4.18.0-372.75.1.el8_6 RHSA-2023:5627
RHEL 9.0 EUS kernel-rt +12 5.14.0-70.64.1.rt21.135.el9_0 RHSA-2023:4138
RHEL 9.0 EUS perf +29 5.14.0-70.64.1.el9_0 RHSA-2023:4137
RHEL 8.6 EUS perf +26 4.18.0-372.75.1.el8_6 RHSA-2023:5627

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 bpftool 7.0.0-284.18.1.el9_2 ALSA-2023:3723
AlmaLinux 9 kernel-rt +13 5.14.0-284.18.1.rt14.303.el9_2 ALSA-2023:3708
AlmaLinux 9 perf +43 5.14.0-284.18.1.el9_2 ALSA-2023:3723
AlmaLinux 8 kernel-rt +11 4.18.0-477.21.1.rt7.284.el8_8 ALSA-2023:4541
AlmaLinux 8 perf +23 4.18.0-477.21.1.el8_8 ALSA-2023:4517

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 kernel 4.18.0-477.21.1.el8_8 RLSA-2023:4517
Rocky Linux 8 kernel-rt 4.18.0-477.21.1.rt7.284.el8_8 RLSA-2023:4541
ReleasePackageFixed inAdvisory
SLES 15 SP5 kernel-64kb +6 5.14.21-150500.55.7.1 SUSE-SU-2023:2871-1
SLES 15 SP5 kernel-azure +2 5.14.21-150500.33.3.1 SUSE-SU-2023:2646-1
SLES 15 SP5 kernel-default-base 5.14.21-150500.55.7.1.150500.6.2.5 SUSE-SU-2023:2871-1
SLES 15 SP4 kernel-64kb +6 5.14.21-150400.24.63.1 SUSE-SU-2023:2140-1
SLES 15 SP4 kernel-azure +2 5.14.21-150400.14.49.1 SUSE-SU-2023:2141-1
SLES 15 SP4 kernel-default-base 5.14.21-150400.24.63.1.150400.24.27.1 SUSE-SU-2023:2140-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 5.4 kernel-default 5.14.21-150400.24.63.1 SUSE-SU-2023:2140-1
SLE Micro 5.4 kernel-default-base 5.14.21-150400.24.63.1.150400.24.27.1 SUSE-SU-2023:2140-1
SLE Micro 5.4 kernel-rt 5.14.21-150400.15.28.2 SUSE-SU-2023:2231-1
SLE Micro 5.3 kernel-default 5.14.21-150400.24.63.1 SUSE-SU-2023:2140-1
SLE Micro 5.3 kernel-default-base 5.14.21-150400.24.63.1.150400.24.27.1 SUSE-SU-2023:2140-1
SLE Micro 5.3 kernel-rt 5.14.21-150400.15.28.2 SUSE-SU-2023:2231-1
SLE Live Patching 15 SP5 kernel-default 5.14.21-150500.55.7.1 SUSE-SU-2023:2871-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5-RT_Update_1 1-150500.11.5.1 SUSE-SU-2023:2809-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_0 +1 2-150500.3.1 SUSE-SU-2023:3153-1, SUSE-SU-2023:3116-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_1 1-150500.11.7.1 SUSE-SU-2023:2871-1
SLE Live Patching 15 SP4 kernel-default 5.14.21-150400.24.63.1 SUSE-SU-2023:2140-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4-RT_Update_7 1-150400.1.5.2 SUSE-SU-2023:2231-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_10 5-150400.2.1 SUSE-SU-2023:3055-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_12 1-150400.9.3.1 SUSE-SU-2023:2140-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_2 13-150400.2.2 SUSE-SU-2023:3079-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_3 12-150400.2.2 SUSE-SU-2023:3063-1
SUSE Real Time Module 15 SP5 kernel-rt +3 5.14.21-150500.13.5.1 SUSE-SU-2023:2809-1
SUSE Real Time Module 15 SP4 kernel-rt +1 5.14.21-150400.15.28.2 SUSE-SU-2023:2231-1
SUSE Real Time Module 15 SP4 kernel-syms-rt +1 5.14.21-150400.15.28.1 SUSE-SU-2023:2231-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 dtb-aarch64 +10 5.14.21-150500.55.7.1 SUSE-SU-2023:2871-1
openSUSE Leap 15.5 kernel-azure +2 5.14.21-150500.33.3.1 SUSE-SU-2023:2646-1
openSUSE Leap 15.5 kernel-default-base 5.14.21-150500.55.7.1.150500.6.2.5 SUSE-SU-2023:2871-1
openSUSE Leap 15.5 kernel-rt +3 5.14.21-150500.13.5.1 SUSE-SU-2023:2809-1
openSUSE Leap 15.4 dtb-aarch64 +10 5.14.21-150400.24.63.1 SUSE-SU-2023:2140-1
openSUSE Leap 15.4 kernel-azure +2 5.14.21-150400.14.49.1 SUSE-SU-2023:2141-1
openSUSE Leap 15.4 kernel-default-base 5.14.21-150400.24.63.1.150400.24.27.1 SUSE-SU-2023:2140-1
openSUSE Leap 15.4 kernel-rt +1 5.14.21-150400.15.28.2 SUSE-SU-2023:2231-1
openSUSE Leap 15.4 kernel-syms-rt +1 5.14.21-150400.15.28.1 SUSE-SU-2023:2231-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.3 kernel-default 5.14.21-150400.24.63.1 SUSE-SU-2023:2140-1
openSUSE Leap Micro 5.3 kernel-default-base 5.14.21-150400.24.63.1.150400.24.27.1 SUSE-SU-2023:2140-1
openSUSE Leap Micro 5.3 kernel-rt 5.14.21-150400.15.28.2 SUSE-SU-2023:2231-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.1.21-1.45 1.0-0.amzn2023 ALAS2023-2023-148
Amazon Linux 2023 perf +12 6.1.21-1.45.amzn2023 ALAS2023-2023-148

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) kernel 5.15.111.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 bpftool 7.0.0-284.18.1.el9_2 ELSA-2023-3723
Oracle Linux 9 perf +25 5.14.0-284.18.1.el9_2 ELSA-2023-3723
Oracle Linux 8 perf +19 4.18.0-477.21.1.el8_8 ELSA-2023-4517

Advisories 35

References