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

Python · 1,051 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 more of the enforce write handler (after 0xc04fb48c)
print("=== Enforce write handler continued (0xc04fb490+) ===")
code = data[0xc04fb490-BASE:0xc04fb490-BASE+0x100]
for ins in md.disasm(code, 0xc04fb490):
    print(f'  0x{ins.address:08x}: {ins.mnemonic}\t{ins.op_str}')
    if ins.mnemonic.startswith('pop') and 'pc' in ins.op_str:
        break

# The function at 0xc04ef8d0 is likely the security hook for changing enforcing
# Let me look at it to find where it writes the enforcing value
print("\n=== Function at 0xc04ef8d0 (enforcement change) ===")
code = data[0xc04ef8d0-BASE:0xc04ef8d0-BASE+0x200]
for ins in md.disasm(code, 0xc04ef8d0):
    print(f'  0x{ins.address:08x}: {ins.mnemonic}\t{ins.op_str}')
    if ins.mnemonic.startswith('pop') and 'pc' in ins.op_str and ins.address > 0xc04ef900:
        break