Reject external connect: requests.
authorShaju Mathew <shaju@google.com>
Sat, 25 Jun 2022 14:57:31 +0000 (14:57 +0000)
committerRoger Shimizu <rosh@debian.org>
Fri, 20 Jan 2023 08:36:41 +0000 (08:36 +0000)
commit1ebbc8d787f9ccf19e32ec24c3c71b90ecc8d6da
tree728ae0f87c3861e0e60e449322121eb8ba4013e7
parentc87bb53a5454b95c61a75adb83eb3135288898b8
Reject external connect: requests.

Steps:
  1. Track forward:reverse config in a data-structure.
  2. connect_to_remote() examines each socket transport and updates
    this data-structure.
  3. handle_packet() takes appropriate action
    (abort) for an unknown connect: request originating from the device.

Bug:205286508

Test: treehugger

Signed-off-by: jmgao <jmgao@fb.com>
Change-Id: I0ec7d6f8e60afc2ee5d1be2b63bf90ca99443a52

Gbp-Pq: Topic cve
Gbp-Pq: Name CVE-2022-3168.patch
system/core/adb/adb.cpp
system/core/adb/sockets.cpp
system/core/adb/transport.cpp
system/core/adb/transport.h