Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Input: joydev - prevent potential read overflow in ioctl
The problem here is that "len" might be less than "joydev->nabs" so the loops which verfy abspam[i] and keypam[] might read beyond the buffer. Fixes: 999b874 ("Input: joydev - validate axis/button maps before clobbering current ones") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/YCyzR8WvFRw4HWw6@mwanda [dtor: additional check for len being even in joydev_handle_JSIOCSBTNMAP] Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
- Loading branch information