Files
JBJF 7949c7ce9f v2.0 — 31 C POC twins + harness fixes
- 31 C POC files, one per CVE folder: full seed construction + trigger +
  main(), self-contained, no app dependency. All compile clean with
  clang -O2 -Wall (zero warnings) on macOS arm64; each has a recorded
  oracle on this host.
- CMGetDMVersionLevelFromRPU ABI pinned by disassembly: macOS export is
  (CFDataRef), the Swift POC drives the 4-arg iOS surface — this is the
  mechanism behind the cm.rpu death oracle on the simulator build.
- Harness fixes: glyphCount guard, MachOInspector size guard, ModTools
  clamp, DeviceModel iPhone19,7, GPTPayload clamps, Gate patch display.
- POC comments rewritten English-only (31 swift + arc.rr + 5 py).
- README (en/zh): C twin column, .c anatomy section, compile/run
  examples, C oracle verification status.
- Dead if-let binding removed from Identity summary; v2.0 build 3.
2026-10-29 20:08:55 +08:00

29 lines
1.0 KiB
C

// kext.iohid · IOKit.framework · IOHIDEventAppendEvent · CVE-2026-65385
// HID event tree append entry point probe
// C twin of the Swift POC: dlopens IOKit and dlsyms the event-tree entry points
// (create/append/serialize/type/vendor-defined) the unbounded append lives behind.
// Build: clang -O2 -o cve-2026-65385 CVE-2026-65385.c
// Run: ./cve-2026-65385
#include <stdio.h>
#include <string.h>
#include <dlfcn.h>
int main(void) {
const char *syms[] = {
"IOHIDEventCreateCopy", "IOHIDEventAppendEvent", "IOHIDEventCreateData",
"IOHIDEventGetType", "IOHIDEventCreateVendorDefined",
};
void *h = dlopen("/System/Library/Frameworks/IOKit.framework/IOKit", RTLD_NOW);
if (!h) {
printf("x IOKit cannot be dlopened\n");
return 1;
}
printf("ok IOKit\n");
for (size_t i = 0; i < sizeof syms / sizeof syms[0]; i++) {
printf(" %s: %s\n", syms[i], dlsym(h, syms[i]) ? "resolved" : "missing");
}
printf("CVE-2026-65385 · IOHIDEvent append surface probed\n");
return 0;
}