CVE-2024-42315: exfat: fix potential deadlock on __exfat_get_dentry_set
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.
Security readout for executives and security teams
Plain-English summary
CVE-2024-42315 is a Linux kernel exFAT filesystem deadlock flaw. Under specific memory pressure and exFAT directory-access conditions, the kernel can hang while waiting on filesystem locks. The sources do not provide CVSS, CWE, or active-exploitation evidence.
Executive priority
Treat as a targeted stability risk, not an emergency exploitation item based on current evidence. Prioritize patching where exFAT media is common, such as endpoints, kiosks, forensic workstations, and file-transfer systems.
Technical view
In __exfat_get_dentry_set, bh-array allocation used GFP_KERNEL while sbi->s_lock could be held. Memory reclaim may re-enter exFAT inode eviction and wait on the same lock, causing deadlock. The kernel fix changes this allocation to GFP_NOFS.
Likely exposure
Exposure is most relevant to Linux systems that mount exFAT filesystems, including removable media or disk images. The bundle lists affected Linux kernel versions and stable commits, but does not provide CPEs or distribution-wide coverage beyond Debian LTS notices.
Exploitation context
The CVE source describes a potential deadlock, not code execution or privilege escalation. KEV is false, and the provided sources do not state active exploitation or public weaponization.
Researcher notes
Evidence supports a kernel deadlock caused by GFP_KERNEL allocation under exFAT locking during memory reclaim. The bundle lacks CVSS, CWE, exploitability detail, and precise downstream package mapping except Debian LTS references.
Mitigation direction
Apply vendor kernel updates containing the referenced stable exFAT fixes.
Review Debian LTS announcements if running Debian LTS kernel packages.
Restrict mounting untrusted exFAT media until patched where operationally feasible.
Check vendor guidance for exact fixed package versions and reboot requirements.
Validation and detection
Inventory Linux hosts that mount exFAT filesystems or accept removable media.
Confirm running kernels include the referenced stable commits or vendor fixed packages.
Check Debian LTS systems against the cited DLA kernel update notices.
Review incident records for unexplained hangs during exFAT directory access.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-42315 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.