Bug 2252731 (CVE-2023-6931) - CVE-2023-6931 kernel: Out of boundary write in perf_read_group() as result of overflow a perf_event's read_size
Summary: CVE-2023-6931 kernel: Out of boundary write in perf_read_group() as result of...
Keywords:
Status: NEW
Alias: CVE-2023-6931
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
: 2255286 (view as bug list)
Depends On: 2256503
Blocks: 2252725 2255284
TreeView+ depends on / blocked
 
Reported: 2023-12-04 11:03 UTC by Alex
Modified: 2024-05-02 22:50 UTC (History)
53 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel's Performance Events system component. A condition can be triggered that allows data to be written past the end or before the beginning of the intended memory buffer. This may lead to a system crash, code execution, or local privilege escalation.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:1699 0 None None None 2024-04-08 14:54:13 UTC
Red Hat Product Errata RHBA-2024:2634 0 None None None 2024-05-01 01:22:09 UTC
Red Hat Product Errata RHBA-2024:2650 0 None None None 2024-05-02 00:14:57 UTC
Red Hat Product Errata RHBA-2024:2686 0 None None None 2024-05-02 22:50:04 UTC
Red Hat Product Errata RHSA-2024:0930 0 None None None 2024-02-21 00:27:41 UTC
Red Hat Product Errata RHSA-2024:1018 0 None None None 2024-02-28 12:41:56 UTC
Red Hat Product Errata RHSA-2024:1019 0 None None None 2024-02-28 12:34:32 UTC
Red Hat Product Errata RHSA-2024:1404 0 None None None 2024-03-19 17:27:37 UTC
Red Hat Product Errata RHSA-2024:1607 0 None None None 2024-04-02 15:55:35 UTC
Red Hat Product Errata RHSA-2024:1614 0 None None None 2024-04-02 17:21:46 UTC
Red Hat Product Errata RHSA-2024:1836 0 None None None 2024-04-16 15:03:57 UTC
Red Hat Product Errata RHSA-2024:1840 0 None None None 2024-04-16 14:53:47 UTC
Red Hat Product Errata RHSA-2024:2394 0 None None None 2024-04-30 10:14:21 UTC

Description Alex 2023-12-04 11:03:32 UTC
A flaw was found in the Linux kernel. It is possible to overflow a perf_event's read_size, causing an out-of-bounds write in perf_read_group(). The check meant to prevent such an overflow in perf_event_validate_size() does not account for groups of events with mixed read_format values. The flaw can be triggered with events created with PERF_FORMAT_GROUP or events added with PERF_FORMAT_GROUP after some preconditions.

The bug was introduced around fa8c269353d5 ("perf/core: Invert perf_read_group() loops").
Fixes: a723968c0ed3 ("perf: Fix u16 overflows").

Reference:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=382c27f4ed28f803b1f1473ac2d8db0afc795a1b

Comment 5 Alex 2023-12-26 12:01:17 UTC
*** Bug 2255286 has been marked as a duplicate of this bug. ***

Comment 21 errata-xmlrpc 2024-02-21 00:27:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:0930 https://access.redhat.com/errata/RHSA-2024:0930

Comment 23 errata-xmlrpc 2024-02-28 12:34:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:1019 https://access.redhat.com/errata/RHSA-2024:1019

Comment 24 errata-xmlrpc 2024-02-28 12:41:53 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:1018 https://access.redhat.com/errata/RHSA-2024:1018

Comment 27 errata-xmlrpc 2024-03-19 17:27:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2024:1404 https://access.redhat.com/errata/RHSA-2024:1404

Comment 28 errata-xmlrpc 2024-04-02 15:55:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:1607 https://access.redhat.com/errata/RHSA-2024:1607

Comment 29 errata-xmlrpc 2024-04-02 17:21:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:1614 https://access.redhat.com/errata/RHSA-2024:1614

Comment 30 errata-xmlrpc 2024-04-16 14:53:44 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2024:1840 https://access.redhat.com/errata/RHSA-2024:1840

Comment 31 errata-xmlrpc 2024-04-16 15:03:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2024:1836 https://access.redhat.com/errata/RHSA-2024:1836

Comment 34 errata-xmlrpc 2024-04-30 10:14:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2394 https://access.redhat.com/errata/RHSA-2024:2394


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