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
@@ -0,0 +1,43 @@
|
||||
// aud.lc3 · AudioToolbox · LC3 codec gate · CVE-2026-112638
|
||||
// LC3 codec AudioConverterNew reachability probe
|
||||
// C twin of the Swift POC: drives AudioConverterNew with the LC3 format id at two
|
||||
// rate/channel shapes. The entitlement check is an app-side observation; a standalone
|
||||
// binary carries no entitlements, so only the codec gate itself is probed here.
|
||||
// Build: clang -O2 -o cve-2026-112638 CVE-2026-112638.c -framework AudioToolbox -framework CoreFoundation
|
||||
// Run: ./cve-2026-112638
|
||||
|
||||
#include <stdio.h>
|
||||
#include <AudioToolbox/AudioToolbox.h>
|
||||
|
||||
static void audio_converter(uint32_t format, double rate, uint32_t channels) {
|
||||
AudioStreamBasicDescription in = {0};
|
||||
in.mSampleRate = rate;
|
||||
in.mFormatID = format;
|
||||
in.mFramesPerPacket = 1;
|
||||
in.mChannelsPerFrame = channels;
|
||||
AudioStreamBasicDescription out = {0};
|
||||
out.mSampleRate = rate;
|
||||
out.mFormatID = kAudioFormatLinearPCM;
|
||||
out.mFormatFlags = kAudioFormatFlagIsFloat | kAudioFormatFlagIsPacked;
|
||||
out.mBytesPerPacket = 4;
|
||||
out.mFramesPerPacket = 1;
|
||||
out.mBytesPerFrame = 4;
|
||||
out.mChannelsPerFrame = 1;
|
||||
out.mBitsPerChannel = 32;
|
||||
AudioConverterRef c = NULL;
|
||||
OSStatus st = AudioConverterNew(&in, &out, &c);
|
||||
if (c) AudioConverterDispose(c);
|
||||
char four[5] = {0};
|
||||
for (int i = 0; i < 4; i++) {
|
||||
uint8_t b = (uint8_t)(format >> (24 - 8 * i));
|
||||
four[i] = (b >= 0x20 && b < 0x7f) ? (char)b : '?';
|
||||
}
|
||||
printf("AudioConverterNew('%s', %.0f Hz, %u ch) = %d\n", four, rate, channels, (int)st);
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
audio_converter(0x6C633320, 48000, 1); // 'lc3 ' 48 kHz mono
|
||||
audio_converter(0x6C633320, 16000, 2); // 'lc3 ' 16 kHz stereo
|
||||
printf("CVE-2026-112638 · LC3 codec gate probed\n");
|
||||
return 0;
|
||||
}
|
||||
@@ -1,22 +1,8 @@
|
||||
// aud.lc3 · AudioCodecs · ACLC3Decoder::AppendInputData · CVE-2026-112638
|
||||
// 原语: OOB 写 · 权限受限 · tier 2
|
||||
// Primitive: OOB write · entitlement-gated · tier 2
|
||||
//
|
||||
// [zh] LC3 解码器输入缓冲溢出
|
||||
// memcpy 仅以 mDataByteSize 作为长度,完全不参考输入 vector 的 (begin, end) 容量。27.2 增加 capacity < size 时的拒绝分支。LC3
|
||||
// 是蓝牙 LE Audio 的编解码器,其实例化受 com.apple.coreaudio.allow-lc3-codec 授权约束,故崩溃发生在系统音频进程内 —— 与公告所称「系统终止」一致。
|
||||
//
|
||||
// [en] LC3 decoder input buffer overflow
|
||||
// memcpy uses mDataByteSize as its length and never consults the (begin, end) capacity of the input
|
||||
// vector. iOS 27.2 adds a capacity < size rejection. LC3 is the Bluetooth LE Audio codec and its
|
||||
// instantiation is gated by com.apple.coreaudio.allow-lc3-codec, so the crash lands in the system
|
||||
// audio process — matching the advisory's "system termination".
|
||||
// ── 判别 / oracle ──
|
||||
// 这个模块先检查进程是否持有该 entitlement,再尝试构造 LC3 AudioConverter 看内核/框架在哪一层拒绝。无授权时它一定失败,但失败点本身就是有用信息。
|
||||
|
||||
// LC3 decoder input buffer overflow
|
||||
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)] }
|
||||
@@ -38,4 +24,3 @@ enum B {
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user