# CVE-2025-68240: nilfs2: avoid having an active sc\_timer before freeing sci

> 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.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-16T14:21:17.710Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Anyone running Linux \>= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, \< 36049e81dc7f077e0e24d5b9688a7458beacef8f; \>= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, \< 2f65799e2a736d556d306440c4e1e8906736117a; \>= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, \< 9a6b60cb147d53968753a34805211d2e5e08c027
- Anyone running Linux 6.12

## Description

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

nilfs2: avoid having an active sc\_timer before freeing sci

Because kthread\_stop did not stop sc\_task properly and returned -EINTR,
the sc\_timer was not properly closed, ultimately causing the problem \[1\]
reported by syzbot when freeing sci due to the sc\_timer not being closed.

Because the thread sc\_task main function nilfs\_segctor\_thread() returns 0
when it succeeds, when the return value of kthread\_stop() is not 0 in
nilfs\_segctor\_destroy(), we believe that it has not properly closed
sc\_timer.

We use timer\_shutdown\_sync() to sync wait for sc\_timer to shutdown, and
set the value of sc\_task to NULL under the protection of lock
sc\_state\_lock, so as to avoid the issue caused by sc\_timer not being
properly shutdowned.

\[1\]
ODEBUG: free active (active state 0) object: 00000000dacb411a object type: timer\_list hint: nilfs\_construction\_timeout
Call trace:
 nilfs\_segctor\_destroy fs/nilfs2/segment.c:2811 \[inline\]
 nilfs\_detach\_log\_writer+0x668/0x8cc fs/nilfs2/segment.c:2877
 nilfs\_put\_super+0x4c/0x12c fs/nilfs2/super.c:509

## Affected and fixed versions

- Linux: \>= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, \< 36049e81dc7f077e0e24d5b9688a7458beacef8f; \>= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, \< 2f65799e2a736d556d306440c4e1e8906736117a; \>= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, \< 9a6b60cb147d53968753a34805211d2e5e08c027 (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 9a6b60cb147d53968753a34805211d2e5e08c027 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68240.md
Affected: Linux >= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, < 36049e81dc7f077e0e24d5b9688a7458beacef8f; >= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, < 2f65799e2a736d556d306440c4e1e8906736117a; >= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, < 9a6b60cb147d53968753a34805211d2e5e08c027; Linux 6.12
Fixed in: Linux 36049e81dc7f077e0e24d5b9688a7458beacef8f, Linux 2f65799e2a736d556d306440c4e1e8906736117a, Linux 9a6b60cb147d53968753a34805211d2e5e08c027

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, \< 36049e81dc7f077e0e24d5b9688a7458beacef8f; \>= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, \< 2f65799e2a736d556d306440c4e1e8906736117a; \>= 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c, \< 9a6b60cb147d53968753a34805211d2e5e08c027; Linux 6.12.

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

Yes. Fixed in Linux 36049e81dc7f077e0e24d5b9688a7458beacef8f, Linux 2f65799e2a736d556d306440c4e1e8906736117a, Linux 9a6b60cb147d53968753a34805211d2e5e08c027. Upgrade Linux to 9a6b60cb147d53968753a34805211d2e5e08c027 or later.

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

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/36049e81dc7f077e0e24d5b9688a7458beacef8f>
- other: <https://git.kernel.org/stable/c/2f65799e2a736d556d306440c4e1e8906736117a>
- other: <https://git.kernel.org/stable/c/9a6b60cb147d53968753a34805211d2e5e08c027>

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

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