CVE-2024-57940

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-57940
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57940.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-57940
Downstream
Related
Published
2025-01-21T13:15:08Z
Modified
2025-08-09T19:01:28Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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 slock not to be released, and other tasks will hang, such as exfatsync_fs().

This commit stops traversing the cluster chain when there is unused directory entry in the cluster to avoid this infinite loop.

References

Affected packages