linux/net/bluetooth
Brian Gix 8819f93cd4 Bluetooth: refactor malicious adv data check
commit 899663be5e75dc0174dc8bda0b5e6826edf0b29a upstream.

Check for out-of-bound read was being performed at the end of while
num_reports loop, and would fill journal with false positives. Added
check to beginning of loop processing so that it doesn't get checked
after ptr has been advanced.

Signed-off-by: Brian Gix <brian.gix@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: syphyr <syphyr@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:23:02 +01:00
..
2018-05-26 09:16:44 +02:00
2015-07-30 13:31:59 +02:00
2015-07-30 13:31:59 +02:00
2021-05-22 10:59:21 +02:00
2017-09-01 22:49:47 +02:00
2018-09-26 12:39:32 +03:00