First published: Sat Aug 17 2024(Updated: )
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.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel | >=6.2<6.6.44 | |
Linux Kernel | >=6.7<6.10.3 | |
debian/linux | <=5.10.223-1 | 5.10.234-1 6.1.129-1 6.1.133-1 6.12.22-1 |
debian/linux-6.1 | 6.1.129-1~deb11u1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-42315 is classified as a moderate severity vulnerability due to the potential for deadlocks in the Linux kernel.
To fix CVE-2024-42315, upgrade to a patched version of the Linux kernel, such as 6.1.123-1, 6.12.10-1, or 6.12.11-1.
CVE-2024-42315 affects specific versions of the Linux kernel, including versions between 6.2 and 6.6.44 and 6.7 to 6.10.3.
The impact of CVE-2024-42315 includes potential deadlock situations when accessing files with excessive entries.
There are no documented workarounds for CVE-2024-42315; updating the kernel is recommended for a fix.