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

+32
View File
@@ -0,0 +1,32 @@
// probe.ane · AppleNeuralEngine.framework / CoreML.framework · CVE-2026-112696
// ANE userspace entry point probe
// C twin of the Swift POC: dlopens the private ANE framework and CoreML, dlsyms the
// client/program/model/request entry points the CVE lives behind.
// Build: clang -O2 -o cve-2026-112696 CVE-2026-112696.c
// Run: ./cve-2026-112696
#include <stdio.h>
#include <string.h>
#include <dlfcn.h>
static void probe(const char *lib, const char **symbols, int n) {
void *h = dlopen(lib, RTLD_NOW);
if (!h) {
printf("x %s\n", lib);
return;
}
printf("ok %s\n", lib);
for (int i = 0; i < n; i++) {
printf(" %s: %s\n", symbols[i], dlsym(h, symbols[i]) ? "resolved" : "missing");
}
}
int main(void) {
const char *ane_syms[] = {"_ANEClient", "_ANEProgram", "_ANEModel", "_ANERequest"};
const char *coreml_syms[] = {"MLModel", "MLComputePlan"};
probe("/System/Library/PrivateFrameworks/AppleNeuralEngine.framework/AppleNeuralEngine", ane_syms, 4);
probe("/System/Library/PrivateFrameworks/CoreML.framework/CoreML", coreml_syms, 2);
printf("CVE-2026-112696 · ANE entry points probed\n");
return 0;
}
+2 -15
View File
@@ -1,20 +1,8 @@
// probe.ane · AppleH16ANEInterface · CVE-2026-112696 / 84494
// 原语: OOB 写 · 内核 · tier 2
// Primitive: OOB write · kernel · tier 2
//
// [zh] ANE 内核接口可达性
// 未检查的 program symbolIndex 直接用于索引内核表且存在回写 —— 与公告所称「写内核内存」的形状一致。本模块仅探测应用能否触及 ANE 的用户态入口。
//
// [en] ANE kernel interface reachability
// An unchecked program symbolIndex indexes kernel tables and is written back — matching the advisory's
// "write kernel memory" shape. This module only probes whether the app can reach the ANE user-space
// entry points.
// ── 判别 / oracle ──
// 10.19.6 → 10.102.4,是整个 kext 差异里改动最大的一组之一。
// ANE kernel interface reachability
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)] }
@@ -36,4 +24,3 @@ enum B {
}