Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

166 sources

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

Repository files678
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
Next files →

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

analysis/find_sched_caller.py

Python · 1,317 bytes
import sys
sys.path.insert(0, 'pylibs')
import struct
from capstone import Cs, CS_ARCH_ARM, CS_MODE_ARM

with open('kernel_raw.bin', 'rb') as f:
    data = f.read()
BASE = 0xC0008000
md = Cs(CS_ARCH_ARM, CS_MODE_ARM)

# Disassemble 0xc0159d28 (the caller of rt_mutex_adjust_pi)
print("=== 0xc0159d28 (calls rt_mutex_adjust_pi) ===")
code = data[0xc0159d28-BASE:0xc0159d28-BASE+0x100]
for ins in md.disasm(code, 0xc0159d28):
    print(f'  0x{ins.address:08x}: {ins.mnemonic}\t{ins.op_str}')
    if ins.mnemonic.startswith('pop') and 'pc' in ins.op_str:
        break

# Find who calls 0xc0159d28
print("\n=== Callers of 0xc0159d28 ===")
target = 0xc0159d28
for i in range(0, len(data)-4, 4):
    insn = struct.unpack('<I', data[i:i+4])[0]
    if (insn & 0xff000000) == 0xeb000000:
        offset = insn & 0x00ffffff
        if offset & 0x800000:
            offset -= 0x1000000
        bl_target = BASE + i + 8 + (offset << 2)
        if bl_target == target:
            caller = BASE + i
            print(f"  Caller at 0x{caller:08x}")
            # Check syscall table
            systab = 0xc0101264
            for num in range(0, 450):
                addr = struct.unpack('<I', data[systab-BASE+num*4:systab-BASE+num*4+4])[0]
                if addr == caller:
                    print(f"    = syscall {num}")