# CVE-2024-38577: rcu-tasks: Fix show\_rcu\_tasks\_trace\_gp\_kthread buffer overflow

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-120
- **Published:** 2024-06-19T13:37:35.797Z
- **Modified:** 2026-08-05T11:32:54.659Z

## Who should check

- Anyone running Linux \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 17c43211d45f13d1badea3942b76bf16bcc49281; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< af7b560c88fb420099e29890aa682b8a3efc8784; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 08186d0c5fb64a1cc4b43e009314ee6b173ed222; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 32d988f48ed287e676a29a15ac30701c35849aec; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 6593d857ce5b5b802fb73d8091ac9c84b92c1697; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 1a240e138071b25944ded0f5b3e357aa99fabcb7; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< cc5645fddb0ce28492b15520306d092730dffa48
- Anyone running Linux 5.8

## 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.

## Affected and fixed versions

- Linux: \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 17c43211d45f13d1badea3942b76bf16bcc49281; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< af7b560c88fb420099e29890aa682b8a3efc8784; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 08186d0c5fb64a1cc4b43e009314ee6b173ed222; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 32d988f48ed287e676a29a15ac30701c35849aec; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 6593d857ce5b5b802fb73d8091ac9c84b92c1697; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 1a240e138071b25944ded0f5b3e357aa99fabcb7; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< cc5645fddb0ce28492b15520306d092730dffa48 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-38577. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-38577.md
Affected: Linux >= edf3775f0ad66879796f594983163f672c4bf1a2, < 17c43211d45f13d1badea3942b76bf16bcc49281; >= edf3775f0ad66879796f594983163f672c4bf1a2, < af7b560c88fb420099e29890aa682b8a3efc8784; >= edf3775f0ad66879796f594983163f672c4bf1a2, < 08186d0c5fb64a1cc4b43e009314ee6b173ed222; >= edf3775f0ad66879796f594…
Fixed in: Linux 17c43211d45f13d1badea3942b76bf16bcc49281, Linux 08186d0c5fb64a1cc4b43e009314ee6b173ed222, Linux 32d988f48ed287e676a29a15ac30701c35849aec, Linux 6593d857ce5b5b802fb73d8091ac9c84b92c1697, Linux 1a240e138071b25944ded0f5b3e357aa99fabcb7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-38577 being exploited?

There is no confirmed exploitation: CVE-2024-38577 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-38577?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-38577?

Linux \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 17c43211d45f13d1badea3942b76bf16bcc49281; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< af7b560c88fb420099e29890aa682b8a3efc8784; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 08186d0c5fb64a1cc4b43e009314ee6b173ed222; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 32d988f48ed287e676a29a15ac30701c35849aec; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 6593d857ce5b5b802fb73d8091ac9c84b92c1697; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< 1a240e138071b25944ded0f5b3e357aa99fabcb7; \>= edf3775f0ad66879796f594983163f672c4bf1a2, \< cc5645fddb0ce28492b15520306d092730dffa48; Linux 5.8.

### Is there a fix for CVE-2024-38577?

Yes. Fixed in Linux 17c43211d45f13d1badea3942b76bf16bcc49281, Linux 08186d0c5fb64a1cc4b43e009314ee6b173ed222, Linux 32d988f48ed287e676a29a15ac30701c35849aec, Linux 6593d857ce5b5b802fb73d8091ac9c84b92c1697, Linux 1a240e138071b25944ded0f5b3e357aa99fabcb7. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-38577?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/17c43211d45f13d1badea3942b76bf16bcc49281>
- patch: <https://git.kernel.org/stable/c/af7b560c88fb420099e29890aa682b8a3efc8784>
- patch: <https://git.kernel.org/stable/c/08186d0c5fb64a1cc4b43e009314ee6b173ed222>
- patch: <https://git.kernel.org/stable/c/32d988f48ed287e676a29a15ac30701c35849aec>
- patch: <https://git.kernel.org/stable/c/6593d857ce5b5b802fb73d8091ac9c84b92c1697>
- patch: <https://git.kernel.org/stable/c/1a240e138071b25944ded0f5b3e357aa99fabcb7>
- patch: <https://git.kernel.org/stable/c/cc5645fddb0ce28492b15520306d092730dffa48>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-38577>

HTML: <https://flawdb.com/CVE-2024-38577> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-38577>
