- 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.
33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
// 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;
|
|
}
|