In the Linux kernel, the following vulnerability has been resolved: dm mpath: fix buffer overflow in parse_hw_handler() parse_hw_handler() builds the hw_handler parameter string in a buffer sized with len = 4; plus one byte per argument. Those four bytes were meant for the decimal form of the parameter count, three digits plus the terminating NUL. dm_read_arg_group() accepts up to 1024 arguments and the count written is 'hw_argc - 1', so a count of 1000 or more needs four digits plus the NUL and sprintf() writes one byte past the allocation. Size the buffer from the actual string length instead.
https://git.kernel.org/stable/c/a375493b05df8ebaba1d1c8b0f3675f02f702516
https://git.kernel.org/stable/c/8f611fe94a781c6fb658488cc7eab4e4923e6df6
https://git.kernel.org/stable/c/80d03a97ae9e5f77b205aee21a95020865247f10
https://git.kernel.org/stable/c/7736414b9b731b51760d66ed233abeb0706e506f
https://git.kernel.org/stable/c/4bd198db209c70c4f89e9243df9b34db413e73de
https://git.kernel.org/stable/c/09661f71e3d7949a1de07703c44294e9bf31187c