{"id":"CVE-2024-57940","summary":"exfat: fix the infinite loop in exfat_readdir()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nexfat: fix the infinite loop in exfat_readdir()\n\nIf the file system is corrupted so that a cluster is linked to\nitself in the cluster chain, and there is an unused directory\nentry in the cluster, 'dentry' will not be incremented, causing\ncondition 'dentry \u003c max_dentries' unable to prevent an infinite\nloop.\n\nThis infinite loop causes s_lock not to be released, and other\ntasks will hang, such as exfat_sync_fs().\n\nThis commit stops traversing the cluster chain when there is unused\ndirectory entry in the cluster to avoid this infinite loop.","modified":"2026-04-02T12:25:24.006796Z","published":"2025-01-21T12:18:09.150Z","related":["MGASA-2025-0030","MGASA-2025-0032","SUSE-SU-2025:0289-1","SUSE-SU-2025:0428-1","SUSE-SU-2025:0499-1","SUSE-SU-2025:0557-1","SUSE-SU-2025:20165-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20248-1","SUSE-SU-2025:20249-1","USN-7379-2","USN-7380-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57940.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/28c21f0ac5293a4bf19b3e0e32005d6dd31a6c17"},{"type":"WEB","url":"https://git.kernel.org/stable/c/31beabd0f47f8c3ed9965ba861c9e5b252d4920a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d8cfbb8723bd3d3222f360227a1cc15227189ca6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d9ea94f5cd117d56e573696d0045ab3044185a15"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dc1d7afceb982e8f666e70a582e6b5aa806de063"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fee873761bd978d077d8c55334b4966ac4cb7b59"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57940.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57940"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ca06197382bde0a3bc20215595d1c9ce20c6e341"},{"fixed":"d8cfbb8723bd3d3222f360227a1cc15227189ca6"},{"fixed":"28c21f0ac5293a4bf19b3e0e32005d6dd31a6c17"},{"fixed":"31beabd0f47f8c3ed9965ba861c9e5b252d4920a"},{"fixed":"dc1d7afceb982e8f666e70a582e6b5aa806de063"},{"fixed":"d9ea94f5cd117d56e573696d0045ab3044185a15"},{"fixed":"fee873761bd978d077d8c55334b4966ac4cb7b59"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57940.json"}}],"schema_version":"1.7.5"}