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.
This commit is contained in:
JBJF committed 2026-10-29 20:08:55 +08:00
1 parent 1ea76ab005
commit 7949c7ce9f
79 files changed
+4109 -892

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
// 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;
}
+2 -16
View File
@@ -1,21 +1,8 @@
// kext.iohid · IOKit.framework · IOHIDEventAppendEvent · CVE-2026-65385
// 原语: OOB 写 · 内核 · tier 3
// Primitive: OOB write · kernel · tier 3
//
// [zh] IOKit 事件短堆固定偏移写
// 该缺陷的载体为用户态 IOKit.framework 而非 kext:IOHIDEventAppendEvent 在短堆事件上按固定偏移执行 OR 写。27.2 在 framework 内修复,
// 内核 __DATA_CONST 的 assert 表中不存在相关记录。
//
// [en] IOKit event short-heap fixed-offset write
// This defect's carrier is user-space IOKit.framework rather than a kext: IOHIDEventAppendEvent performs
// an OR write at a fixed offset on a short heap event. iOS 27.2 fixes it inside the framework; the
// kernel's __DATA_CONST assert table has no related record.
// ── 判别 / oracle ──
// 探用户态 IOKit 是否导出事件构造入口。
// IOKit event short-heap fixed-offset write
import Foundation
// ── byte helpers — verbatim from Cinder27 Sources/Kit.swift ──
// ── byte helpers (from Cinder27 Sources/Kit.swift) ──
enum B {
static func be16(_ v: UInt16) -> [UInt8] { [UInt8(v >> 8 & 0xff), UInt8(v & 0xff)] }
static func le16(_ v: UInt16) -> [UInt8] { [UInt8(v & 0xff), UInt8(v >> 8 & 0xff)] }
@@ -37,4 +24,3 @@ enum B {
}