# CVE-2024-38583: nilfs2: fix use-after-free of timer for log writer thread

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; 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.34% (percentile 19, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-06-19T13:37:39.858Z
- **Modified:** 2026-08-05T11:32:58.962Z

## Who should check

- Anyone running Linux \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 822ae5a8eac30478578a75f7e064f0584931bf2d; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 82933c84f188dcfe89eb26b0b48ab5d1ca99d164; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 67fa90d4a2ccd9ebb0e1e168c7d0b5d0cf3c7148; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< e65ccf3a4de4f0c763d94789615b83e11f204438; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 86a30d6302deddb9fb97ba6fc4b04d0e870b582a; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< f9186bba4ea282b07293c1c892441df3a5441cb0; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 2f12b2c03c5dae1a0de0a9e5853177e3d6eee3c6; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 68e738be5c518fc3c4e9146b66f67c8fee0135fb; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< f5d4e04634c9cf68bdf23de08ada0bb92e8befe7
- Anyone running Linux 2.6.35

## Description

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

nilfs2: fix use-after-free of timer for log writer thread

Patch series "nilfs2: fix log writer related issues".

This bug fix series covers three nilfs2 log writer-related issues,
including a timer use-after-free issue and potential deadlock issue on
unmount, and a potential freeze issue in event synchronization found
during their analysis.  Details are described in each commit log.


This patch (of 3):

A use-after-free issue has been reported regarding the timer sc\_timer on
the nilfs\_sc\_info structure.

The problem is that even though it is used to wake up a sleeping log
writer thread, sc\_timer is not shut down until the nilfs\_sc\_info structure
is about to be freed, and is used regardless of the thread's lifetime.

Fix this issue by limiting the use of sc\_timer only while the log writer
thread is alive.

## Affected and fixed versions

- Linux: \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 822ae5a8eac30478578a75f7e064f0584931bf2d; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 82933c84f188dcfe89eb26b0b48ab5d1ca99d164; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 67fa90d4a2ccd9ebb0e1e168c7d0b5d0cf3c7148; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< e65ccf3a4de4f0c763d94789615b83e11f204438; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 86a30d6302deddb9fb97ba6fc4b04d0e870b582a; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< f9186bba4ea282b07293c1c892441df3a5441cb0; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 2f12b2c03c5dae1a0de0a9e5853177e3d6eee3c6; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 68e738be5c518fc3c4e9146b66f67c8fee0135fb; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< f5d4e04634c9cf68bdf23de08ada0bb92e8befe7 (cvelist)
- Linux: 2.6.35 (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-38583. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-38583.md
Affected: Linux >= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, < 822ae5a8eac30478578a75f7e064f0584931bf2d; >= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, < 82933c84f188dcfe89eb26b0b48ab5d1ca99d164; >= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, < 67fa90d4a2ccd9ebb0e1e168c7d0b5d0cf3c7148; >= fdce895ea5dd4e24edf1f4d…
Fixed in: Linux 822ae5a8eac30478578a75f7e064f0584931bf2d, Linux 82933c84f188dcfe89eb26b0b48ab5d1ca99d164, Linux 67fa90d4a2ccd9ebb0e1e168c7d0b5d0cf3c7148, Linux 86a30d6302deddb9fb97ba6fc4b04d0e870b582a, Linux 2f12b2c03c5dae1a0de0a9e5853177e3d6eee3c6, Linux 68e738be5c518fc3c4e9146b66f67c8fee0135fb

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 822ae5a8eac30478578a75f7e064f0584931bf2d; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 82933c84f188dcfe89eb26b0b48ab5d1ca99d164; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 67fa90d4a2ccd9ebb0e1e168c7d0b5d0cf3c7148; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< e65ccf3a4de4f0c763d94789615b83e11f204438; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 86a30d6302deddb9fb97ba6fc4b04d0e870b582a; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< f9186bba4ea282b07293c1c892441df3a5441cb0; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 2f12b2c03c5dae1a0de0a9e5853177e3d6eee3c6; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< 68e738be5c518fc3c4e9146b66f67c8fee0135fb; \>= fdce895ea5dd4e24edf1f4d693827349a4e5b3b4, \< f5d4e04634c9cf68bdf23de08ada0bb92e8befe7; Linux 2.6.35.

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

Yes. Fixed in Linux 822ae5a8eac30478578a75f7e064f0584931bf2d, Linux 82933c84f188dcfe89eb26b0b48ab5d1ca99d164, Linux 67fa90d4a2ccd9ebb0e1e168c7d0b5d0cf3c7148, Linux 86a30d6302deddb9fb97ba6fc4b04d0e870b582a, Linux 2f12b2c03c5dae1a0de0a9e5853177e3d6eee3c6, Linux 68e738be5c518fc3c4e9146b66f67c8fee0135fb. No fix listed yet: follow the vendor advisory.

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

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/822ae5a8eac30478578a75f7e064f0584931bf2d>
- patch: <https://git.kernel.org/stable/c/82933c84f188dcfe89eb26b0b48ab5d1ca99d164>
- patch: <https://git.kernel.org/stable/c/67fa90d4a2ccd9ebb0e1e168c7d0b5d0cf3c7148>
- patch: <https://git.kernel.org/stable/c/e65ccf3a4de4f0c763d94789615b83e11f204438>
- patch: <https://git.kernel.org/stable/c/86a30d6302deddb9fb97ba6fc4b04d0e870b582a>
- patch: <https://git.kernel.org/stable/c/f9186bba4ea282b07293c1c892441df3a5441cb0>
- patch: <https://git.kernel.org/stable/c/2f12b2c03c5dae1a0de0a9e5853177e3d6eee3c6>
- patch: <https://git.kernel.org/stable/c/68e738be5c518fc3c4e9146b66f67c8fee0135fb>
- patch: <https://git.kernel.org/stable/c/f5d4e04634c9cf68bdf23de08ada0bb92e8befe7>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.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-38583>

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