# CVE-2022-48799: perf: Fix list corruption in perf_cgroup_switch()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-07-16T11:43:52.894Z
- Modified: 2026-06-17T05:16:13.460Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 058fe1c0440e68a1ba3c2270ae43e9f0298b27d8 before 5d76ed4223403f90421782adb2f20a9ecbc93186; from 058fe1c0440e68a1ba3c2270ae43e9f0298b27d8 before 30d9f3cbe47e1018ddc8069ac5b5c9e66fbdf727; from 058fe1c0440e68a1ba3c2270ae43e9f0298b27d8 before a2ed7b29d0673ba361546e2d87dbbed149456c45; from 058fe1c0440e68a1ba3c2270ae43e9f0298b27d8 before f6b5d51976fcefef5732da3e3feb3ccff680f7c8; from 058fe1c0440e68a1ba3c2270ae43e9f0298b27d8 before 7969fe91c9830e045901970e9d755b7505881d4a; from 058fe1c0440e68a1ba3c2270ae43e9f0298b27d8 before 2142bc1469a316fddd10012d76428f7265258f81; from 058fe1c0440e68a1ba3c2270ae43e9f0298b27d8 before 5f4e5ce638e6a490b976ade4a40017b40abb2da0; 4.11 (not affected: before 4.11; from 4.14.267 up to 4.14.*; from 4.19.230 up to 4.19.*; from 5.4.180 up to 5.4.*; from 5.10.101 up to 5.10.*; from 5.15.24 up to 5.15.*; from 5.16.10 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 4.11 before 4.14.267; from 4.15 before 4.19.230; from 4.20 before 5.4.180; from 5.5 before 5.10.101; from 5.11 before 5.15.24; from 5.16 before 5.16.10; 5.17

## References

- <https://git.kernel.org/stable/c/5d76ed4223403f90421782adb2f20a9ecbc93186> (patch)
- <https://git.kernel.org/stable/c/30d9f3cbe47e1018ddc8069ac5b5c9e66fbdf727> (patch)
- <https://git.kernel.org/stable/c/a2ed7b29d0673ba361546e2d87dbbed149456c45> (patch)
- <https://git.kernel.org/stable/c/f6b5d51976fcefef5732da3e3feb3ccff680f7c8> (patch)
- <https://git.kernel.org/stable/c/7969fe91c9830e045901970e9d755b7505881d4a> (patch)
- <https://git.kernel.org/stable/c/2142bc1469a316fddd10012d76428f7265258f81> (patch)
- <https://git.kernel.org/stable/c/5f4e5ce638e6a490b976ade4a40017b40abb2da0> (patch)

## Sources

- CVE List: [CVE-2022-48799](https://www.cve.org/CVERecord?id=CVE-2022-48799), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-48799](https://nvd.nist.gov/vuln/detail/CVE-2022-48799), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48799 · Whole record: https://cve.day/CVE-2022-48799.json · Rebuilt by cve.day 2026-11-25T22:58:19.888Z
