exfat: fix out-of-bounds access of directory entries
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
exfat: fix out-of-bounds access of directory entries
In the case of the directory size is greater than or equal to the cluster size, if start_clu becomes an EOF cluster(an invalid cluster) due to file system corruption, then the directory entry where ei->hint_femp.eidx hint is outside the directory, resulting in an out-of-bounds access, which may cause further file system corruption.
This commit adds a check for start_clu, if it is an invalid cluster, the file or directory will be treated as empty.
From the CVE record · Linux
The Linux kernel’s exFAT code can access directory entries out of bounds when filesystem corruption makes a directory’s starting cluster invalid and the directory is at least one cluster in size. This may cause further filesystem corruption. The input does not establish a network or authentication requirement or specify user interaction.
Engineers running Linux kernels with exFAT support should check their versions; affected versions were not specified.