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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-06-19 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2024-38583, DEBIAN-CVE-2024-38583
- Record: https://cvemate.com/vulnerability/CVE-2024-38583 · JSON: https://cvemate.com/vulnerability/CVE-2024-38583/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.258%, percentile 18.618%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 132)

- debian linux (Debian): \< 6.1.94-1 \| \< 6.8.12-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 4.4.0-259.293 \| \< 4.15.0-229.241 \| \< 5.4.0-192.212 \| \< 5.15.0-121.131 \| \< 6.8.0-40.40
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.4.0-1136.142 \| \< 4.4.0-1174.189 \| \< 4.15.0-1173.186 \| \< 5.4.0-1130.140 \| \< 5.15.0-1069.75 \| \< 6.8.0-1013.14
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1069.75~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1130.140~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1013.14~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2111.117 \| All versions (No fix recorded) \| \< 5.4.0-1130.140+fips1 \| \< 5.15.0-1069.75+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1173.186~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1181.196~14.04.1 \| \< 4.15.0-1181.196~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1135.142 \| \< 5.15.0-1072.81 \| \< 6.8.0-1012.14
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1181.196
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 35)

- <https://git.kernel.org/stable/c/822ae5a8eac30478578a75f7e064f0584931bf2d>
- <https://git.kernel.org/stable/c/82933c84f188dcfe89eb26b0b48ab5d1ca99d164>
- <https://git.kernel.org/stable/c/67fa90d4a2ccd9ebb0e1e168c7d0b5d0cf3c7148>
- <https://git.kernel.org/stable/c/e65ccf3a4de4f0c763d94789615b83e11f204438>
- <https://git.kernel.org/stable/c/86a30d6302deddb9fb97ba6fc4b04d0e870b582a>
- <https://git.kernel.org/stable/c/f9186bba4ea282b07293c1c892441df3a5441cb0>
- <https://git.kernel.org/stable/c/2f12b2c03c5dae1a0de0a9e5853177e3d6eee3c6>
- <https://git.kernel.org/stable/c/68e738be5c518fc3c4e9146b66f67c8fee0135fb>
- <https://git.kernel.org/stable/c/f5d4e04634c9cf68bdf23de08ada0bb92e8befe7>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- <https://ubuntu.com/security/CVE-2024-38583>
- <https://www.cve.org/CVERecord?id=CVE-2024-38583>
- <https://git.kernel.org/linus/f5d4e04634c9cf68bdf23de08ada0bb92e8befe7>
- <https://ubuntu.com/security/notices/USN-6949-1>
- <https://ubuntu.com/security/notices/USN-6951-1>
- <https://ubuntu.com/security/notices/USN-6952-1>
- <https://ubuntu.com/security/notices/USN-6953-1>
- <https://ubuntu.com/security/notices/USN-6955-1>
- <https://ubuntu.com/security/notices/USN-6949-2>
- <https://ubuntu.com/security/notices/USN-6952-2>

---

Data as of 2026-12-05T04:02:33.369Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
