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 files258
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

workspace/ota/find_waiter_slots2.py

Python · 1,340 bytes
#!/usr/bin/env python3
from capstone import *
from elftools.elf.elffile import ELFFile
import re
ELF=r'/mnt/d/project/ow/ota/oppo_kernel.elf'
f=open(ELF,'rb'); elf=ELFFile(f)
def load(addr,n):
    seg=[s for s in elf.iter_segments() if s['p_type']=='PT_LOAD' and s['p_vaddr']<=addr<s['p_vaddr']+s['p_filesz']][0]
    return seg.data()[addr-seg['p_vaddr']:addr-seg['p_vaddr']+n]
md=Cs(CS_ARCH_ARM,CS_MODE_ARM|CS_MODE_LITTLE_ENDIAN)
data=load(0xc01e1a3c,0x2320)
ins=list(md.disasm(data,0xc01e1a3c))
regval={}
for k,i in enumerate(ins):
    m=re.match(r'add (\w+), sp, #(0x[0-9a-f]+)$',i.op_str)
    if m:
        regval[m.group(1)]=(int(m.group(2),16),i.address)
    for reg,(val,aa) in list(regval.items()):
        if ('%s,'%reg in i.op_str or i.op_str.endswith(reg)) and not i.op_str.startswith('add'):
            if i.mnemonic=='str' and ('[sp, #%s]'%format(val,'x') in i.op_str.replace('0x','0x')):
                pass
    m2=re.match(r'str (\w+), \[sp, #(0x[0-9a-f]+)\]',i.op_str)
    if m2 and m2.group(1) in regval and regval[m2.group(1)][0]==int(m2.group(2),16):
        print('selfstore sp+%s computed@%08x stored@%08x'%(m2.group(2),regval[m2.group(1)][1],i.address))
    # invalidate clobbered
    if re.match(r'(mov|ldr|add|sub) %s[,\s]'%reg,i.op_str) and not i.op_str.startswith('add %s, sp'%reg):
        regval.pop(reg,None)