Bug 2192589 (CVE-2023-2235) - CVE-2023-2235 kernel: use-after-free vulnerability in the perf_group_detach function of the Linux Kernel Performance Events
Summary: CVE-2023-2235 kernel: use-after-free vulnerability in the perf_group_detach f...
Keywords:
Status: NEW
Alias: CVE-2023-2235
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2192649 2192651 2192652 2192653 2192654 2192655 2192656 2192657 2192658 2192659 2192660 2192661 2192662 2192663 2209644 2209645 2209646 2209647 2209895 2235184 2235194 2235195
Blocks: 2192393
TreeView+ depends on / blocked
 
Reported: 2023-05-02 12:05 UTC by Alex
Modified: 2023-10-31 17:19 UTC (History)
49 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
The Linux kernel's Performance Events subsystem has a use-after-free flaw that occurs when a user triggers the perf_group_detach and remove_on_exec functions simultaneously. This flaw allows a local user to crash or potentially escalate their privileges on the system.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:3705 0 None None None 2023-06-21 08:45:53 UTC
Red Hat Product Errata RHSA-2023:3708 0 None None None 2023-06-21 14:38:41 UTC
Red Hat Product Errata RHSA-2023:3723 0 None None None 2023-06-21 14:39:16 UTC
Red Hat Product Errata RHSA-2023:4137 0 None None None 2023-07-18 08:28:43 UTC
Red Hat Product Errata RHSA-2023:4138 0 None None None 2023-07-18 08:28:52 UTC
Red Hat Product Errata RHSA-2023:4517 0 None None None 2023-08-08 08:19:51 UTC
Red Hat Product Errata RHSA-2023:4541 0 None None None 2023-08-08 07:54:26 UTC
Red Hat Product Errata RHSA-2023:5627 0 None None None 2023-10-10 16:26:22 UTC

Description Alex 2023-05-02 12:05:14 UTC
A flaw in the Linux Kernel found. 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.


Reference:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fd0815f632c24878e325821943edccc7fde947a2

Comment 1 Alex 2023-05-02 16:09:26 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2192649]

Comment 4 Justin M. Forbes 2023-05-02 21:06:49 UTC
This was fixed for Fedora with the 6.2.8 stable kernel updates.

Comment 12 errata-xmlrpc 2023-06-21 08:45:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:3705 https://access.redhat.com/errata/RHSA-2023:3705

Comment 13 errata-xmlrpc 2023-06-21 14:38:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:3708 https://access.redhat.com/errata/RHSA-2023:3708

Comment 14 errata-xmlrpc 2023-06-21 14:39:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:3723 https://access.redhat.com/errata/RHSA-2023:3723

Comment 16 errata-xmlrpc 2023-07-18 08:28:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2023:4137 https://access.redhat.com/errata/RHSA-2023:4137

Comment 17 errata-xmlrpc 2023-07-18 08:28:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2023:4138 https://access.redhat.com/errata/RHSA-2023:4138

Comment 18 errata-xmlrpc 2023-08-08 07:54:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:4541 https://access.redhat.com/errata/RHSA-2023:4541

Comment 19 errata-xmlrpc 2023-08-08 08:19:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:4517 https://access.redhat.com/errata/RHSA-2023:4517

Comment 27 errata-xmlrpc 2023-10-10 16:26:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2023:5627 https://access.redhat.com/errata/RHSA-2023:5627


Note You need to log in before you can comment on or make changes to this bug.