Re: [PATCH] macintosh:fix oob read in do_adb_query function

From
Greg KH <gregkh@linuxfoundation.org>
Date
2022-07-13 16:44:06
Reply to
Ning Qiang, 2022-07-13
On Wed, Jul 13, 2022 at 11:37:34PM +0800, Ning Qiang wrote:
In do_adb_query function of drivers/macintosh/adb.c, req->data is copy
form userland. the  parameter "req->data[2]" is Missing check, the
array size of adb_handler[] is 16, so "adb_handler[
req->data[2]].original_address" and "adb_handler[
req->data[2]].handler_id" will lead to oob read.

Signed-off-by: Ning Qiang <redacted>
Cc: stable <stable@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Thread (6 messages) 6 messages, 5 authors, last reply 2022-07-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help