CVE-2024-38582
MediumIn 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().
CVSS 3.1 score
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness type
CWE-667CVE-2024-38582 is a Improper Locking vulnerability
What is Improper Locking?
The product does not properly acquire or release a lock, which can lead to unexpected behaviour. Learn more on MITRE CWE
Affected versions
Linux kernel versions
3.2.68,
3.4.107,
3.10.69,
3.12.38,
3.14.33,
3.18.7,
3.19
and later are affected. Fixed in
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
and their respective stable series.
References
10 total-
Patch
-
Patch
-
Patch
-
Patch
-
Patch
Frequently asked questions
-
What is CVE-2024-38582?
CVE-2024-38582 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.3 out of 10 , classified as an Improper Locking flaw (CWE-667) . It affects Linux kernel versions from 3.2.68 onward and has been patched in 4.19.316, 5.4.278, 5.10.219 and others. CVE-2024-38582 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-38582?
CVE-2024-38582 has a CVSS score of 5.3 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L. -
Is there a patch available for CVE-2024-38582?
Yes. CVE-2024-38582 has been patched. Fixed versions include 4.19.316, 5.4.278, 5.10.219 and others. If you are running Linux kernel 3.2.68 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2024-38582 actively exploited?
No. CVE-2024-38582 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.