7.0high
rcu: Fix buffer overflow in print_cpu_stall_info()
- Severity
- 7.0high CVSS:3.1 by Linux
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| 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 | NVD |
All scores
| Linux | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: rcu: corrige el desbordamiento del búfer en print_cpu_stall_info() La salida rcuc-starvation de print_cpu_stall_info() podría desbordar el búfer si hay una gran diferencia en santiamén. La situación puede parecer improbable, pero las computadoras a veces se confunden mucho con el tiempo, lo que puede resultar en números enteros de tamaño completo y, en este caso, en un desbordamiento del búfer. Además, la diferencia de santiamén sin signo se imprime usando %ld, que normalmente es para enteros con signo. Esto es intencional con fines de depuración, pero no es obvio en el código. Por lo tanto, esta confirmación cambia sprintf() a snprintf() y agrega un comentario aclaratorio sobre la intención del formato %ld. Encontrado por el Centro de verificación de Linux (linuxtesting.org) con SVACE.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-38576 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-38576 changed 2026-08-04 | Public domain |