CVE-2024-42315
Last modified
CVE-2024-42315 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: exfat: fix potential deadlock on __exfat_get_dentry_set When accessing a file with more entries than ES_MAX_ENTRY_NUM, the bh-array is allocated in __exfat_get_entry_set. The problem is that the bh-array is allocated with GFP_KERNEL. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: exfat: fix potential deadlock on __exfat_get_dentry_set When accessing a file with more entries than ES_MAX_ENTRY_NUM, the bh-array is allocated in __exfat_get_entry_set. The problem is that the bh-array is allocated with GFP_KERNEL. It does not make sense. In the following cases, a deadlock for sbi->s_lock between the two processes may occur. CPU0 CPU1 ---- ---- kswapd balance_pgdat lock(fs_reclaim) exfat_iterate lock(&sbi->s_lock) exfat_readdir exfat_get_uniname_from_ext_entry exfat_get_dentry_set __exfat_get_dentry_set kmalloc_array ... lock(fs_reclaim) ... evict exfat_evict_inode lock(&sbi->s_lock) To fix this, let's allocate bh-array with GFP_NOFS.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.2, < 6.6.44 |
| Linux | Linux Kernel | >= 6.7, < 6.10.3 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-42315?
How severe is CVE-2024-42315?
How do I fix CVE-2024-42315?
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-4231This vulnerability exists in Digisol Router (DG-GR1321: Hard…6.8
- CVE-2024-42310In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42311In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42312In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42313In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-42314In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-42316In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42317In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42318In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42319In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-4232This vulnerability exists in Digisol Router (DG-GR1321: Hard…5.4
- CVE-2024-42320In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-42315?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
