rcu-tasks: Fix show_rcu_tasks_trace_gp_kthread buffer overflow
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ edf3775f0ad66879796f594983163f672c4bf1a2 · < 1a240e138071b25944ded0f5b3e357aa99fabcb7| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's show_rcu_tasks_trace_gp_kthread() can overflow a buffer when counters passed to sprintf() are unrealistically high. The input does not establish how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions are not specified.