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/diag_ioctl_call.py

Python · 1,448 bytes
import sys
sys.path.insert(0, 'pylibs')
from capstone import *
import struct

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

md = Cs(CS_ARCH_ARM, CS_MODE_ARM + CS_MODE_LITTLE_ENDIAN)
md.detail = True

# Disassemble do_vfs_ioctl around the fops->unlocked_ioctl call (0xc031c8a0)
print("=== do_vfs_ioctl around 0xc031c880-0xc031c8e0 ===")
off = 0xc031c880 - BASE
code = data[off:off+0x80]
for insn in md.disasm(code, 0xc031c880):
    print(f"  0x{insn.address:08x}: {insn.bytes.hex():16s} {insn.mnemonic:10s} {insn.op_str}")
    if insn.address > 0xc031c8e0:
        break

# Also check commit_creds more carefully - especially the function called at 0xc014b894
print("\n=== function at 0xc014b894 (called by commit_creds) ===")
off = 0xc014b894 - BASE
code = data[off:off+0x80]
for insn in md.disasm(code, 0xc014b894):
    print(f"  0x{insn.address:08x}: {insn.bytes.hex():16s} {insn.mnemonic:10s} {insn.op_str}")
    if insn.mnemonic == 'bx' and 'lr' in insn.op_str:
        break
    if insn.address > 0xc014b900:
        break

# Check put_cred at 0xc014b858
print("\n=== function at 0xc014b858 (put_cred) ===")
off = 0xc014b858 - BASE
code = data[off:off+0x80]
for insn in md.disasm(code, 0xc014b858):
    print(f"  0x{insn.address:08x}: {insn.bytes.hex():16s} {insn.mnemonic:10s} {insn.op_str}")
    if insn.mnemonic == 'bx' and 'lr' in insn.op_str:
        break
    if insn.address > 0xc014b8c0:
        break