CWE
667
Advisory Published
Updated

CVE-2024-42315: exfat: fix potential deadlock on __exfat_get_dentry_set

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-42315?

    CVE-2024-42315 is classified as a moderate severity vulnerability due to the potential for deadlocks in the Linux kernel.

  • How do I fix CVE-2024-42315?

    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.

  • What systems are affected by CVE-2024-42315?

    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.

  • What is the impact of CVE-2024-42315?

    The impact of CVE-2024-42315 includes potential deadlock situations when accessing files with excessive entries.

  • Is there a workaround for CVE-2024-42315?

    There are no documented workarounds for CVE-2024-42315; updating the kernel is recommended for a fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203