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, 27 Jan 2023 05:43:52 +0000 (05:43 +0000)
commite562b7cbbf645c1b19b82bfd9ccb2cfeed77ace1
tree270221109618bdf8560ae78d11e940f6fdf32268
parentb5441b3b373db881c21cfa64f96ef752356e7146
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