CVE-2024-42315
MediumIn 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.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-667CVE-2024-42315 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
5.10.190,
5.15.150,
6.2
and later are affected. Fixed in
5.10.232,
5.15.175,
6.6.44,
6.10.3,
6.11
and their respective stable series.
References
8 total-
Patch
-
Patch
-
Patch
-
-
Frequently asked questions
-
What is CVE-2024-42315?
CVE-2024-42315 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 , classified as an Improper Locking flaw (CWE-667) . It affects Linux kernel versions from 5.10.190 onward and has been patched in 5.10.232, 5.15.175, 6.6.44 and others. CVE-2024-42315 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-42315?
CVE-2024-42315 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2024-42315?
Yes. CVE-2024-42315 has been patched. Fixed versions include 5.10.232, 5.15.175, 6.6.44 and others. If you are running Linux kernel 5.10.190 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2024-42315 actively exploited?
No. CVE-2024-42315 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.