CVE-2024-38576CWE-120

CVE-2024-38576

High · published June 19, 2024

CVSS v3.1
7.0
EPSS
0%
Percentile
16.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.0 · HIGH
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00256 · 16.3th percentile
Weakness
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Published
2024-06-19T18:15Z
Affected products (4)
ProductVersionsFixed in
linux/linux_kernel≥ 6.0, < 6.1.936.1.93
linux/linux_kernel≥ 6.2, < 6.6.336.6.33
linux/linux_kernel≥ 6.7, < 6.8.126.8.12
linux/linux_kernel≥ 6.9, < 6.9.36.9.3
References (10)
EPSS history
Timeline
  • 19 JUN 13:37Z
    rcu: Fix buffer overflow in print_cpu_stall_info()
    cvelistv5