Please sign in to comment.
ipvs: Add boundary check on ioctl arguments
The ipvs code has a nifty system for doing the size of ioctl command copies; it defines an array with values into which it indexes the cmd to find the right length. Unfortunately, the ipvs code forgot to check if the cmd was in the range that the array provides, allowing for an index outside of the array, which then gives a "garbage" result into the length, which then gets used for copying into a stack buffer. Fix this by adding sanity checks on these as well as the copy size. [ email@example.com: adjusted limit to IP_VS_SO_GET_MAX ] Signed-off-by: Arjan van de Ven <firstname.lastname@example.org> Acked-by: Julian Anastasov <email@example.com> Signed-off-by: Simon Horman <firstname.lastname@example.org> Signed-off-by: Patrick McHardy <email@example.com>
- Loading branch information...