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

Python · 2,089 bytes
#!/usr/bin/env python3
# Tighter writable-fops hunt:
#  - candidate in .data (>= _sdata), zero window at +0x24(poll)..+0x30(mmap)
#    and +0x38(open) zero, owner +0 zero
#  - >=3 text fn pointers among llseek..iterate slots, all within 0x100000 span
# Then find who references it in .data (miscdevice.fops at ref-8 with name
# string ptr at ref-12; cdev.ops at +0x28 => base ref-0x28) and print names.
import struct,re
BASE=0xC0008000; SDATA=0xc1b00000
TLO,THI=0xc0008000,0xc105f000
d=open(r'/mnt/d/project/ow/ota/kernel_raw.bin','rb').read(); N=len(d)
def rd(va):
    o=va-BASE
    if o<0 or o+4>N: return None
    return struct.unpack_from('<I',d,o)[0]
def cstr(va,ml=80):
    o=va-BASE
    if o<0 or o>=N: return None
    out=b''
    for b in d[o:o+ml]:
        if b==0: break
        if b<0x20 or b>0x7e: return None
        out+=bytes([b])
    return out.decode() if 2<=len(out)<=ml else None
def istext(v): return v is not None and TLO<=v<THI

cands=[]
a=SDATA
END0=BASE+N-0x44
while a<END0:
    o=a-BASE
    if d[o+0x24:o+0x34]==b'\x00'*16 and rd(a)==0 and rd(a+0x38)==0:
        vals=[rd(a+4*k) for k in range(1,10)]   # +4..+24
        tv=[v for v in vals if istext(v)]
        if len(tv)>=3 and max(tv)-min(tv)<0x100000:
            cands.append((a,vals))
    a+=4
print('tight candidates:',len(cands))

def refs_to(target):
    needle=struct.pack('<I',target); out=[]; i=d.find(needle,SDATA-BASE)
    while i!=-1:
        out.append(BASE+i); i=d.find(needle,i+4)
    return out

for fa,vals in cands:
    hits=[]
    for r in refs_to(fa):
        nm=cstr(rd(r-4) or 0)      # miscdevice: name at base+4, fops at base+8
        if nm: hits.append('misc? name=%r @%08x'%(nm,r-8))
        # cdev: ops at base+0x28
        b=r-0x28
        owner=rd(b+0x24)
        if owner in (0,0xffffffff):
            dev=rd(b+0x34); cnt=rd(b+0x38)
            if (dev is None or dev<0x100000) and (cnt is None or cnt<0x100):
                hits.append('cdev? @%08x dev=%s cnt=%s'%(b,dev,cnt))
    print('%08x '%fa + ' '.join('%08x'%(v or 0) for v in vals))
    for h in hits: print('    ',h)