aboutsummaryrefslogtreecommitdiffstats
path: root/psp_out/FUZZING-RESULTS.md
blob: 8ccb9eaa4b9b0f80a0f951f3a80b173c940361f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Avenue 1 + 2 results: crypto-service trace and hardware fuzzing

## Avenue 1 (runtime-trace the sOS crypto service) — BLOCKED by the host/PSP boundary

The host cannot read PSP SRAM (sOS at 0x0..0x18280 is PSP-private; only C2PMSG
MMIO is host-visible). service_desc_table (@0xe4a8) is zeroed in the image and
populated at boot via SVC 0x74, so the service-1 task binding is only knowable at
runtime -- which the host cannot observe. Statically, sub_13448 was ruled out (it
dispatches on BYTE2(msg), not req[4]); a full-image decompile sweep for the
opcode-2 handler timed out, and the crypto is almost certainly CCP-hardware-backed.
Conclusion: not reachable for analysis from this vantage point. The one thing the
host CAN observe at runtime is the crash oracle -- which is avenue 2.

## Avenue 2 (crash-oracle hardware fuzzing) — ~2000 cases, ZERO memory-corruption faults

Detector: PSP fault dump in C2PMSG 82..88 (fires on any TA data-abort) +
is_sos_alive + timing. Two runs, two seeds (probe_fuzz1.py, probe_fuzz2.py):

  Run 1 (seed 0xC0FFEE): 996 cases across all 16 top-level HDCP commands +
    cmd 0x0F multi-subcommand framing (fuzzed descriptor ids/lengths, subcommand
    ids, slot indices incl. OOB, payloads). Crash oracle: NEVER fired.
  Run 2 (seed 0x1337BEEF): 995 cases, deep field fuzz of the unlocked subcommand
    parsers (3,6,7,8,10,12,17,18,20) with boundary descriptor lengths and random
    payloads. Crash oracle: NEVER fired.

Total ~1990 cases, 0 TA faults. This corroborates the static conclusion that
every reachable parser is bounds-checked.

### Two hang/DoS vectors found (not memory corruption)

  * cmd 0x01 (hdcp_cmd01_open) with certain devids: blocks ~10s (ring timeout),
    no fault, sOS alive -> asd_topology_query polls for an absent receiver.
  * subcmd 18 (sub_402A4C): same signature -- a blocking ASD RPC poll.
  Both are denial-of-service (wedge the ring until timeout, recoverable via PCIe
  retrain), NOT memory-safety issues. They fire only with specific field values.

## Net

Both avenues are now genuinely exhausted. Avenue 1 is architecturally out of
reach from the host. Avenue 2 fuzzed ~2000 cases with a real fault detector and
found no memory corruption -- only two recoverable DoS hangs. Combined with the
exhaustive static coverage, the conclusion stands: no new triggerable memory-
corruption bug in the host-reachable surface. The confirmed set (branch-B OOB,
session-state bypass, duplicate-devid logic bug, crash oracle) is the result.