# CVE-2024-38576: rcu: Fix buffer overflow in print\_cpu\_stall\_info()

> 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.142Z
- **Modified:** 2026-08-05T11:32:53.593Z

## Who should check

- Anyone running Linux \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< e2228ed3fe7aa838fba87c79a76fb1ad9ea47138; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< afb39909bfb5c08111f99e21bf5be7505f59ff1c; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< 9351e1338539cb7f319ffc1210fa9b2aa27384b5; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< 4c3e2ef4d8ddd313c8ce3ac30505940bea8d6257; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< 3758f7d9917bd7ef0482c4184c0ad673b4c4e069
- Anyone running Linux 6.0

## 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 and fixed versions

- Linux: \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< e2228ed3fe7aa838fba87c79a76fb1ad9ea47138; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< afb39909bfb5c08111f99e21bf5be7505f59ff1c; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< 9351e1338539cb7f319ffc1210fa9b2aa27384b5; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< 4c3e2ef4d8ddd313c8ce3ac30505940bea8d6257; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< 3758f7d9917bd7ef0482c4184c0ad673b4c4e069 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 3758f7d9917bd7ef0482c4184c0ad673b4c4e069 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-38576.md
Affected: Linux >= 245a62982502255314b63dd2c4daaedd1cd595a6, < e2228ed3fe7aa838fba87c79a76fb1ad9ea47138; >= 245a62982502255314b63dd2c4daaedd1cd595a6, < afb39909bfb5c08111f99e21bf5be7505f59ff1c; >= 245a62982502255314b63dd2c4daaedd1cd595a6, < 9351e1338539cb7f319ffc1210fa9b2aa27384b5; >= 245a62982502255314b63dd…
Fixed in: Linux 9351e1338539cb7f319ffc1210fa9b2aa27384b5, Linux 4c3e2ef4d8ddd313c8ce3ac30505940bea8d6257, Linux 3758f7d9917bd7ef0482c4184c0ad673b4c4e069

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-38576 being exploited?

There is no confirmed exploitation: CVE-2024-38576 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-38576?

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-38576?

Linux \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< e2228ed3fe7aa838fba87c79a76fb1ad9ea47138; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< afb39909bfb5c08111f99e21bf5be7505f59ff1c; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< 9351e1338539cb7f319ffc1210fa9b2aa27384b5; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< 4c3e2ef4d8ddd313c8ce3ac30505940bea8d6257; \>= 245a62982502255314b63dd2c4daaedd1cd595a6, \< 3758f7d9917bd7ef0482c4184c0ad673b4c4e069; Linux 6.0.

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

Yes. Fixed in Linux 9351e1338539cb7f319ffc1210fa9b2aa27384b5, Linux 4c3e2ef4d8ddd313c8ce3ac30505940bea8d6257, Linux 3758f7d9917bd7ef0482c4184c0ad673b4c4e069. Upgrade Linux to 3758f7d9917bd7ef0482c4184c0ad673b4c4e069 or later.

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

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/e2228ed3fe7aa838fba87c79a76fb1ad9ea47138>
- patch: <https://git.kernel.org/stable/c/afb39909bfb5c08111f99e21bf5be7505f59ff1c>
- patch: <https://git.kernel.org/stable/c/9351e1338539cb7f319ffc1210fa9b2aa27384b5>
- patch: <https://git.kernel.org/stable/c/4c3e2ef4d8ddd313c8ce3ac30505940bea8d6257>
- patch: <https://git.kernel.org/stable/c/3758f7d9917bd7ef0482c4184c0ad673b4c4e069>

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

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