padata: use integer wrap around to prevent deadlock on seq_nr overflow
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bfde23ce200e6d33291d29b9b8b60cc2f30f0805 · < 1bd712de96ad7167fe0d608e706cd60587579f16| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
padata: use integer wrap around to prevent deadlock on seq_nr overflow
When submitting more than 2^32 padata objects to padata_do_serial, the current sorting implementation incorrectly sorts padata objects with overflowed seq_nr, causing them to be placed before existing objects in the reorder list. This leads to a deadlock in the serialization process as padata_find_next cannot match padata->seq_nr and pd->processed because the padata instance with overflowed seq_nr will be selected next.
To fix this, we use an unsigned integer wrap around to correctly sort padata objects in scenarios with integer overflow.
From the CVE record · Linux
The Linux kernel's padata sorting logic mishandles sequence-number overflow. After more than 2^32 objects are submitted to padata_do_serial, objects can be ordered incorrectly, causing serialization to deadlock. The input does not specify access or user-interaction requirements.
Operators running Linux kernels with the affected padata sorting logic should check their versions against the vendor advisory; affected versions are not specified here.