CVE-2024-38582 - CVE House
Back to Database
Status published Unknown CVE-2024-38582

nilfs2: fix potential hang in nilfs_detach_log_writer()

Vulnerability 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().

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-38582

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Linux
Vulnerable Versions:
7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, c23f3a9fa7826af0465b9408b186f6b555991890, 28cd54f27d309bd65db8ff4b8e6275345287484c, ec7cae16b37ab478d6d7e33e8563b24ca189e6cf, d26f2dfa556323787ee1ebd5d03aeaa8650c7404, 52e87609d9d3ea34cadb5676e8ea85d025ac9632, 7bb9e4a06e12583f1418b669dc45bb3ee84496c6, 3.2.68, 3.4.107, 3.10.69, 3.12.38, 3.14.33, 3.18.7, 3.19, 0, 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.93, 6.6.33, 6.8.12, 6.9.3, 6.10

Timeline

Official Publish: June 19th, 2024
Last Modified: May 23rd, 2026
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.