block: avoid possible overflow for chunk_sectors check in blk_stack_limits()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 22ada802ede89829dd010a317d9b812b7df7111a · < 5e276e6ff9aacf8901b9c3265c3cdd2568c9fff2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
block: avoid possible overflow for chunk_sectors check in blk_stack_limits()
In blk_stack_limits(), we check that the t->chunk_sectors value is a multiple of the t->physical_block_size value.
However, by finding the chunk_sectors value in bytes, we may overflow the unsigned int which holds chunk_sectors, so change the check to be based on sectors.
From the CVE record · Linux
The Linux kernel's blk_stack_limits() can overflow an unsigned integer when it converts chunk_sectors to bytes to check whether it is a multiple of physical_block_size. This can make the validation incorrect. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running the Linux kernel should check their deployments; affected versions were not provided.