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_all_104.py

Python · 1,547 bytes
import struct
from capstone import *

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

md = Cs(CS_ARCH_ARM, CS_MODE_ARM)

# Search entire kernel for MOV #0x104 (260) followed within 4 instructions by a BL
# Also search for MOVW #0x104
results = []
for offset in range(0, len(data) - 4, 4):
    word = struct.unpack('<I', data[offset:offset+4])[0]
    val = None
    rd = None
    # MOV rd, #0x104
    if (word & 0x0FF00000) == 0x03A00000:
        imm = word & 0xFF
        rot = (word >> 8) & 0xF
        v = (imm >> (rot*2)) | (imm << (32 - rot*2)) if rot else imm
        v &= 0xFFFFFFFF
        if v == 0x104:
            val = 0x104
            rd = (word >> 12) & 0xF
    # MOVW rd, #0x104
    if (word & 0x0FF00000) == 0x03000000:
        imm16 = ((word >> 16) & 0xF) << 12 | (word & 0xFFF)
        if imm16 == 0x104:
            val = 0x104
            rd = (word >> 12) & 0xF

    if val is None:
        continue

    # Check next 4 instructions for a BL
    for j in range(1, 5):
        w2 = struct.unpack('<I', data[offset+j*4:offset+j*4+4])[0]
        if (w2 & 0xFF000000) == 0xEB000000:
            bl_off = w2 & 0xFFFFFF
            if bl_off & 0x800000:
                bl_off -= 0x1000000
            bl_target = BASE + offset + j*4 + 8 + bl_off * 4
            results.append((BASE + offset, rd, bl_target, j))
            break

print(f"Found {len(results)} MOV #0x104 followed by BL")
for va, rd, target, dist in results:
    print(f"  0x{va:08x}: r{rd}=0x104 -> BL 0x{target:08x} (dist={dist})")