exfat: fix the infinite loop in exfat_readdir()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ca06197382bde0a3bc20215595d1c9ce20c6e341 · < fee873761bd978d077d8c55334b4966ac4cb7b59| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's exfat_readdir() can enter an infinite loop when it reads a corrupted exFAT filesystem with a cluster linked to itself and an unused directory entry. An attacker who can cause the kernel to read such a filesystem could leave a lock held and hang other tasks. The input does not specify whether authentication or user interaction is required.
Anyone running the Linux kernel with exFAT support should check their version; affected versions are not specified.