CVE-2024-38583

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-38583
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-38583.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-38583
Downstream
Related
Published
2024-06-19T13:37:39.858Z
Modified
2025-11-28T02:33:54.995871Z
Summary
nilfs2: fix use-after-free of timer for log writer thread
Details

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 sctimer on the nilfssc_info structure.

The problem is that even though it is used to wake up a sleeping log writer thread, sctimer is not shut down until the nilfssc_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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38583.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fdce895ea5dd4e24edf1f4d693827349a4e5b3b4
Fixed
822ae5a8eac30478578a75f7e064f0584931bf2d
Fixed
82933c84f188dcfe89eb26b0b48ab5d1ca99d164
Fixed
67fa90d4a2ccd9ebb0e1e168c7d0b5d0cf3c7148
Fixed
e65ccf3a4de4f0c763d94789615b83e11f204438
Fixed
86a30d6302deddb9fb97ba6fc4b04d0e870b582a
Fixed
f9186bba4ea282b07293c1c892441df3a5441cb0
Fixed
2f12b2c03c5dae1a0de0a9e5853177e3d6eee3c6
Fixed
68e738be5c518fc3c4e9146b66f67c8fee0135fb
Fixed
f5d4e04634c9cf68bdf23de08ada0bb92e8befe7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.35
Fixed
4.19.316
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.278
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.219
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.161
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.94
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.33
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.12
Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.9.3