# CVE-2024-38576: rcu: Fix buffer overflow in print_cpu_stall_info()

- 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.142Z
- Modified: 2026-08-05T11:32:53.593Z
- 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: Fix buffer overflow in print_cpu_stall_info()

The rcuc-starvation output from print_cpu_stall_info() might overflow the
buffer if there is a huge difference in jiffies difference.  The situation
might seem improbable, but computers sometimes get very confused about
time, which can result in full-sized integers, and, in this case,
buffer overflow.

Also, the unsigned jiffies difference is printed using %ld, which is
normally for signed integers.  This is intentional for debugging purposes,
but it is not obvious from the code.

This commit therefore changes sprintf() to snprintf() and adds a
clarifying comment about intention of %ld format.

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

(As written by CVE List.)

## Affected

- Linux Linux: from 245a62982502255314b63dd2c4daaedd1cd595a6 before e2228ed3fe7aa838fba87c79a76fb1ad9ea47138; from 245a62982502255314b63dd2c4daaedd1cd595a6 before afb39909bfb5c08111f99e21bf5be7505f59ff1c; from 245a62982502255314b63dd2c4daaedd1cd595a6 before 9351e1338539cb7f319ffc1210fa9b2aa27384b5; from 245a62982502255314b63dd2c4daaedd1cd595a6 before 4c3e2ef4d8ddd313c8ce3ac30505940bea8d6257; from 245a62982502255314b63dd2c4daaedd1cd595a6 before 3758f7d9917bd7ef0482c4184c0ad673b4c4e069; 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.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/e2228ed3fe7aa838fba87c79a76fb1ad9ea47138> (patch)
- <https://git.kernel.org/stable/c/afb39909bfb5c08111f99e21bf5be7505f59ff1c> (patch)
- <https://git.kernel.org/stable/c/9351e1338539cb7f319ffc1210fa9b2aa27384b5> (patch)
- <https://git.kernel.org/stable/c/4c3e2ef4d8ddd313c8ce3ac30505940bea8d6257> (patch)
- <https://git.kernel.org/stable/c/3758f7d9917bd7ef0482c4184c0ad673b4c4e069> (patch)

## Sources

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

---

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