aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorJiri Kosina <[email protected]>2014-08-21 09:57:17 -0500
committerJiri Kosina <[email protected]>2014-08-21 10:43:06 -0500
commitad3e14d7c5268c2e24477c6ef54bbdf88add5d36 (patch)
tree16cca10139ef4caef5287bf5e7c4618da826d999 /net/lapb/lapb_subr.c
parent51217e69697fba92a06e07e16f55c9a52d8e8945 (diff)
HID: logitech: perform bounds checking on device_id early enough
device_index is a char type and the size of paired_dj_deivces is 7 elements, therefore proper bounds checking has to be applied to device_index before it is used. We are currently performing the bounds checking in logi_dj_recv_add_djhid_device(), which is too late, as malicious device could send REPORT_TYPE_NOTIF_DEVICE_UNPAIRED early enough and trigger the problem in one of the report forwarding functions called from logi_dj_raw_event(). Fix this by performing the check at the earliest possible ocasion in logi_dj_raw_event(). Cc: [email protected] Reported-by: Ben Hawkes <[email protected]> Reviewed-by: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions