exfat: fix divide-by-zero in exfat_allocate_bitmap
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
exfat: fix divide-by-zero in exfat_allocate_bitmap
The variable max_ra_count can be 0 in exfat_allocate_bitmap(), which causes a divide-by-zero error in the subsequent modulo operation (i % max_ra_count), leading to a system crash. When max_ra_count is 0, it means that readahead is not used. This patch load the bitmap without readahead.
From the CVE record · Linux
The Linux kernel's exFAT bitmap allocation can divide by zero when max_ra_count is 0, causing a system crash. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running the Linux kernel with exFAT support should check their deployments; affected versions are not specified.