ext4: check stripe size compatibility on remount as well
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:
ext4: check stripe size compatibility on remount as well
We disable stripe size in __ext4_fill_super if it is not a multiple of the cluster ratio however this check is missed when trying to remount. This can leave us with cases where stripe < cluster_ratio after remount:set making EXT4_B2C(sbi->s_stripe) become 0 that can cause some unforeseen bugs like divide by 0.
Fix that by adding the check in remount path as well.
From the CVE record · Linux
The Linux kernel’s ext4 remount path does not check whether the stripe size is compatible with the cluster ratio. Remounting with a stripe size smaller than the cluster ratio can lead to a divide-by-zero error. The input does not specify attacker access requirements or user interaction.
Teams running the Linux kernel with ext4 should check their systems; affected versions are not specified.