PT-2025-3665 · Linux+8 · Linux Kernel+8

Published

2024-12-13

·

Updated

2025-10-03

·

CVE-2024-57940

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.6.74
Description The issue arises when a file system is corrupted, causing a cluster to be linked to itself in the cluster chain, and there is an unused directory entry in the cluster. This leads to an infinite loop in the exfat readdir() function because the dentry variable is not incremented, preventing the condition dentry < max dentries from stopping the loop. As a result, the s lock is not released, causing other tasks, such as exfat sync fs(), to hang. The fix involves stopping the traversal of the cluster chain when an unused directory entry is encountered to prevent the infinite loop.
Recommendations For Linux kernel versions prior to 6.6.74, update to version 6.6.74 or later to resolve the issue. As a temporary workaround, consider avoiding the use of corrupted file systems that could trigger the infinite loop in the exfat readdir() function until the update can be applied.

Exploit

Fix

Infinite Loop

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2025-12647
ALT-PU-2025-1861
ALT-PU-2025-1925
ALT-PU-2025-1980
ALT-PU-2025-3467
ALT-PU-2025-3500
AZL-55904
AZL-55910
BDU:2025-01868
CVE-2024-57940
DLA-4075-1
DLA-4076-1
DSA-5860-1
INFSA-2025_6966
MGASA-2025-0030
MGASA-2025-0032
OESA-2025-1110
OESA-2025-1111
OPENSUSE-SU-2025_0428-1
OPENSUSE-SU-2025_0499-1
OPENSUSE-SU-2025_0557-1
RHSA-2025:6966
RHSA-2025_6966
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
SUSE-SU-2025_0428-1
SUSE-SU-2025_0499-1
SUSE-SU-2025_0557-1
USN-7379-1
USN-7379-2
USN-7380-1
USN-7381-1
USN-7382-1
USN-7387-1
USN-7387-2
USN-7387-3
USN-7388-1
USN-7389-1
USN-7390-1
USN-7407-1
USN-7421-1
USN-7458-1
USN-7459-1
USN-7459-2
USN-7513-1
USN-7513-2
USN-7513-3
USN-7513-4
USN-7513-5
USN-7514-1
USN-7515-1
USN-7515-2
USN-7522-1
USN-7523-1
USN-7524-1

Affected Products

Alt Linux
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Hat
Red Os
Suse
Ubuntu