CVE-2024-57940CWE-835

CVE-2024-57940

Medium · published January 21, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
12.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00224 · 12.3th percentile
Weakness
CWE-835 · Loop with Unreachable Exit Condition ('Infinite Loop')
Published
2025-01-21T18:15Z
Affected products (9)
ProductVersionsFixed in
linux/linux_kernel≥ 5.7, < 6.1.1256.1.125
linux/linux_kernel≥ 6.2, < 6.6.726.6.72
linux/linux_kernel≥ 6.7, < 6.12.106.12.10
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (10)
EPSS history
Timeline
  • 21 JAN 12:18Z
    exfat: fix the infinite loop in exfat_readdir()
    cvelistv5