aboutsummaryrefslogtreecommitdiffstats
path: root/fw/CANDIDATE-GCP-SYSDRV-35-IGNORED-RNG-FAILURE.md
diff options
context:
space:
mode:
authoruser <user@clank>2026-10-09 16:11:31 +0200
committeruser <user@clank>2026-10-09 16:11:31 +0200
commitbc43149d914325e15dc0490dee9d982e21287623 (patch)
treea632cf70de742d5a60d01c9c0d806bf5b9257538 /fw/CANDIDATE-GCP-SYSDRV-35-IGNORED-RNG-FAILURE.md
parentGCP->ASD 0x403: ASD-internal chain PROVEN end-to-end in emulator (real handlers) (diff)
downloadamd-psp-re-main.tar.gz
amd-psp-re-main.tar.xz
amd-psp-re-main.zip
Record PSP security investigation artifacts and probesHEADmain
Diffstat (limited to 'fw/CANDIDATE-GCP-SYSDRV-35-IGNORED-RNG-FAILURE.md')
-rw-r--r--fw/CANDIDATE-GCP-SYSDRV-35-IGNORED-RNG-FAILURE.md43
1 files changed, 43 insertions, 0 deletions
diff --git a/fw/CANDIDATE-GCP-SYSDRV-35-IGNORED-RNG-FAILURE.md b/fw/CANDIDATE-GCP-SYSDRV-35-IGNORED-RNG-FAILURE.md
new file mode 100644
index 0000000..2f363c8
--- /dev/null
+++ b/fw/CANDIDATE-GCP-SYSDRV-35-IGNORED-RNG-FAILURE.md
@@ -0,0 +1,43 @@
+# SYS_DRV `.54` low `0x35`: entropy failure ignored by dispatcher
+
+**Signed-code error-propagation bug, demonstrated with modeled entropy;
+no natural card RNG failure or downstream security impact.** Low
+`sub_E1DC30` case **decimal 53 / hex `0x35`** calls
+`sub_E1E184(msg+2)` then **returns the caller-independent zero
+`v5`**, discarding the helper's status. This is not the separate
+hex-`0x53` logging opcode. The role row at `0xE25990` marks its
+`msg[2]/[3]` as a validated output pair. `sub_E1E184` returns
+`sub_E04F38(out,declared_length)`. That helper fills the output in
+four-byte chunks from `sub_E0BA34`; when entropy fails, it returns
+`0xFFFF000B`, potentially after writing some chunks. For an exact
+multiple of four bytes it also requests **one extra entropy word
+after the entire declared output was filled**, so even the helper's
+own result can fail after complete output. A zero-length request
+likewise attempts one entropy fetch. None of this implies an OOB
+store: the copy loop itself stays within the declared length.
+
+`psp_emu/harness/probe_sysdrv_35_ignored_rng_failure.py` passed on
+signed `.54` with only `sub_E0BA34` modeled (no real RNG bytes
+printed). Direct signed `sub_E04F38(out,4)` returned `0xFFFF000B`
+when the modeled first entropy fetch failed and left the synthetic
+marker untouched. The **signed dispatcher** returned **0** for that
+same first-fetch failure, still leaving the marker untouched. With
+one successful modeled word followed by a failed extra fetch, the
+entire four-byte output changed but dispatcher still returned 0;
+two successful words produced the same output and return. The
+emulator's signed default init left RNG-enable byte `0xE269B8=1`;
+no natural failed RNG request was reproduced or inferred from this
+model. Failure paths exist in signed `sub_E0BA34`: disabled gate,
+zero entropy sample, or status bit `0x20000000` set.
+
+A signed client consumer has since been identified: ASD `.163`
+`0x1A1` can call low `0x35` for a zero-initialized 16-byte buffer
+and, in a conditional ASIC-20/25 type-6 path, copy the result to
+a signed HDCP `.57` caller even if the underlying first entropy
+fetch failed (`fw/CANDIDATE-HDCP57-ASD1A1-IGNORED-ENTROPY-FAILURE.md`).
+The prefix was tested only with a modeled failed RPC and intercepted
+memcpy. A **real** failed condition, paired active clients,
+protected-session acceptance, live status, and cryptographic impact
+remain **unproved**. The four-byte marker was synthetic
+GCP-owned memory, not leaked RNG output or another client's buffer.
+No card request was made.