# CVE-2025-39974: tracing/osnoise: Fix slab-out-of-bounds in \_parse\_integer\_limit()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-10-15T07:55:56.275Z
- **Modified:** 2026-10-19T22:10:00.130Z

## Who should check

- Anyone running Linux \>= 17f89102fe23d7389085a8820550df688f79888a, \< 930cb05a9e107777316b3ccf37f9556366669065; \>= 17f89102fe23d7389085a8820550df688f79888a, \< a2501032de0d1bc7971b2e43c03da534ac10ee9b
- Anyone running Linux 6.16

## Description

In the Linux kernel, the following vulnerability has been resolved:

tracing/osnoise: Fix slab-out-of-bounds in \_parse\_integer\_limit()

When config osnoise cpus by write() syscall, the following KASAN splat may
be observed:

BUG: KASAN: slab-out-of-bounds in \_parse\_integer\_limit+0x103/0x130
Read of size 1 at addr ffff88810121e3a1 by task test/447
CPU: 1 UID: 0 PID: 447 Comm: test Not tainted 6.17.0-rc6-dirty \#288 PREEMPT(voluntary)
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x55/0x70
 print\_report+0xcb/0x610
 kasan\_report+0xb8/0xf0
 \_parse\_integer\_limit+0x103/0x130
 bitmap\_parselist+0x16d/0x6f0
 osnoise\_cpus\_write+0x116/0x2d0
 vfs\_write+0x21e/0xcc0
 ksys\_write+0xee/0x1c0
 do\_syscall\_64+0xa8/0x2a0
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
 \</TASK\>

This issue can be reproduced by below code:

const char \*cpulist = "1";
int fd=open("/sys/kernel/debug/tracing/osnoise/cpus", O\_WRONLY);
write(fd, cpulist, strlen(cpulist));

Function bitmap\_parselist() was called to parse cpulist, it require that
the parameter 'buf' must be terminated with a '\\0' or '\\n'. Fix this issue
by adding a '\\0' to 'buf' in osnoise\_cpus\_write().

## Affected and fixed versions

- Linux: \>= 17f89102fe23d7389085a8820550df688f79888a, \< 930cb05a9e107777316b3ccf37f9556366669065; \>= 17f89102fe23d7389085a8820550df688f79888a, \< a2501032de0d1bc7971b2e43c03da534ac10ee9b (cvelist)
- Linux: 6.16 (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-2025-39974. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39974.md
Affected: Linux >= 17f89102fe23d7389085a8820550df688f79888a, < 930cb05a9e107777316b3ccf37f9556366669065; >= 17f89102fe23d7389085a8820550df688f79888a, < a2501032de0d1bc7971b2e43c03da534ac10ee9b; Linux 6.16
Fixed in: Linux 930cb05a9e107777316b3ccf37f9556366669065

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-2025-39974 being exploited?

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

### How serious is CVE-2025-39974?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-39974?

Linux \>= 17f89102fe23d7389085a8820550df688f79888a, \< 930cb05a9e107777316b3ccf37f9556366669065; \>= 17f89102fe23d7389085a8820550df688f79888a, \< a2501032de0d1bc7971b2e43c03da534ac10ee9b; Linux 6.16.

### Is there a fix for CVE-2025-39974?

Yes. Fixed in Linux 930cb05a9e107777316b3ccf37f9556366669065. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-39974?

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

- other: <https://git.kernel.org/stable/c/930cb05a9e107777316b3ccf37f9556366669065>
- other: <https://git.kernel.org/stable/c/a2501032de0d1bc7971b2e43c03da534ac10ee9b>

## 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-2025-39974>

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