Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected ef4256733506f2459a0c436b62267d22a3f0cec6 before 374fb914304d9b500721007f3837ea8f1f9a2418; affected ef4256733506f2459a0c436b62267d22a3f0cec6 before b0b971fe7d61411ede63c3291764dbde1577ef2c; affected ef4256733506f2459a0c436b62267d22a3f0cec6 before 39fa14e824acfd470db4f42c354297456bd82b53; affected ef4256733506f2459a0c436b62267d22a3f0cec6 before a134dd582c0d5b6068efa308bd485cf1d00b3f65; affected ef4256733506f2459a0c436b62267d22a3f0cec6 before be1a3ec63a840cc9e59a033acf154f56255699a1; affected ef4256733506f2459a0c436b62267d22a3f0cec6 before 152bb26796ff054af50b2ee1b3ca56e364e4f61b; affected ef4256733506f2459a0c436b62267d22a3f0cec6 before bea301c046110bf421a3ce153fb868cb8d618e90; affected ef4256733506f2459a0c436b62267d22a3f0cec6 before 301867b1c16805aebbc306aafa6ecdc68b73c7e5 |
| Linux / Linux | affected 2.6.36; unaffected 0 before 2.6.36; unaffected 4.19.291 through 4.19.*; unaffected 5.4.251 through 5.4.*; unaffected 5.10.188 through 5.10.*; unaffected 5.15.121 through 5.15.*; unaffected 6.1.39 through 6.1.*; unaffected 6.3.13 through 6.3.*; unaffected 6.4.4 through 6.4.*; unaffected 6.5 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/374fb914304d9b500721007f3837ea8f1f9a2418
- https://git.kernel.org/stable/c/b0b971fe7d61411ede63c3291764dbde1577ef2c
- https://git.kernel.org/stable/c/39fa14e824acfd470db4f42c354297456bd82b53
- https://git.kernel.org/stable/c/a134dd582c0d5b6068efa308bd485cf1d00b3f65
- https://git.kernel.org/stable/c/be1a3ec63a840cc9e59a033acf154f56255699a1
- https://git.kernel.org/stable/c/152bb26796ff054af50b2ee1b3ca56e364e4f61b
- https://git.kernel.org/stable/c/bea301c046110bf421a3ce153fb868cb8d618e90
- https://git.kernel.org/stable/c/301867b1c16805aebbc306aafa6ecdc68b73c7e5
ADP enrichment
No English description supplied.
No references supplied.