cve.bz

CVE-2023-2235 linux linux kernel: Use After Free

7.8 highEPSS 0.2%Fix available

High (7.8) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 16th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-03-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-2235 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-2235?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-2235?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-2235 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux Kernelfrom 5.13 before 6.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux6.1.25-1DEBIAN-CVE-2023-2235
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-2235
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2023-2235
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1041.46~20.04.1UBUNTU-CVE-2023-2235 USN-6300-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1045.52~20.04.1UBUNTU-CVE-2023-2235 USN-6332-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1043.50~20.04.1.1USN-6347-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1039.47~20.04.1UBUNTU-CVE-2023-2235 USN-6311-1
Ubuntu20.04:LTSlinux-gke-5.155.15.0-1039.44~20.04.1UBUNTU-CVE-2023-2235 USN-6311-1
Ubuntu20.04:LTSlinux-gkeop-5.155.15.0-1025.30~20.04.1UBUNTU-CVE-2023-2235 USN-6311-1
Ubuntu20.04:LTSlinux-hwe-5.155.15.0-79.86~20.04.2UBUNTU-CVE-2023-2235 USN-6300-1
Ubuntu20.04:LTSlinux-ibm-5.155.15.0-1036.39~20.04.1UBUNTU-CVE-2023-2235
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1037.42~20.04.1UBUNTU-CVE-2023-2235 USN-6300-1
Ubuntu20.04:LTSlinux-lowlatency-hwe-5.155.15.0-79.88~20.04.1UBUNTU-CVE-2023-2235 USN-6300-1
27 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-477.21.1.el8_8RHSA-2023:4517
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-477.21.1.el8_8RHSA-2023:4517
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-477.21.1.rt7.284.el8_8RHSA-2023:4541
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-477.21.1.rt7.284.el8_8RHSA-2023:4541
Red Hatenterprise_linux:9::appstreamperf, rtla, kernel-doc and 22 more0:5.14.0-284.18.1.el9_2RHSA-2023:3723
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crbbpftool-debuginfo0:7.0.0-284.18.1.el9_2RHSA-2023:3723
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.0.0-284.18.1.el9_2RHSA-2023:3723
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 40 more0:5.14.0-284.18.1.el9_2RHSA-2023:3723
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-284_11_1, kpatch-patch-5_14_0-284_11_1-debuginfo, kpatch-patch-5_14_0-284_11_1-debugsource0:1-1.el9_2RHSA-2023:3705
Red Hatenterprise_linux:9::crbperf-debuginfo, kernel-debuginfo, kernel-64k-debuginfo and 10 more0:5.14.0-284.18.1.el9_2RHSA-2023:3723
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 14 more0:5.14.0-284.18.1.rt14.303.el9_2RHSA-2023:3708
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 12 more0:5.14.0-284.18.1.rt14.303.el9_2RHSA-2023:3708
8 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 3 morekernel-default5.14.21-150400.24.63.1SUSE-SU-2023:2140-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Module for Legacy 15 SP5 and 1 morekernel-default5.14.21-150500.55.7.1SUSE-SU-2023:2871-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_71-150400.1.5.2SUSE-SU-2023:2231-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_105-150400.2.1SUSE-SU-2023:3055-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_121-150400.9.3.1SUSE-SU-2023:2140-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_213-150400.2.2SUSE-SU-2023:3079-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_312-150400.2.2SUSE-SU-2023:3063-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_02-150500.3.1SUSE-SU-2023:3153-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_11-150500.11.5.1SUSE-SU-2023:2809-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_02-150500.3.1SUSE-SU-2023:3116-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_11-150500.11.7.1SUSE-SU-2023:2871-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4kernel-rt5.14.21-150400.15.28.2SUSE-SU-2023:2231-1
11 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150400.24.63.1SUSE-SU-2023:2140-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.49.1SUSE-SU-2023:2141-1
openSUSELeap 15.4kernel-rt, kernel-rt_debug5.14.21-150400.15.28.2SUSE-SU-2023:2231-1
openSUSELeap 15.4kernel-syms-rt, kernel-source-rt5.14.21-150400.15.28.1SUSE-SU-2023:2231-1
openSUSELeap 15.4, Leap Micro 5.3kernel-default-base5.14.21-150400.24.63.1.150400.24.27.1SUSE-SU-2023:2140-1
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150500.55.7.1SUSE-SU-2023:2871-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.3.1SUSE-SU-2023:2646-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.7.1.150500.6.2.5SUSE-SU-2023:2871-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.5.1SUSE-SU-2023:2809-1
openSUSELeap Micro 5.3kernel-default5.14.21-150400.24.63.1SUSE-SU-2023:2140-1
openSUSELeap Micro 5.3kernel-rt5.14.21-150400.15.28.2SUSE-SU-2023:2231-1
AlmaLinux8kernel-rt, kernel-rt-kvm, kernel-rt-core and 9 more4.18.0-477.21.1.rt7.284.el8_8ALSA-2023:4541
AlmaLinux8perf, kernel, bpftool and 21 more4.18.0-477.21.1.el8_8ALSA-2023:4517
AlmaLinux9bpftool7.0.0-284.18.1.el9_2ALSA-2023:3723
AlmaLinux9kernel-rt, kernel-rt-kvm, kernel-rt-core and 11 more5.14.0-284.18.1.rt14.303.el9_2ALSA-2023:3708
AlmaLinux9perf, rtla, kernel and 41 more5.14.0-284.18.1.el9_2ALSA-2023:3723
Rocky Linux8kernel0:4.18.0-477.21.1.el8_8RLSA-2023:4517
Rocky Linux8kernel-rt0:4.18.0-477.21.1.rt7.284.el8_8RLSA-2023:4541
Azure Linux2kernel5.15.111.1-1AZL-26389

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The Red Hat Enterprise Linux 8.4 version is not affected by this flaw, as the vulnerable code was introduced in later versions of the Linux Kernel and was not backported to older releases.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-477.21.1.rt7.284.el8_8Fixed 2023-08-08RHSA-2023:4541
Red Hat Enterprise Linux 8kernel-0:4.18.0-477.21.1.el8_8Fixed 2023-08-08RHSA-2023:4517
Red Hat Enterprise Linux 8.6 Extended Update Supportkernel-0:4.18.0-372.75.1.el8_6Fixed 2023-10-10RHSA-2023:5627
Red Hat Enterprise Linux 9kernel-0:5.14.0-284.18.1.el9_2Fixed 2023-06-21RHSA-2023:3723
Red Hat Enterprise Linux 9kernel-rt-0:5.14.0-284.18.1.rt14.303.el9_2Fixed 2023-06-21RHSA-2023:3708
Red Hat Enterprise Linux 9kpatch-patchFixed 2023-06-21RHSA-2023:3705
Red Hat Enterprise Linux 9.0 Extended Update Supportkernel-0:5.14.0-70.64.1.el9_0Fixed 2023-07-18RHSA-2023:4137
Red Hat Enterprise Linux 9.0 Extended Update Supportkernel-rt-0:5.14.0-70.64.1.rt21.135.el9_0Fixed 2023-07-18RHSA-2023:4138
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8kernel-0:4.18.0-372.75.1.el8_6Fixed 2023-10-10RHSA-2023:5627
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-2235.

References

Check your stackJSON