Bug 2298135 (CVE-2022-48799) - CVE-2022-48799 kernel: perf: Fix list corruption in perf_cgroup_switch()
Summary: CVE-2022-48799 kernel: perf: Fix list corruption in perf_cgroup_switch()
Keywords:
Status: NEW
Alias: CVE-2022-48799
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-16 12:27 UTC by OSIDB Bzimport
Modified: 2024-09-24 00:47 UTC (History)
4 users (show)

Fixed In Version: kernel 4.14.267, kernel 4.19.230, kernel 5.4.180, kernel 5.10.101, kernel 5.15.24, kernel 5.16.10, kernel 5.17
Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the Linux kernel's performance monitoring subsystem, where the perf_cgroup_switch() function can lead to list corruption on the cgrp_cpuctx_list. This occurs during the iteration of the list when an entry is removed using perf_cgroup_event_disable, which does not safely handle the modification. The impact of this vulnerability can cause instability and unexpected behavior in performance monitoring events.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:5692 0 None None None 2024-08-21 11:52:57 UTC
Red Hat Product Errata RHSA-2024:6156 0 None None None 2024-09-03 05:50:19 UTC
Red Hat Product Errata RHSA-2024:6160 0 None None None 2024-09-03 05:33:20 UTC
Red Hat Product Errata RHSA-2024:6990 0 None None None 2024-09-24 00:24:45 UTC
Red Hat Product Errata RHSA-2024:6991 0 None None None 2024-09-24 00:47:39 UTC
Red Hat Product Errata RHSA-2024:6992 0 None None None 2024-09-24 00:34:36 UTC

Description OSIDB Bzimport 2024-07-16 12:27:57 UTC
In the Linux kernel, the following vulnerability has been resolved:

perf: Fix list corruption in perf_cgroup_switch()

There's list corruption on cgrp_cpuctx_list. This happens on the
following path:

  perf_cgroup_switch: list_for_each_entry(cgrp_cpuctx_list)
      cpu_ctx_sched_in
         ctx_sched_in
            ctx_pinned_sched_in
              merge_sched_in
                  perf_cgroup_event_disable: remove the event from the list

Use list_for_each_entry_safe() to allow removing an entry during
iteration.

Comment 7 errata-xmlrpc 2024-08-21 11:52:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

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

Comment 9 errata-xmlrpc 2024-09-03 05:33:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions

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

Comment 10 errata-xmlrpc 2024-09-03 05:50:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions

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

Comment 11 errata-xmlrpc 2024-09-24 00:24:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

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

Comment 12 errata-xmlrpc 2024-09-24 00:34:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

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

Comment 13 errata-xmlrpc 2024-09-24 00:47:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

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


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