md/raid10: check slab-out-of-bounds in md_bitmap_get_counter
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ef4256733506f2459a0c436b62267d22a3f0cec6 · < 152bb26796ff054af50b2ee1b3ca56e364e4f61b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
md/raid10: check slab-out-of-bounds in md_bitmap_get_counter
If we write a large number to md/bitmap_set_bits, md_bitmap_checkpage() will return -EINVAL because 'page >= bitmap->pages', but the return value was not checked immediately in md_bitmap_get_counter() in order to set *blocks value and slab-out-of-bounds occurs.
Move check of 'page >= bitmap->pages' to md_bitmap_get_counter() and return directly if true.
From the CVE record · Linux
The Linux kernel’s md/raid10 bitmap handling does not immediately check an error from md_bitmap_checkpage(). Someone able to write a large number to md/bitmap_set_bits can trigger a slab out-of-bounds access; the input does not specify authentication or privilege requirements.
Engineers running Linux kernels with md/raid10 bitmap handling should check their versions; affected versions are not specified.