Exploit databaseDownload repository ZIP
GH-14fb583d3d1bd2da10251bb1a37b93d6
gitchw/ghostlock-cve-2026-43499
Sources for CVE-2026-43499
164 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files678
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
- ↑..Parent directory
- analyze_copy_funcs.py
- analyze_func2.py
- analyze_select.py
- analyze_stack.py
- analyze_stamps.py
- analyze_stamps2.py
- analyze_syscall.py
- analyze_targets.py
- analyze_vector.py
- bfs_stamp_search.py
- calc_overlap.py
- chain_disasm.txt
- check_288.py
- check_4e8.py
- check_9978.py
- check_adjtimex.py
- check_adjust_call.py
- check_adjust_pi.py
- check_adjust_pi2.py
- check_adjust_prio.py
- check_after_enqueue.py
- check_ashmem_funcs.py
- check_bc24.py
- check_bfi.py
- check_bind_wrapper.py
- check_bitmap.py
- check_bugons.py
- check_caller.py
- check_candidate.py
- check_candidates.py
- check_capable.py
- check_chain2.py
- check_cleanup.py
- check_cleanup2.py
- check_cleanup_funcs.py
- check_code_ptr.py
- check_comm_tail.py
- check_commit_creds.py
- check_config.py
- check_copy_funcs.py
- check_cred_overwrite.py
- check_css_frame.py
- check_dequeue.py
- check_dequeue_funcs.py
- check_e9248_path.py
- check_e9248_path2.py
- check_e9248_safe.py
- check_edeadlk_handler.py
- check_edeadlk_path.py
- check_enqueue_full.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
analysis/find_hook_refs.py
Python · 2,515 bytesimport sys
sys.path.insert(0, 'pylibs')
import struct
from capstone import Cs, CS_ARCH_ARM, CS_MODE_ARM
with open('kernel_raw.bin', 'rb') as f:
data = f.read()
BASE = 0xC0008000
md = Cs(CS_ARCH_ARM, CS_MODE_ARM)
# Search for references to 0xc0472a40
target = 0xc0472a40
target_bytes = struct.pack('<I', target)
print(f"=== References to 0x{target:08x} ===")
idx = 0
while True:
idx = data.find(target_bytes, idx)
if idx < 0:
break
addr = BASE + idx
if 0xc0008000 <= addr < 0xc1000000:
print(f" Code ref at 0x{addr:08x}")
elif 0xc1000000 <= addr < 0xc1b00000:
print(f" Data ref at 0x{addr:08x}")
elif 0xc1b00000 <= addr < 0xc1c00000:
print(f" BSS ref at 0x{addr:08x}")
idx += 1
# Also search for the function address in literal pools (adr/add pc patterns)
# Let me look at the security_hook_list structure (LSM hooks)
# Each hook is: { void *hook; struct list_head list; char *lsm; }
# In the data section, there should be an array of these
# Let me look at data references more carefully
print("\n=== Data section references (LSM hooks) ===")
idx = 0
while True:
idx = data.find(target_bytes, idx)
if idx < 0:
break
addr = BASE + idx
if 0xc1000000 <= addr < 0xc1b00000:
# Check surrounding data for context
prev = struct.unpack('<I', data[idx-4:idx])[0]
nxt = struct.unpack('<I', data[idx+4:idx+8])[0]
nxt2 = struct.unpack('<I', data[idx+8:idx+12])[0]
print(f" 0x{addr:08x}: prev=0x{prev:08x}, next=0x{nxt:08x}, next2=0x{nxt2:08x}")
idx += 1
# Let me also look at what the function at 0xc0472a40 actually does
# by examining the SELinux security structure
# Let me check what's at offset 0x288 of super_block by looking at
# how the selinuxfs code accesses it
print("\n=== Checking super_block s_security offset ===")
# From the selinuxfs code: ldr r0, [r0, #0x1c] (inode->i_sb) then ldr r0, [r0, #0x288]
# So s_security is at 0x288 in super_block. Confirmed.
# Now let me look at what the security blob structure looks like
# The function at 0xc0472a40 accesses [blob+0x41] and [blob+0x44]
# Let me look at what structure has a bool at 0x41 and a cred pointer at 0x44
# Actually, let me look at the selinux_sb_info structure or similar
# Let me search for the function that initializes this blob
# Look for stores to offset 0x44 near kzalloc calls
# Let me also check: what if r0 is NOT a super_block but a cred-related structure?
# Let me look at what calls 0xc0472a40