Skip to main content
Network Thinking Solutions Logo

CVE-2024-57940

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.

All CVEs
CVE-2024-57940Published 1/21/2025

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.

Vendor advisory
CVSS5.5Medium

Overview

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.

Published
1/21/2025
Last modified
10/15/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.7, < 6.1.125

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.72

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.10

Verify advisory

Source
linux kernel
linux
6.13

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ ca06197382bde0a3bc20215595d1c9ce20c6e341, < d8cfbb8723bd3d3222f360227a1cc15227189ca6

Verify advisory

Source
Linux
Linux
≥ ca06197382bde0a3bc20215595d1c9ce20c6e341, < 28c21f0ac5293a4bf19b3e0e32005d6dd31a6c17

Verify advisory

Source
Linux
Linux
≥ ca06197382bde0a3bc20215595d1c9ce20c6e341, < 31beabd0f47f8c3ed9965ba861c9e5b252d4920a

Verify advisory

Source
Linux
Linux
≥ ca06197382bde0a3bc20215595d1c9ce20c6e341, < dc1d7afceb982e8f666e70a582e6b5aa806de063

Verify advisory

Source
Linux
Linux
≥ ca06197382bde0a3bc20215595d1c9ce20c6e341, < d9ea94f5cd117d56e573696d0045ab3044185a15

Verify advisory

Source
Linux
Linux
≥ ca06197382bde0a3bc20215595d1c9ce20c6e341, < fee873761bd978d077d8c55334b4966ac4cb7b59

Verify advisory

Source
Linux
Linux
5.7

Verify advisory

Source
SIMATIC S7-1500 TM MFP - BIOS
Siemens
< *

Verify advisory

Source
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
Siemens
< V1.1.1

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.