CVE-2024-38582

Source
https://cve.org/CVERecord?id=CVE-2024-38582
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38582.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-38582
Downstream
BELL (1)
DEBIAN (1)
MGASA (2)
OESA (5)
SUSE (8)
UBUNTU (1)
Related
Published
2024-06-19T13:37:39Z
Modified
2026-10-20T10:30:53Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
nilfs2: fix potential hang in nilfs_detach_log_writer()
Details

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

nilfs2: fix potential hang in nilfs_detach_log_writer()

Syzbot has reported a potential hang in nilfs_detach_log_writer() called during nilfs2 unmount.

Analysis revealed that this is because nilfs_segctor_sync(), which synchronizes with the log writer thread, can be called after nilfs_segctor_destroy() terminates that thread, as shown in the call trace below:

nilfs_detach_log_writer nilfs_segctor_destroy nilfs_segctor_kill_thread --> Shut down log writer thread flush_work nilfs_iput_work_func nilfs_dispose_list iput nilfs_evict_inode nilfs_transaction_commit nilfs_construct_segment (if inode needs sync) nilfs_segctor_sync --> Attempt to synchronize with log writer thread *** DEADLOCK ***

Fix this issue by changing nilfs_segctor_sync() so that the log writer thread returns normally without synchronizing after it terminates, and by forcing tasks that are already waiting to complete once after the thread terminates.

The skipped inode metadata flushout will then be processed together in the subsequent cleanup work in nilfs_segctor_destroy().

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38582.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
7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52
Fixed
911d38be151921a5d152bb55e81fd752384c6830
Fixed
bc9cee50a4a4ca23bdc49f75ea8242d8a2193b3b
Fixed
eff7cdf890b02596b8d73e910bdbdd489175dbdb
Fixed
06afce714d87c7cd1dcfccbcd800c5c5d2cf1cfd
Fixed
1c3844c5f4eac043954ebf6403fa9fd1f0e9c1c0
Fixed
a8799662fed1f8747edae87a1937549288baca6a
Fixed
6e5c8e8e024e147b834f56f2115aad241433679b
Fixed
c516db6ab9eabbedbc430b4f93b0d8728e9b427f
Fixed
eb85dace897c5986bc2f36b3c783c6abb8a4292e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3.2.68
Fixed
3.3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3.4.107
Fixed
3.5
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3.10.69
Fixed
3.11
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3.12.38
Fixed
3.13
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3.14.33
Fixed
3.15
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3.18.7
Fixed
3.19
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c23f3a9fa7826af0465b9408b186f6b555991890
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
28cd54f27d309bd65db8ff4b8e6275345287484c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ec7cae16b37ab478d6d7e33e8563b24ca189e6cf
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d26f2dfa556323787ee1ebd5d03aeaa8650c7404
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
52e87609d9d3ea34cadb5676e8ea85d025ac9632
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7bb9e4a06e12583f1418b669dc45bb3ee84496c6

Affected versions

v3.*
v3.10.100
v3.10.101
v3.10.102
v3.10.103
v3.10.104
v3.10.105
v3.10.106
v3.10.107
v3.10.108
v3.10.69
v3.10.70
v3.10.71
v3.10.72
v3.10.73
v3.10.74
v3.10.75
v3.10.76
v3.10.77
v3.10.78
v3.10.79
v3.10.80
v3.10.81
v3.10.82
v3.10.83
v3.10.84
v3.10.85
v3.10.86
v3.10.87
v3.10.88
v3.10.89
v3.10.90
v3.10.91
v3.10.92
v3.10.93
v3.10.94
v3.10.95
v3.10.96
v3.10.97
v3.10.98
v3.10.99
v3.12.38
v3.12.39
v3.12.40
v3.12.41
v3.12.42
v3.12.43
v3.12.44
v3.12.45
v3.12.46
v3.12.47
v3.12.48
v3.12.49
v3.12.50
v3.12.51
v3.12.52
v3.12.53
v3.12.54
v3.12.55
v3.12.56
v3.12.57
v3.12.58
v3.12.59
v3.12.60
v3.12.61
v3.12.62
v3.12.63
v3.12.64
v3.12.65
v3.12.66
v3.12.67
v3.12.68
v3.12.69
v3.12.70
v3.12.71
v3.12.72
v3.12.73
v3.12.74
v3.14.33
v3.14.34
v3.14.35
v3.14.36
v3.14.37
v3.14.38
v3.14.39
v3.14.40
v3.14.41
v3.14.42
v3.14.43
v3.14.44
v3.14.45
v3.14.46
v3.14.47
v3.14.48
v3.14.49
v3.14.50
v3.14.51
v3.14.52
v3.14.53
v3.14.54
v3.14.55
v3.14.56
v3.14.57
v3.14.58
v3.14.59
v3.14.60
v3.14.61
v3.14.62
v3.14.63
v3.14.64
v3.14.65
v3.14.66
v3.14.67
v3.14.68
v3.14.69
v3.14.70
v3.14.71
v3.14.72
v3.14.73
v3.14.74
v3.14.75
v3.14.76
v3.14.77
v3.14.78
v3.14.79
v3.18.10
v3.18.100
v3.18.101
v3.18.102
v3.18.103
v3.18.104
v3.18.105
v3.18.106
v3.18.107
v3.18.108
v3.18.109
v3.18.11
v3.18.110
v3.18.111
v3.18.112
v3.18.113
v3.18.114
v3.18.115
v3.18.116
v3.18.117
v3.18.118
v3.18.119
v3.18.12
v3.18.120
v3.18.121
v3.18.122
v3.18.123
v3.18.124
v3.18.125
v3.18.126
v3.18.127
v3.18.128
v3.18.129
v3.18.13
v3.18.130
v3.18.131
v3.18.132
v3.18.133
v3.18.134
v3.18.135
v3.18.136
v3.18.137
v3.18.138
v3.18.139
v3.18.14
v3.18.140
v3.18.15
v3.18.16
v3.18.17
v3.18.18
v3.18.19
v3.18.20
v3.18.21
v3.18.22
v3.18.23
v3.18.24
v3.18.25
v3.18.26
v3.18.27
v3.18.28
v3.18.29
v3.18.30
v3.18.31
v3.18.32
v3.18.33
v3.18.34
v3.18.35
v3.18.36
v3.18.37
v3.18.38
v3.18.39
v3.18.40
v3.18.41
v3.18.42
v3.18.43
v3.18.44
v3.18.45
v3.18.46
v3.18.47
v3.18.48
v3.18.49
v3.18.50
v3.18.51
v3.18.52
v3.18.53
v3.18.54
v3.18.55
v3.18.56
v3.18.57
v3.18.58
v3.18.59
v3.18.60
v3.18.61
v3.18.62
v3.18.63
v3.18.64
v3.18.65
v3.18.66
v3.18.67
v3.18.68
v3.18.69
v3.18.7
v3.18.70
v3.18.71
v3.18.72
v3.18.73
v3.18.74
v3.18.75
v3.18.76
v3.18.77
v3.18.78
v3.18.79
v3.18.8
v3.18.80
v3.18.81
v3.18.82
v3.18.83
v3.18.84
v3.18.85
v3.18.86
v3.18.87
v3.18.88
v3.18.89
v3.18.9
v3.18.90
v3.18.91
v3.18.92
v3.18.93
v3.18.94
v3.18.95
v3.18.96
v3.18.97
v3.18.98
v3.18.99
v3.2.100
v3.2.101
v3.2.102
v3.2.68
v3.2.69
v3.2.70
v3.2.71
v3.2.72
v3.2.73
v3.2.74
v3.2.75
v3.2.76
v3.2.77
v3.2.78
v3.2.79
v3.2.80
v3.2.81
v3.2.82
v3.2.83
v3.2.84
v3.2.85
v3.2.86
v3.2.87
v3.2.88
v3.2.89
v3.2.90
v3.2.91
v3.2.92
v3.2.93
v3.2.94
v3.2.95
v3.2.96
v3.2.97
v3.2.98
v3.2.99
v3.4.107
v3.4.108
v3.4.109
v3.4.110
v3.4.111
v3.4.112
v3.4.113

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38582.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.19.0
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.93
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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38582.json"