CVE-2024-57940 Details
Description
In the Linux kernel, the following vulnerability has been resolved: exfat: fix the infinite loop in exfat_readdir() If the file system is corrupted so that a cluster is linked to itself in the cluster chain, and there is an unused directory entry in the cluster, 'dentry' will not be incremented, causing condition 'dentry < max_dentries' unable to prevent an infinite loop. This infinite loop causes s_lock not to be released, and other tasks will hang, such as exfat_sync_fs(). This commit stops traversing the cluster chain when there is unused directory entry in the cluster to avoid this infinite loop.
An infinite loop vulnerability has been identified in the Linux kernel's exFAT file system implementation, specifically within the 'exfat_readdir()' function. This issue arises when a corrupted file system creates a cluster that links to itself, leaving an unused directory entry. In such cases, the 'dentry' variable fails to increment, allowing the condition 'dentry < max_dentries' to bypass the loop, leading to an infinite iteration. Consequently, the 's_lock' is not released, causing other tasks, like 'exfat_sync_fs()', to hang. The vulnerability affects several versions of the Linux kernel that include the flawed exFAT implementation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.7, < 6.1.125 >= 6.2, < 6.6.72 >= 6.7, < 6.12.10 6.13 rc1 6.13 rc2 6.13 rc3 6.13 rc4 6.13 rc5 6.13 rc6 |
CPE
Remediation
| |
Change History
11 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | siemens-SADP |
| Oct 15, 2026 | CVE Modified | CVE |
| Oct 15, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | siemens-SADP |
| May 12, 2026 | CVE Modified | siemens-SADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Feb 2, 2025 | CVE Modified | kernel.org |
| Jan 23, 2025 | CVE Modified | kernel.org |
| Jan 22, 2025 | Initial Analysis | [email protected] |
| Jan 21, 2025 | New CVE Received | kernel.org |