Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

170 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_fpos.py

Python · 1,541 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)

# Search for str to [rN, #0x44] which is likely f_pos
# Also check [rN, #0x3c] which would be f_pos if f_pos_lock is 16 bytes
print("=== Searching for f_pos writes (str to [rN, #0x44] or [rN, #0x3c]) ===")
for offset in [0x3c, 0x40, 0x44, 0x48]:
    count = 0
    for i in range(0xc0300000-BASE, 0xc0320000-BASE, 4):
        inst = struct.unpack('<I', data[i:i+4])[0]
        # str rX, [rY, #offset]
        if (inst & 0x0ff70fff) == (0x05800000 | offset):
            addr = BASE + i
            print(f"  str to [r{((inst>>16)&0xf)}, #0x{offset:x}] at 0x{addr:08x}")
            code = data[i-8:i+12]
            for ins in md.disasm(code, addr-8):
                print(f'    0x{ins.address:08x}: {ins.mnemonic}\t{ins.op_str}')
            print()
            count += 1
            if count >= 5:
                break

# Also look at default_llseek to find f_pos offset
# Search for "default_llseek" or look at the code at 0xc0305bf4
print("\n=== Code at 0xc0305bf4 (default_llseek?) ===")
code = data[0xc0305bf4-BASE:0xc0305bf4-BASE+0x100]
for ins in md.disasm(code, 0xc0305bf4):
    print(f'  0x{ins.address:08x}: {ins.mnemonic}\t{ins.op_str}')
    if ins.mnemonic.startswith('pop') and 'pc' in ins.op_str:
        break
    if ins.mnemonic == 'bx' and 'lr' in ins.op_str and ins.address > 0xc0305c00:
        break