Message ID | 74db5889.1519.181f54412b2.Coremail.sohu0106@126.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | oob read in do_adb_query function | expand |
diff --git a/adb.c b/adb.c_patch index 73b3961..8a5604b 100644 --- a/adb.c +++ b/adb.c_patch @@ -647,7 +647,7 @@ do_adb_query(struct adb_request *req) switch(req->data[1]) { case ADB_QUERY_GETDEVINFO: - if (req->nbytes < 3) + if (req->nbytes < 3 || req->data[2] > 16) break; mutex_lock(&adb_handler_mutex);