# CVE-2024-38577: rcu-tasks: Fix show_rcu_tasks_trace_gp_kthread buffer overflow

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-06-19T13:37:35.797Z
- Modified: 2026-08-05T11:32:54.659Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

rcu-tasks: Fix show_rcu_tasks_trace_gp_kthread buffer overflow

There is a possibility of buffer overflow in
show_rcu_tasks_trace_gp_kthread() if counters, passed
to sprintf() are huge. Counter numbers, needed for this
are unrealistically high, but buffer overflow is still
possible.

Use snprintf() with buffer size instead of sprintf().

Found by Linux Verification Center (linuxtesting.org) with SVACE.

(As written by CVE List.)

## Affected

- Linux Linux: from edf3775f0ad66879796f594983163f672c4bf1a2 before 17c43211d45f13d1badea3942b76bf16bcc49281; from edf3775f0ad66879796f594983163f672c4bf1a2 before af7b560c88fb420099e29890aa682b8a3efc8784; from edf3775f0ad66879796f594983163f672c4bf1a2 before 08186d0c5fb64a1cc4b43e009314ee6b173ed222; from edf3775f0ad66879796f594983163f672c4bf1a2 before 32d988f48ed287e676a29a15ac30701c35849aec; from edf3775f0ad66879796f594983163f672c4bf1a2 before 6593d857ce5b5b802fb73d8091ac9c84b92c1697; from edf3775f0ad66879796f594983163f672c4bf1a2 before 1a240e138071b25944ded0f5b3e357aa99fabcb7; from edf3775f0ad66879796f594983163f672c4bf1a2 before cc5645fddb0ce28492b15520306d092730dffa48; 5.8 (not affected: before 5.8; from 5.10.226 up to 5.10.*; from 5.15.167 up to 5.15.*; 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.8 before 5.10.226; from 5.11 before 5.15.167; from 5.16 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.0 High `CVSS:3.1/AV:L/AC:H/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/17c43211d45f13d1badea3942b76bf16bcc49281> (patch)
- <https://git.kernel.org/stable/c/af7b560c88fb420099e29890aa682b8a3efc8784> (patch)
- <https://git.kernel.org/stable/c/08186d0c5fb64a1cc4b43e009314ee6b173ed222> (patch)
- <https://git.kernel.org/stable/c/32d988f48ed287e676a29a15ac30701c35849aec> (patch)
- <https://git.kernel.org/stable/c/6593d857ce5b5b802fb73d8091ac9c84b92c1697> (patch)
- <https://git.kernel.org/stable/c/1a240e138071b25944ded0f5b3e357aa99fabcb7> (patch)
- <https://git.kernel.org/stable/c/cc5645fddb0ce28492b15520306d092730dffa48> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Sources

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

---

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