CVE-2024-38582
Last modified
CVE-2024-38582 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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().. EPSS estimates a 0.86% chance of exploitation in the next 30 days.
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().
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 4.19.316 |
| Linux | Linux Kernel | >= 4.20, < 5.4.278 |
| Linux | Linux Kernel | >= 5.5, < 5.10.219 |
| Linux | Linux Kernel | >= 5.11, < 5.15.161 |
| Linux | Linux Kernel | >= 5.16, < 6.1.93 |
| Linux | Linux Kernel | >= 6.2, < 6.6.33 |
| Linux | Linux Kernel | >= 6.7, < 6.8.12 |
| Linux | Linux Kernel | >= 6.9, < 6.9.3 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-38582?
How severe is CVE-2024-38582?
How do I fix CVE-2024-38582?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-38577In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-38578In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-38579In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-3858It was possible to mutate a JavaScript object so that the JI…7.5
- CVE-2024-38580In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2024-38581In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-38583In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-38584In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-38585In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2024-38586In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-38587In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-38588In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2024-38582?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
