# CVE-2024-38568: drivers/perf: hisi: hns3: 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.33%, higher than 18% of CVEs (2026-11-30)
- Published: 2024-06-19T13:35:34.925Z
- Modified: 2026-08-05T11:32:49.356Z
- 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: hns3: 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 HNS3_PMU_MAX_HW_EVENTS, 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 66637ab137b44914356a9dc7a9b3f8ebcf0b0695 before 3669baf308308385a2ab391324abdde5682af5aa; from 66637ab137b44914356a9dc7a9b3f8ebcf0b0695 before be1fa711e59c874d049f592aef1d4685bdd22bdf; from 66637ab137b44914356a9dc7a9b3f8ebcf0b0695 before b5120d322763c15c978bc47beb3b6dff45624304; from 66637ab137b44914356a9dc7a9b3f8ebcf0b0695 before aa2d3d678895c8eedd003f1473f87d3f06fe6ec7; from 66637ab137b44914356a9dc7a9b3f8ebcf0b0695 before 81bdd60a3d1d3b05e6cc6674845afb1694dd3a0e; 6.0 (not affected: before 6.0; 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 6.0 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/3669baf308308385a2ab391324abdde5682af5aa> (patch)
- <https://git.kernel.org/stable/c/be1fa711e59c874d049f592aef1d4685bdd22bdf> (patch)
- <https://git.kernel.org/stable/c/b5120d322763c15c978bc47beb3b6dff45624304> (patch)
- <https://git.kernel.org/stable/c/aa2d3d678895c8eedd003f1473f87d3f06fe6ec7> (patch)
- <https://git.kernel.org/stable/c/81bdd60a3d1d3b05e6cc6674845afb1694dd3a0e> (patch)

## Sources

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

---

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