CVE-2024-38582
Published: Jun 19, 2024
Modified: May 23, 2026
Description
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().
| Vendor | Product | Versions |
|---|---|---|
Linux | Linux | affected 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 - < 911d38be151921a5d152bb55e81fd752384c6830affected 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 - < bc9cee50a4a4ca23bdc49f75ea8242d8a2193b3baffected 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 - < eff7cdf890b02596b8d73e910bdbdd489175dbdbaffected 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 - < 06afce714d87c7cd1dcfccbcd800c5c5d2cf1cfdaffected 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 - < 1c3844c5f4eac043954ebf6403fa9fd1f0e9c1c0+16 more versions |
Linux | Linux | affected 3.19unaffected 0 - < 3.19unaffected 4.19.316 - <= 4.19.*unaffected 5.4.278 - <= 5.4.*unaffected 5.10.219 - <= 5.10.*+6 more versions |
References
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now