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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Attack-surface re-evaluation from GCP (current, post-retraction)
Honest re-assessment of what a compromised GCP TA actually buys, after retracting the SYS_DRV
control-flow-hijack claim (that was self-corruption of our own ROP chain).
## 1. What we definitely HAVE (verified on silicon)
* **Full code execution inside GCP** (type-5 TA) via FE0A sel-4 chosen-write -> ROP. Repeatable,
ring survives, graceful return. We own GCP's address space `~0x400000-0x41c000`.
* **`svc 0xf2` to SYS_DRV (svc1) and ASD (svc2)** from GCP ROP (oracle-validated: controls
`0x1021` REACHED / `0x3103` ACL-REJECTED landed correctly).
* **SYS_DRV crypto + free-opcode surface executes**: `TEE_AllocateOperation(SHA256)` returns handle
`0x10`; two-svc chain shows context persistence (`0x10` then `0x11`).
## 2. Reachable from GCP -- and why each is CAPPED
| surface | reachable | cap / outcome |
|---|---|---|
| SYS_DRV crypto dispatcher (`<0x1000`, ~50 ops) | YES, no ACL | TA-scoped crypto, host/generated keys only (NO device key -- audited); memory-safety spot-audited bounded; = `fuzz_sysdrv` ground |
| SYS_DRV free high opcodes (164: `0x100a-0x10a4`,`0x4013-5`,`0x1-0x9`) | YES | ~84 inert stubs/getters; reg/map/protect ops all fixed/bounded/validated; = already-audited surface |
| confused-deputy crypto **buffer write** | YES | buffer VA validated vs GCP but stored in SYS_DRV ctx. In the SHARED client region -> writes GCP's OWN memory (no gain). GCP-mapped-but-SYS_DRV-unmapped VA -> **SYS_DRV data-abort = DoS** (crash, not controlled write) |
| ASD service-2 | YES | surface uniformly validated (no primitive found) |
## 3. NOT reachable from GCP (the wall) -- the opcode ACL
`svc 0x76` checks the REAL caller's (GCP type-5) caps; GCP holds **none** of the gated range masks.
So all the high-value SYS_DRV primitives are ACL-rejected (`0xffff0001`) from GCP:
* overflow `0x3102/0x3103`; **OTP/fuse read `0x6001`**; **SMN MMIO-write `0x6002`**; TA reg access
`0x70xx`; ranges `0x1100/0x2000/0x3000/0x3100/0x4000/0x6000/0x7000/0x8000`.
* `0x105d` spirom_xfer is ACL-free but inert standalone (needs the one-shot `0x1006` orchestrator
setup; `.54` fixed the TMR window; post-boot latched).
Net: **GCP -> SYS_DRV gives ungated crypto + free opcodes (bounded/audited) + a DoS, and nothing
more.** The fuse/MMIO/overflow primitives require a caller that HOLDS the caps -- POWERPLAY (`0x60xx`)
or RAS (`0x70xx`), not GCP.
## 4. Remaining HIGH-VALUE avenues (ranked, honest)
### (A) GCP's OWN address space -- unexplored, needs NO escalation [highest value]
We already have code execution in GCP, and GCP is the **content-protection / crypto-session TA**
(FE07/08/09/0A/0C = crypto sessions, codec/HDCP). Whatever keys / device-bound secrets / provisioned
material GCP loads or derives live in GCP's memory `0x400000-0x41c000`, directly dumpable by our ROP.
This is the one place a device secret is reachable WITHOUT defeating the ACL or the marshaling. **Have
not yet dumped/triaged GCP's own memory for keys.** -> dump GCP's data/BSS + any CCP/keyladder outputs
it holds; that is the most promising concrete win and it is entirely within our existing primitive.
### (B) Lateral to POWERPLAY / RAS -- to reach the gated primitives
The OTP read (`0x6001`), MMIO write (`0x6002`), reg access (`0x70xx`) are reachable only from a TA
holding those caps. POWERPLAY emits `0x60xx`, RAS emits `0x70xx`. A bug in POWERPLAY or RAS (or a way
to make GCP impersonate them) would unlock fuses/MMIO. Needs a separate POWERPLAY/RAS vuln; not
reachable from GCP's caps.
### (C) Confirmed GCP->SYS_DRV DoS -- a real but low-severity bug
The confused-deputy write-fault (validate-vs-GCP / store-in-SYS_DRV, unmapped VA) reliably crashes
SYS_DRV from GCP. Worth writing up as a confused-deputy DoS finding; not an escalation.
### (D) Exhaustive memory-safety of the reachable crypto + free surface
Spot-audited clean; a coverage-guided `fuzz_sysdrv` re-run over exactly the GCP-reachable opcode set
could surface an outlier handler that breaks the uniform check-before-copy discipline. Low probability
but cheap.
### (E) Widen the `svc 0xf2` reach / escape the window
`tcb[16]=TA_end` sets the arg-window top; if a ROP'd GCP could grow it past `0x800000` toward SYS_DRV
code/globals, buffer ops could read/write SYS_DRV directly. Unvetted; likely hard (fixed at process
setup).
## 5. One-line verdict
From GCP we have a strong foothold but a **capability-capped** reach into SYS_DRV (ungated crypto +
free opcodes + DoS). The realistic next win is **(A) harvest GCP's own in-process secrets** (no
escalation needed); the path to the fuse/MMIO crown jewels runs through **(B) POWERPLAY/RAS**, not GCP.
|