Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

165 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_out_path.py

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

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)

# Check what's at 0xc031caec (the out label)
print("=== do_vfs_ioctl out path at 0xc031caec ===")
off = 0xc031caec - BASE
code = data[off:off+0x60]
for insn in md.disasm(code, 0xc031caec):
    print(f"  0x{insn.address:08x}: {insn.bytes.hex():16s} {insn.mnemonic:10s} {insn.op_str}")
    if insn.mnemonic == 'pop' and 'pc' in insn.op_str:
        break

# Also check: what if the issue is that the waiter stack gets overwritten
# by an interrupt between stamping and ioctl? Let's check if we can
# verify the write by reading back fops+0x28 from userspace (we can't directly,
# but we can check if ioctl behaves differently).

# Let me also check the null_fops read function at 0xc06b36d4 - maybe
# opening /dev/null does something unexpected
print("\n=== null read at 0xc06b36d4 ===")
off = 0xc06b36d4 - BASE
code = data[off:off+0x40]
for insn in md.disasm(code, 0xc06b36d4):
    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 > 0xc06b3710:
        break

print("\n=== null write at 0xc06b36dc ===")
off = 0xc06b36dc - BASE
code = data[off:off+0x40]
for insn in md.disasm(code, 0xc06b36dc):
    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 > 0xc06b3710:
        break

print("\n=== null llseek at 0xc06b36bc ===")
off = 0xc06b36bc - BASE
code = data[off:off+0x20]
for insn in md.disasm(code, 0xc06b36bc):
    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