Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HID: roccat: add bounds checking in kone_sysfs_write_settings()
[ Upstream commit d4f98db ] This code doesn't check if "settings->startup_profile" is within bounds and that could result in an out of bounds array access. What the code does do is it checks if the settings can be written to the firmware, so it's possible that the firmware has a bounds check? It's safer and easier to verify when the bounds checking is done in the kernel. Fixes: 14bf62c ("HID: add driver for Roccat Kone gaming mouse") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information