# CVE-2024-38569: drivers/perf: hisi_pcie: Fix out-of-bound access when valid event group

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-06-19T13:35:35.588Z
- Modified: 2026-08-05T11:32:50.420Z
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drivers/perf: hisi_pcie: Fix out-of-bound access when valid event group

The perf tool allows users to create event groups through following
cmd [1], but the driver does not check whether the array index is out of
bounds when writing data to the event_group array. If the number of events
in an event_group is greater than HISI_PCIE_MAX_COUNTERS, the memory write
overflow of event_group array occurs.

Add array index check to fix the possible array out of bounds violation,
and return directly when write new events are written to array bounds.

There are 9 different events in an event_group.
[1] perf stat -e '{pmu/event1/, ... ,pmu/event9/}'

(As written by CVE List.)

## Affected

- Linux Linux: from 8404b0fbc7fbd42e5c5d28cdedd450e70829c77a before 3d1face00ebb7996842aee4214d7d0fb0c77b1e9; from 8404b0fbc7fbd42e5c5d28cdedd450e70829c77a before 8e9aab2492178f25372f1820bfd9289fbd74efd0; from 8404b0fbc7fbd42e5c5d28cdedd450e70829c77a before 567d34626c22b36579ec0abfdf5eda2949044220; from 8404b0fbc7fbd42e5c5d28cdedd450e70829c77a before ff48247144d13a3a0817127703724256008efa78; from 8404b0fbc7fbd42e5c5d28cdedd450e70829c77a before 77fce82678ea5fd51442e62febec2004f79e041b; 5.17 (not affected: before 5.17; from 6.1.93 up to 6.1.*; from 6.6.33 up to 6.6.*; from 6.8.12 up to 6.8.*; from 6.9.3 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 5.17 before 6.1.93; from 6.2 before 6.6.33; from 6.7 before 6.8.12; from 6.9 before 6.9.3

## Every score

- Linux: 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`
- NVD: 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`

## References

- <https://git.kernel.org/stable/c/3d1face00ebb7996842aee4214d7d0fb0c77b1e9> (patch)
- <https://git.kernel.org/stable/c/8e9aab2492178f25372f1820bfd9289fbd74efd0> (patch)
- <https://git.kernel.org/stable/c/567d34626c22b36579ec0abfdf5eda2949044220> (patch)
- <https://git.kernel.org/stable/c/ff48247144d13a3a0817127703724256008efa78> (patch)
- <https://git.kernel.org/stable/c/77fce82678ea5fd51442e62febec2004f79e041b> (patch)

## Sources

- CVE List: [CVE-2024-38569](https://www.cve.org/CVERecord?id=CVE-2024-38569), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-38569](https://nvd.nist.gov/vuln/detail/CVE-2024-38569), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-38569 · Whole record: https://cve.day/CVE-2024-38569.json · Rebuilt by cve.day 2026-11-25T22:58:42.020Z
