{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-57940","id":"CVE-2024-57940","title":"exfat: fix the infinite loop in exfat_readdir()","description":"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 < max_dentries' unable to prevent an infinite\nloop.\n\nThis infinite loop cau","descriptionLong":"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 < 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.","published":"2025-01-21T12:18:09.150Z","updated":"2026-10-28T02:30:48.767744850Z","reserved":"2025-01-19T11:50:08.378Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ca06197382bde0a3bc20215595d1c9ce20c6e341","lessThan":"d8cfbb8723bd3d3222f360227a1cc15227189ca6","status":"affected","versionType":"git"},{"version":"ca06197382bde0a3bc20215595d1c9ce20c6e341","lessThan":"28c21f0ac5293a4bf19b3e0e32005d6dd31a6c17","status":"affected","versionType":"git"},{"version":"ca06197382bde0a3bc20215595d1c9ce20c6e341","lessThan":"31beabd0f47f8c3ed9965ba861c9e5b252d4920a","status":"affected","versionType":"git"},{"version":"ca06197382bde0a3bc20215595d1c9ce20c6e341","lessThan":"dc1d7afceb982e8f666e70a582e6b5aa806de063","status":"affected","versionType":"git"},{"version":"ca06197382bde0a3bc20215595d1c9ce20c6e341","lessThan":"d9ea94f5cd117d56e573696d0045ab3044185a15","status":"affected","versionType":"git"},{"version":"ca06197382bde0a3bc20215595d1c9ce20c6e341","lessThan":"fee873761bd978d077d8c55334b4966ac4cb7b59","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","lessThan":"5.7","status":"unaffected","versionType":"semver"},{"version":"5.10.234","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.177","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.125","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.72","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.10","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-835"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/d8cfbb8723bd3d3222f360227a1cc15227189ca6","tags":["web"]},{"url":"https://git.kernel.org/stable/c/28c21f0ac5293a4bf19b3e0e32005d6dd31a6c17","tags":["web"]},{"url":"https://git.kernel.org/stable/c/31beabd0f47f8c3ed9965ba861c9e5b252d4920a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/dc1d7afceb982e8f666e70a582e6b5aa806de063","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d9ea94f5cd117d56e573696d0045ab3044185a15","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fee873761bd978d077d8c55334b4966ac4cb7b59","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-503939.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57940.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57940","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00225,"epssPercentile":0.13289,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-57940","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57940","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-57940","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-57940","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}