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

Python · 1,961 bytes
import sys
sys.path.insert(0, 'pylibs')
import struct, re

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

# Search for mark_rodata_ro or related functions
# In ARM32, this function modifies PTE entries to make rodata read-only
# It typically iterates over page tables and changes permissions

# Search for strings related to rodata protection
for pattern in [b'rodata', b'write protect', b'KERNEL_RWX', b'strict_kern',
                b'set_pte_at', b'pmd_populate', b'section mapping']:
    for m in re.finditer(pattern, data):
        off = m.start()
        addr = BASE + off
        s = b''
        for b in data[off:off+80]:
            if 32 <= b < 127:
                s += bytes([b])
            else:
                break
        if s and len(s) > 5:
            print(f"  0x{addr:08x}: {s.decode('ascii', errors='replace')}")

# Let's check the kernel's build configuration
# Search for "CONFIG_DEBUG_RODATA" or "CONFIG_STRICT_KERNEL_RWX" in embedded config
for pattern in [b'CONFIG_DEBUG_RODATA', b'CONFIG_STRICT_KERNEL_RWX',
                b'CONFIG_DEBUG_ALIGN_RODATA', b'CONFIG_CPU_SW_DOMAIN_PAN']:
    for m in re.finditer(pattern, data):
        off = m.start()
        addr = BASE + off
        s = b''
        for b in data[off:off+80]:
            if 32 <= b < 127:
                s += bytes([b])
            else:
                break
        print(f"  0x{addr:08x}: {s.decode('ascii', errors='replace')}")

# Also search for PAN/SMAP related configs
for pattern in [b'CONFIG_CPU_TTBR0', b'CONFIG_CPU_SW_DOMAIN', b'CONFIG_CPU_PABRT',
                b'CONFIG_ARM_PATCH']:
    for m in re.finditer(pattern, data):
        off = m.start()
        addr = BASE + off
        s = b''
        for b in data[off:off+80]:
            if 32 <= b < 127:
                s += bytes([b])
            else:
                break
        if s:
            print(f"  0x{addr:08x}: {s.decode('ascii', errors='replace')}")