fs/ntfs3: validate BOOT sectors_per_clusters
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:
fs/ntfs3: validate BOOT sectors_per_clusters
When the NTFS BOOT sectors_per_clusters field is > 0x80, it represents a shift value. Make sure that the shift value is not too large before using it (NTFS max cluster size is 2MB). Return -EVINVAL if it too large.
This prevents negative shift values and shift values that are larger than the field size.
Prevents this UBSAN error:
UBSAN: shift-out-of-bounds in ../fs/ntfs3/super.c:673:16 shift exponent -192 is negative
From the CVE record · Linux
The Linux kernel's ntfs3 driver does not adequately validate the NTFS BOOT sectors_per_clusters field. A BOOT sector with an oversized shift value can trigger a shift-out-of-bounds error when processed; the input does not specify attacker access or user-interaction requirements.
Engineers running Linux kernels with the ntfs3 filesystem driver should check whether their kernel is affected; affected versions are not specified.