Thread (6 messages) flat view 6 messages, 5 authors, 2022-07-29

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

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2022-07-13 16:44:06

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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help