CVE-2024-38577

rcu-tasks: Fix show_rcu_tasks_trace_gp_kthread buffer overflow

State
Published
Severity
7.0 High
Published
Jun 19, 2024
Updated
Aug 5, 2026
Reserved
Jun 18, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • edf3775f0ad66879796f594983163f672c4bf1a2 to before 17c43211d45f13d1badea3942b76bf16bcc49281Affected
  • edf3775f0ad66879796f594983163f672c4bf1a2 to before af7b560c88fb420099e29890aa682b8a3efc8784Affected
  • edf3775f0ad66879796f594983163f672c4bf1a2 to before 08186d0c5fb64a1cc4b43e009314ee6b173ed222Affected
  • edf3775f0ad66879796f594983163f672c4bf1a2 to before 32d988f48ed287e676a29a15ac30701c35849aecAffected
  • edf3775f0ad66879796f594983163f672c4bf1a2 to before 6593d857ce5b5b802fb73d8091ac9c84b92c1697Affected
  • edf3775f0ad66879796f594983163f672c4bf1a2 to before 1a240e138071b25944ded0f5b3e357aa99fabcb7Affected
  • edf3775f0ad66879796f594983163f672c4bf1a2 to before cc5645fddb0ce28492b15520306d092730dffa48Affected
LinuxLinux
  • 5.8Affected
  • before 5.8Not affected
  • 5.10.226 through 5.10.*Not affected
  • 5.15.167 through 5.15.*Not affected
  • 6.1.93 through 6.1.*Not affected
  • 6.6.33 through 6.6.*Not affected
  • 6.8.12 through 6.8.*Not affected
  • 6.9.3 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.