aboutsummaryrefslogtreecommitdiffstats
path: root/fw/CANDIDATE-SYSDRV-104D-PROPERTY-KEY-PREFIX.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-SYSDRV-104D-PROPERTY-KEY-PREFIX.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-SYSDRV-104D-PROPERTY-KEY-PREFIX.md')
-rw-r--r--fw/CANDIDATE-SYSDRV-104D-PROPERTY-KEY-PREFIX.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/fw/CANDIDATE-SYSDRV-104D-PROPERTY-KEY-PREFIX.md b/fw/CANDIDATE-SYSDRV-104D-PROPERTY-KEY-PREFIX.md
new file mode 100644
index 0000000..5a5d10b
--- /dev/null
+++ b/fw/CANDIDATE-SYSDRV-104D-PROPERTY-KEY-PREFIX.md
@@ -0,0 +1,37 @@
+# Free SYS_DRV `.54` `0x104D`: property lookup accepts a shorter key prefix
+
+**Signed-code lookup semantic defect, no demonstrated security impact.**
+The free dispatcher passes a role-validated input pair `(msg[2],msg[3])`
+and selector `msg[14]` through `sub_E1E7A4 → sub_E0B380 → sub_E09D70`.
+Selector `-3` chooses SYS_DRV's **signed ELF-embedded** property table
+at `0xE00100`, not an ASD/other-client private property table. Selector
+`-1` uses an `SVC 0x81`-derived context subject to a separate zero
+argument gate; it was not emulated. Signed sOS `.54` `sub_59E8`
+case `129-81=48` sends its **current process index** (loaded from
+`*(_DWORD *)*off_5DE0`) to `sub_2A34`, which checks the process slot
+via `sub_1978` and returns that process image's 1-MiB-aligned base.
+Thus the `-1` path's `base+0x100` is not an arbitrary
+GCP-selected other-TA property base on this inspected route. The
+real sOS process descriptor and natural property bytes are unmeasured.
+
+`sub_E09D70` bounds request length at `0x80` and verifies stored
+record lengths and the table's end, but compares exactly **the caller's
+length**, not the stored key length (`record[2]`). It never requires
+`caller_length == record[2]`. Therefore a prefix of a property name
+can select its record. The wrapper returns only the first four bytes
+of a result if its record type is **1**, and returns an error for
+other types. Its local output scratch reserves `0x84` bytes for the
+bounded copy; this is not evidence of a stack overwrite. The embedded
+first `gpd.tee.deviceID` record is type 4, **not** a type-1 value
+returned by this path; no device-ID value is reproduced here.
+
+`psp_emu/harness/probe_sysdrv_104d_property_prefix.py` passed on the
+signed `.54` dispatcher: both the complete embedded type-1 property
+name `gpd.tee.systemTime.protectionLevel` plus NUL and its shorter
+`gpd.tee.systemTime.` prefix returned success and identical **redacted**
+four-byte outputs. An unknown name and an empty prefix failed. This
+uses an ELF-embedded property, synthetic caller descriptor, and
+emulator default-success init SVCs, with no card request. It proves a
+prefix-match behavior, not that a sensitive property is disclosed or a
+signed client uses such a partial key. The role's declared input span
+is respected; output is inline at `msg[15]`.