{"schema_version":"1.9.0","id":"CVE-2024-38582","published":"2024-06-19T13:37:39.163Z","modified":"2026-08-12T03:51:31.744169274Z","related":["SUSE-SU-2024:2372-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"summary":"nilfs2: fix potential hang in nilfs_detach_log_writer()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix potential hang in nilfs_detach_log_writer()\n\nSyzbot has reported a potential hang in nilfs_detach_log_writer() called\nduring nilfs2 unmount.\n\nAnalysis revealed that this is because nilfs_segctor_sync(), which\nsynchronizes with the log writer thread, can be called after\nnilfs_segctor_destroy() terminates that thread, as shown in the call trace\nbelow:\n\nnilfs_detach_log_writer\n  nilfs_segctor_destroy\n    nilfs_segctor_kill_thread  --> Shut down log writer thread\n    flush_work\n      nilfs_iput_work_func\n        nilfs_dispose_list\n          iput\n            nilfs_evict_inode\n              nilfs_transaction_commit\n                nilfs_construct_segment (if inode needs sync)\n                  nilfs_segctor_sync  --> Attempt to synchronize with\n                                          log writer thread\n                           *** DEADLOCK ***\n\nFix this issue by changing nilfs_segctor_sync() so that the log writer\nthread returns normally without synchronizing after it terminates, and by\nforcing tasks that are already waiting to complete once after the thread\nterminates.\n\nThe skipped inode metadata flushout will then be processed together in the\nsubsequent cleanup work in nilfs_segctor_destroy().","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":"0"},{"last_affected":"c23f3a9fa7826af0465b9408b186f6b555991890"},{"last_affected":"28cd54f27d309bd65db8ff4b8e6275345287484c"},{"last_affected":"ec7cae16b37ab478d6d7e33e8563b24ca189e6cf"},{"last_affected":"d26f2dfa556323787ee1ebd5d03aeaa8650c7404"},{"last_affected":"52e87609d9d3ea34cadb5676e8ea85d025ac9632"},{"last_affected":"7bb9e4a06e12583f1418b669dc45bb3ee84496c6"}]},{"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"}]}],"versions":["v3.4.106","v3.2.67","v3.2.66","v3.18.6","v3.14.32","v3.10.68","v3.18.5","v3.14.31","v3.10.67","v3.4.105","v3.12.37","v3.10.66","v3.14.30","v3.18.4","v3.18.3","v3.14.29","v3.10.65","v3.18-rc1","v3.18.2","v3.14.28","v3.10.64","v3.12.36","v3.18.1","v3.14.27","v3.10.63","v3.18","v3.12.35","v3.2.65","v3.14.26","v3.10.62","v3.2.64","v3.18-rc7","v3.14.25","v3.10.61","v3.12.34","v3.18-rc6","v3.18-rc2","v3.18-rc3","v3.4.104","v3.18-rc4","v3.18-rc5","v3.14.24","v3.10.60","v3.12.33","v3.17","v3.14.23","v3.10.59","v3.2.63","v3.12.32","v3.14.22","v3.10.58","v3.17-rc1","v3.12.31","v3.14.21","v3.10.57","v3.17-rc7","v3.14.20","v3.10.56","v3.17-rc2","v3.10.55","v3.14.19","v3.17-rc4","v3.16","v3.17-rc5","v3.17-rc6","v3.12.30","v3.12.29","v3.4.103","v3.14.18","v3.10.54","v3.17-rc3","v3.2.62","v3.12.28","v3.14.17","v3.10.53","v3.12.27","v3.16-rc7","v3.14.16","v3.10.52","v3.4.102","v3.14.15","v3.10.51","v3.4.101","v3.2.61","v3.16-rc1","v3.16-rc3","v3.4.100","v3.10.50","v3.14.14","v3.12.26","v3.16-rc5","v3.16-rc6","v3.14.13","v3.10.49","v3.4.99","v3.16-rc2","v3.16-rc4","v3.12.25","v3.14.12","v3.10.48","v3.4.98","v3.12.24","v3.13","v3.2.60","v3.14.11","v3.10.47","v3.4.97","v3.15","v3.14.10","v3.10.46","v3.4.96","v3.14.9","v3.10.45","v3.4.95","v3.14.8","v3.10.44","v3.4.94","v3.12.23","v3.12.22","v3.4.93","v3.10.43","v3.14.7","v3.4.92","v3.10.42","v3.14.6","v3.15-rc5","v3.2.59","v3.4.91","v3.10.41","v3.14.5","v3.15-rc8","v3.15-rc1","v3.15-rc6","v3.12.21","v3.15-rc3","v3.14.4","v3.10.40","v3.15-rc7","v3.15-rc2","v3.15-rc4","v3.2.58","v3.4.90","v3.14","v3.12.20","v3.4.89","v3.10.39","v3.14.3","v3.14.2","v3.10.38","v3.4.88","v3.12.19","v3.14-rc4","v3.2.57","v3.14.1","v3.10.37","v3.4.87","v3.12.18","v3.14-rc8","v3.4.86","v3.10.36","v3.12.17","v3.14-rc7","v3.2.56","v3.14-rc6","v3.14-rc1","v3.14-rc2","v3.10.35","v3.4.85","v3.2.55","v3.12.16","v3.10.34","v3.4.84","v3.14-rc5","v3.12.15","v3.10.33","v3.4.83","v3.14-rc3","v3.12.14","v3.4.82","v3.10.32","v3.12.13","v3.12.12","v3.10.31","v3.4.81","v3.12.11","v3.10.30","v3.4.80","v3.2.54","v3.12.10","v3.10.29","v3.4.79","v3.13-rc6","v3.12.9","v3.10.28","v3.4.78","v3.4.77","v3.12.8","v3.10.27","v3.13-rc8","v3.12","v3.13-rc7","v3.13-rc1","v3.12.7","v3.10.26","v3.4.76","v3.13-rc4","v3.13-rc3","v3.12.6","v3.10.25","v3.4.75","v3.13-rc5","v3.2.53","v3.13-rc2","v3.12.5","v3.10.24","v3.4.74","v3.12.4","v3.10.23","v3.4.73","v3.4.72","v3.10.22","v3.12.3","v3.12.2","v3.10.21","v3.4.71","v3.12.1","v3.10.20","v3.4.70","v3.2.52","v3.10.19","v3.4.69","v3.12-rc7","v3.12-rc3","v3.12-rc6","v3.10.18","v3.4.68","v3.12-rc1","v3.12-rc5","v3.11","v3.10.17","v3.4.67","v3.12-rc2","v3.12-rc4","v3.2.51","v3.4.66","v3.10.16","v3.10.15","v3.4.65","v3.10.14","v3.4.64","v3.10.13","v3.4.63","v3.10.12","v3.4.62","v3.10.11","v3.4.61","v3.2.50","v3.11-rc7","v3.10.10","v3.4.60","v3.11-rc2","v3.11-rc5","v3.11-rc1","v3.11-rc3","v3.11-rc4","v3.4.59","v3.10.9","v3.11-rc6","v3.10.8","v3.10.7","v3.4.58","v3.10.6","v3.4.57","v3.10.5","v3.4.56","v3.10-rc2","v3.10.4","v3.4.55","v3.2.49","v3.10.3","v3.4.54","v3.2.48","v3.10.2","v3.10","v3.10.1","v3.4.53","v3.4.52","v3.4.51","v3.10-rc7","v3.2.47","v3.10-rc6","v3.10-rc1","v3.4.50","v3.10-rc5","v3.10-rc3","v3.4.49","v3.2.46","v3.10-rc4","v3.4.48","v3.4.47","v3.2.45","v3.9","v3.4.46","v3.4.45","v3.2.44","v3.4.44","v3.4.43","v3.9-rc2","v3.9-rc7","v3.4.42","v3.9-rc8","v3.4.41","v3.2.43","v3.9-rc3","v3.9-rc6","v3.9-rc5","v3.4.40","v3.4.39","v3.9-rc4","v3.9-rc1","v3.2.42","v3.8","v3.4.38","v3.4.37","v3.2.41","v3.4.36","v3.2.40","v3.4.35","v3.2.39","v3.4.34","v3.4.33","v3.8-rc7","v3.4.32","v3.8-rc6","v3.2.38","v3.8-rc5","v3.4.31","v3.4.30","v3.8-rc2","v3.4.29","v3.2.37","v3.4.28","v3.8-rc1","v3.8-rc3","v3.8-rc4","v3.4.27","v3.4.26","v3.4.25","v3.2.36","v3.7","v3.4.24","v3.2.35","v3.4.23","v3.7-rc1","v3.6","v3.7-rc6","v3.7-rc7","v3.4.22","v3.7-rc3","v3.7-rc8","v3.2.34","v3.4.21","v3.4.20","v3.7-rc2","v3.4.19","v3.7-rc4","v3.7-rc5","v3.4.18","v3.2.33","v3.4.17","v3.4.16","v3.2.32","v3.4.15","v3.4.14","v3.2.31","v3.4.13","v3.2.30","v3.6-rc7","v3.4.12","v3.6-rc1","v3.5-rc3","v3.4.11","v3.6-rc6","v3.6-rc5","v3.5","v3.6-rc3","v3.6-rc4","v3.2.29","v3.6-rc2","v3.4.10","v3.2.28","v3.4-rc4","v3.4.9","v3.2.27","v3.4.8","v3.2.26","v3.4.7","v3.2.25","v3.2.24","v3.4.6","v3.5-rc7","v3.2.23","v3.5-rc5","v3.5-rc6","v3.4.5","v3.4.4","v3.5-rc2","v3.2.22","v3.5-rc1","v3.5-rc4","v3.2.21","v3.4","v3.4.3","v3.2.20","v3.4.2","v3.2.19","v3.4.1","v3.2.18","v3.4-rc2","v3.4-rc1","v3.2.17","v3.4-rc7","v3.4-rc6","v3.4-rc3","v3.4-rc5","v3.2.16","v3.2.15","v3.3","v3.2.14","v3.2.13","v3.3-rc6","v3.3-rc3","v3.2.12","v3.3-rc7","v3.2.11","v3.3-rc2","v3.3-rc5","v3.2","v3.2.10","v3.3-rc4","v3.2.9","v3.3-rc1","v3.2.8","v3.2.7","v3.2.6","v3.2.5","v3.2.4","v3.2.3","v3.2.2","v3.2.1","v3.2-rc4","v3.2-rc7","v3.2-rc6","v3.2-rc5","v3.2-rc3","v3.1","v3.2-rc2","v3.2-rc1","v3.1-rc1","v3.1-rc9","v3.1-rc8","v3.1-rc10","v3.1-rc7","v3.1-rc3","v3.1-rc2","v3.1-rc4","v3.1-rc5","v3.0","v3.1-rc6","v3.0-rc7","v3.0-rc4","v3.0-rc6","v3.0-rc5","v3.0-rc3","v3.0-rc1","v2.6.39","v3.0-rc2","v2.6.38","v2.6.39-rc2","v2.6.39-rc7","v2.6.39-rc5","v2.6.39-rc1","v2.6.38-rc7","v2.6.39-rc6","v2.6.39-rc4","v2.6.39-rc3","v2.6.37","v2.6.38-rc1","v2.6.38-rc8","v2.6.38-rc2","v2.6.38-rc6","v2.6.38-rc5","v2.6.38-rc4","v2.6.38-rc3","v2.6.37-rc4","v2.6.37-rc2","v2.6.36","v2.6.37-rc5","v2.6.37-rc8","v2.6.37-rc7","v2.6.37-rc6","v2.6.37-rc1","v2.6.37-rc3","v2.6.36-rc6","v2.6.35-rc4","v2.6.36-rc8","v2.6.35","v2.6.36-rc7","v2.6.36-rc3","v2.6.36-rc5","v2.6.36-rc4","v2.6.36-rc2","v2.6.36-rc1","v2.6.35-rc5","v2.6.35-rc6","v2.6.34","v2.6.35-rc3","v2.6.35-rc1","v2.6.35-rc2","v2.6.34-rc7","v2.6.34-rc6","v2.6.34-rc5","v2.6.34-rc4","v2.6.34-rc3","v2.6.34-rc2","v2.6.34-rc1","v2.6.33","v2.6.33-rc6","v2.6.33-rc8","v2.6.33-rc4","v2.6.33-rc5","v2.6.33-rc3","v2.6.33-rc7","v2.6.33-rc2","v2.6.32","v2.6.33-rc1","v2.6.32-rc8","v2.6.32-rc7","v2.6.32-rc6","v2.6.31","v2.6.32-rc5","v2.6.32-rc4","v2.6.32-rc2","v2.6.32-rc1","v2.6.32-rc3","v2.6.31-rc9","v2.6.31-rc1","v2.6.31-rc7","v2.6.31-rc8","v2.6.31-rc6","v2.6.30-rc6","v2.6.30","v2.6.31-rc4","v2.6.31-rc5","v2.6.31-rc3","v2.6.31-rc2","v2.6.30-rc7","v2.6.30-rc8","v2.6.30-rc5","v2.6.30-rc3","v2.6.30-rc4","v2.6.30-rc1","v2.6.30-rc2","v2.6.29","v2.6.29-rc8","v2.6.29-rc7","v2.6.29-rc5","v2.6.29-rc1","v2.6.29-rc6","v2.6.29-rc4","v2.6.29-rc3","v2.6.29-rc2","v2.6.28","v2.6.28-rc7","v2.6.28-rc9","v2.6.28-rc8","v2.6.28-rc6","v2.6.28-rc5","v2.6.28-rc4","v2.6.28-rc2","v2.6.28-rc3","v2.6.28-rc1","v2.6.27","v2.6.27-rc7","v2.6.27-rc9","v2.6.27-rc8","v2.6.27-rc5","v2.6.27-rc6","v2.6.27-rc4","v2.6.27-rc1","v2.6.27-rc3","v2.6.27-rc2","v2.6.26","v2.6.26-rc9","v2.6.26-rc8","v2.6.26-rc3","v2.6.26-rc7","v2.6.26-rc6","v2.6.26-rc5","v2.6.26-rc4","v2.6.26-rc2","v2.6.26-rc1","v2.6.25","v2.6.25-rc7","v2.6.25-rc9","v2.6.25-rc8","v2.6.25-rc6","v2.6.25-rc5","v2.6.25-rc3","v2.6.25-rc4","v2.6.24","v2.6.25-rc2","v2.6.25-rc1","v2.6.24-rc8","v2.6.24-rc7","v2.6.24-rc6","v2.6.24-rc5","v2.6.24-rc4","v2.6.24-rc3","v2.6.24-rc2","v2.6.24-rc1","v2.6.23","v2.6.23-rc9","v2.6.23-rc8","v2.6.23-rc5","v2.6.23-rc7","v2.6.23-rc6","v2.6.23-rc4","v2.6.23-rc3","v2.6.23-rc2","v2.6.23-rc1","v2.6.22","v2.6.22-rc7","v2.6.22-rc6","v2.6.22-rc5","v2.6.22-rc4","v2.6.22-rc3","v2.6.22-rc2","v2.6.22-rc1","v2.6.21","v2.6.21-rc7","v2.6.21-rc6","v2.6.21-rc5","v2.6.21-rc4","v2.6.21-rc3","v2.6.21-rc2","v2.6.21-rc1","v2.6.20-rc7","v2.6.20-rc6","v2.6.20-rc5","v2.6.20-rc4","v2.6.20-rc3","v2.6.20-rc1","v2.6.20-rc2","v2.6.19-rc2","v2.6.18","v2.6.19-rc1","v2.6.18-rc6","v2.6.18-rc5","v2.6.18-rc3","v2.6.18-rc2","v2.6.18-rc1","v2.6.17","v2.6.17-rc4","v2.6.17-rc6","v2.6.17-rc5","v2.6.17-rc3","v2.6.17-rc2","v2.6.17-rc1","v2.6.16","v2.6.16-rc6","v2.6.16-rc4","v2.6.16-rc5","v2.6.16-rc3","v2.6.16-rc2","v2.6.16-rc1","v2.6.15-rc7","v2.6.15-rc5","v2.6.15-rc4","v2.6.15-rc2","v2.6.15-rc1","v2.6.14-rc3","v2.6.14-rc2","v2.6.14-rc1","v2.6.13","v2.6.13-rc7","v2.6.13-rc6","v2.6.13-rc5","v2.6.13-rc3","v2.6.13-rc4","v2.6.13-rc2","v2.6.13-rc1","v2.6.12-rc4","v2.6.12-rc3","v2.6.12-rc2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38582.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/06afce714d87c7cd1dcfccbcd800c5c5d2cf1cfd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1c3844c5f4eac043954ebf6403fa9fd1f0e9c1c0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6e5c8e8e024e147b834f56f2115aad241433679b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/911d38be151921a5d152bb55e81fd752384c6830"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a8799662fed1f8747edae87a1937549288baca6a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bc9cee50a4a4ca23bdc49f75ea8242d8a2193b3b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c516db6ab9eabbedbc430b4f93b0d8728e9b427f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb85dace897c5986bc2f36b3c783c6abb8a4292e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eff7cdf890b02596b8d73e910bdbdd489175dbdb"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38582.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38582"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38582.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}