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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-06-19T13:37:39.858Z
- Modified: 2026-08-05T11:32:58.962Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from fdce895ea5dd4e24edf1f4d693827349a4e5b3b4 before 822ae5a8eac30478578a75f7e064f0584931bf2d; from fdce895ea5dd4e24edf1f4d693827349a4e5b3b4 before 82933c84f188dcfe89eb26b0b48ab5d1ca99d164; from fdce895ea5dd4e24edf1f4d693827349a4e5b3b4 before 67fa90d4a2ccd9ebb0e1e168c7d0b5d0cf3c7148; from fdce895ea5dd4e24edf1f4d693827349a4e5b3b4 before e65ccf3a4de4f0c763d94789615b83e11f204438; from fdce895ea5dd4e24edf1f4d693827349a4e5b3b4 before 86a30d6302deddb9fb97ba6fc4b04d0e870b582a; from fdce895ea5dd4e24edf1f4d693827349a4e5b3b4 before f9186bba4ea282b07293c1c892441df3a5441cb0; from fdce895ea5dd4e24edf1f4d693827349a4e5b3b4 before 2f12b2c03c5dae1a0de0a9e5853177e3d6eee3c6; from fdce895ea5dd4e24edf1f4d693827349a4e5b3b4 before 68e738be5c518fc3c4e9146b66f67c8fee0135fb; from fdce895ea5dd4e24edf1f4d693827349a4e5b3b4 before f5d4e04634c9cf68bdf23de08ada0bb92e8befe7; 2.6.35 (not affected: before 2.6.35; from 4.19.316 up to 4.19.*; from 5.4.278 up to 5.4.*; from 5.10.219 up to 5.10.*; from 5.15.161 up to 5.15.*; from 6.1.94 up to 6.1.*; from 6.6.33 up to 6.6.*; from 6.8.12 up to 6.8.*; from 6.9.3 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 2.6.35 before 4.19.316; from 4.20 before 5.4.278; from 5.5 before 5.10.219; from 5.11 before 5.15.161; from 5.16 before 6.1.94; from 6.2 before 6.6.33; from 6.7 before 6.8.12; from 6.9 before 6.9.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## Sources

- CVE List: [CVE-2024-38583](https://www.cve.org/CVERecord?id=CVE-2024-38583), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-38583](https://nvd.nist.gov/vuln/detail/CVE-2024-38583), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-38583 · Whole record: https://cve.day/CVE-2024-38583.json · Rebuilt by cve.day 2026-11-25T22:58:42.027Z
