Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bsauce/kernel-exploit-factory
/ functions
Functions
847 in github.com/bsauce/kernel-exploit-factory
⨍
Functions
847
◇
Types & classes
1,074
↓ 1 callers
Function
bpf_create_map
CVE-2021-31440/exp/CVE-2021-31440_2.c:143
↓ 1 callers
Function
bpf_create_map
CVE-2020-27194/exp/CVE-2020-27194.c:124
↓ 1 callers
Function
bpf_create_map
CVE-2021-3490/exp/5.11/CVE-2021-3490.c:143
↓ 1 callers
Function
bpf_lookup_elem
CVE-2017-16995/exp.c:160
↓ 1 callers
Function
bpf_lookup_elem
CVE-2021-31440/exp/CVE-2021-31440.c:167
↓ 1 callers
Function
bpf_lookup_elem
CVE-2021-31440/exp/CVE-2021-31440_2.c:167
↓ 1 callers
Function
bpf_lookup_elem
CVE-2020-8835/exp/exp_multi_core.c:305
↓ 1 callers
Function
bpf_lookup_elem
CVE-2020-8835/exp/exp_single_core.c:303
↓ 1 callers
Function
bpf_lookup_elem
CVE-2020-27194/exp/CVE-2020-27194.c:148
↓ 1 callers
Function
bpf_lookup_elem
CVE-2021-3490/exp/5.11/CVE-2021-3490.c:167
↓ 1 callers
Function
bpf_map_get_info_by_fd
CVE-2020-8835/exp/exp_multi_core.c:316
↓ 1 callers
Function
bpf_map_get_info_by_fd
CVE-2020-8835/exp/exp_single_core.c:314
↓ 1 callers
Function
bpf_prog_load
CVE-2017-16995/exp.c:117
↓ 1 callers
Function
bpf_prog_load
CVE-2021-31440/exp/CVE-2021-31440.c:191
↓ 1 callers
Function
bpf_prog_load
CVE-2021-31440/exp/CVE-2021-31440_2.c:191
↓ 1 callers
Function
bpf_prog_load
CVE-2020-8835/exp/exp_multi_core.c:259
↓ 1 callers
Function
bpf_prog_load
CVE-2020-8835/exp/exp_single_core.c:257
↓ 1 callers
Function
bpf_prog_load
CVE-2020-27194/exp/CVE-2020-27194.c:172
↓ 1 callers
Function
bpf_prog_load
CVE-2021-3490/exp/5.11/CVE-2021-3490.c:191
↓ 1 callers
Function
build_chain
CVE-2022-1015/exploit/helpers.c:116
↓ 1 callers
Function
build_krop
Note: Must not touch offset 0x10-0x18.
CVE-2022-0185/exploit/exploit_kctf.c:367
↓ 1 callers
Function
build_krop
Note: Must not touch offset 0x10-0x18.
CVE-2021-22555/exploit.c:268
↓ 1 callers
Function
build_krop
Note: Must not touch offset 0x10-0x18.
CVE-2022-0995/exploit.c:203
↓ 1 callers
Function
build_table
CVE-2022-1015/exploit/helpers.c:106
↓ 1 callers
Function
calc_vuln_expr_params_div
calc_vuln_expr_params_div() —— 计算可写的范围, 以及是否能将值 desired 写入到 sreg
CVE-2022-1015/exploit/exploit.c:56
↓ 1 callers
Function
change_hfsc_qdisc
CVE-2025-21702/exploit/exploit.c:699
↓ 1 callers
Function
check_core
CVE-2026-23271/exploit/exploit.cpp:1709
↓ 1 callers
Function
check_heap_leak
check_heap_leak() —— read/free all msg to leak `net_device`
CVE-2022-25636/exploit/exploit.c:237
↓ 1 callers
Function
check_root
CVE-2017-6074/exp.c:590
↓ 1 callers
Function
check_root
CVE-2017-7308/exploit.c:313
↓ 1 callers
Function
cleanup
CVE-2021-3490/exp/5.11.16/Linux_LPE_eBPF_CVE-2021-3490-main/exploit.c:477
↓ 1 callers
Function
cleanup_read
CVE-2021-3490/exp/5.11.16/Linux_LPE_eBPF_CVE-2021-3490-main/exploit.c:424
↓ 1 callers
Function
cleanup_write
CVE-2021-3490/exp/5.11.16/Linux_LPE_eBPF_CVE-2021-3490-main/exploit.c:450
↓ 1 callers
Function
clear_btf
CVE-2021-31440/exp/CVE-2021-31440.c:369
↓ 1 callers
Function
clear_btf
CVE-2021-31440/exp/CVE-2021-31440_2.c:370
↓ 1 callers
Function
clear_btf
CVE-2020-27194/exp/CVE-2020-27194.c:337
↓ 1 callers
Function
clear_btf
CVE-2021-3490/exp/5.11/CVE-2021-3490.c:372
↓ 1 callers
Function
code_execution_primitive_build_primitive
6-3. CFH - construct CFH
CVE-2025-21702/exploit/exploit.c:1655
↓ 1 callers
Function
code_execution_primitive_init
6-1. CFH initialize
CVE-2025-21702/exploit/exploit.c:1584
↓ 1 callers
Function
code_execution_primitive_setup_network_interface
6-2. CFH - setup network interface
CVE-2025-21702/exploit/exploit.c:1642
↓ 1 callers
Function
code_execution_primitive_trigger
6-4. CFH - trigger
CVE-2025-21702/exploit/exploit.c:1895
↓ 1 callers
Function
construct_rop
CVE-2017-1000112/exp.c:60
↓ 1 callers
Function
core_pattern_handler
提权后执行的 payload: 内核以 root 权限执行 exploit 二进制时调用此函数 通过 pidfd_open + pidfd_getfd 从父进程窃取 stdio fd, 然后执行 cat /flag 读取 flag 并重启系统
CVE-2026-23271/exploit/exploit.cpp:1694
↓ 1 callers
Function
crash
子进程函数: 等待 core_pattern 被 ROP 覆写后,触发 crash 实现提权 1. 通过 memfd + sendfile 将 exploit 二进制写入 fd 666 2. 轮询 /proc/sys/kernel/core_pattern 直到检测到覆写成功 3. 触发 NULL
CVE-2026-23271/exploit/exploit.cpp:1722
↓ 1 callers
Function
create_base_chain_rule
CVE-2022-1015/exploit/exploit.c:103
↓ 1 callers
Function
create_bpf_maps
CVE-2021-3490/exp/5.11.16/Linux_LPE_eBPF_CVE-2021-3490-main/exploit.c:145
↓ 1 callers
Function
create_br1337
create_br1337() —— test if openswitch enabled
CVE-2022-2639/exploit.c:697
↓ 1 callers
Function
create_dummy_file
create_dummy_file(): Create a file to trigger call_modprobe in case of execution
CVE-2022-34918/exploit/exploit.c:302
↓ 1 callers
Function
create_infoleak_rule
create_infoleak_rule() —— create rule to leak and compare with cmp
CVE-2022-1015/exploit/exploit.c:134
↓ 1 callers
Function
create_io_uring_threads
CVE-2021-41073/exploit/exploit.c:399
↓ 1 callers
Function
create_message_thread
create_message_thread() —— spray 8 msg_msg and msg_msgseg, which hangs at copy_from_user(), to change modprobe_path
CVE-2021-42008/exp.c:631
↓ 1 callers
Function
create_pfh_thread
create faultpage handler
CVE-2021-42008/exp.c:376
↓ 1 callers
Function
create_setxattr_threads
CVE-2021-41073/exploit/exploit.c:383
↓ 1 callers
Function
create_table
create_table(): Register a new table for the inet family
CVE-2022-34918/exploit/exploit.c:460
↓ 1 callers
Function
create_table
CVE-2022-1015/exploit/helpers.c:234
↓ 1 callers
Function
create_xattr
create_xattr(): Add an xattribute to a file with the value "value"
CVE-2022-34918/exploit/exploit.c:131
↓ 1 callers
Function
cross_cache_attack
[4] 跨缓存攻击: 将 perf_event slab 页返还 buddy 分配器,然后用 msg_msgseg 回收。注意,`perf_event`和kmalloc-cg-1k`都从order-2 page取内存,而kmalloc-cg-4k从order-3 page取内存 perf_event
CVE-2026-23271/exploit/exploit.cpp:2326
↓ 1 callers
Function
dccp_connect_pad
CVE-2017-6074/exp.c:313
↓ 1 callers
Function
dccp_kmalloc_pad
4 dccp connect
CVE-2017-6074/exp.c:351
↓ 1 callers
Function
delete_128
CVE-2022-25636/exploit/exploit.c:232
↓ 1 callers
Function
delete_192
CVE-2022-25636/exploit/exploit.c:362
↓ 1 callers
Function
delete_network_interface
CVE-2025-21702/exploit/exploit.c:661
↓ 1 callers
Function
delete_tc_
CVE-2022-2588/exploit.c:352
↓ 1 callers
Function
deplete_512
release all msg_msg in kmalloc-512
CVE-2022-0185/exploit/exploit_kctf.c:82
↓ 1 callers
Function
destroy_shm
CVE-2021-42008/exp.c:406
↓ 1 callers
Function
disable_smep_smap
CVE-2017-6074/exp.c:480
↓ 1 callers
Function
do_check_leak
CVE-2022-0185/exploit/exploit_fuse.c:42
↓ 1 callers
Function
do_exploit
CVE-2025-21702/exploit/exploit.c:1915
↓ 1 callers
Function
do_heap_leaks
CVE-2022-0185/exploit/exploit_kctf.c:242
↓ 1 callers
Function
do_init
do_init() —— bind cpu & set namespace & get flow_family_id & get msg queue & sock_pairs[4][2]
CVE-2022-2639/exploit.c:689
↓ 1 callers
Function
do_kaslr_leak
CVE-2022-0185/exploit/exploit_kctf.c:164
↓ 1 callers
Function
do_leak
change msg_msg->m_ts to leak seq_operations->stop (510*8-0xfd0 = 0x20)
CVE-2022-0185/exploit/exploit_fuse.c:51
↓ 1 callers
Function
do_leak
do_leak() —— leak kernel base
CVE-2022-1015/exploit/exploit.c:208
↓ 1 callers
Function
do_leak_byte
CVE-2022-1015/exploit/exploit.c:161
↓ 1 callers
Function
do_sandbox_namespace
CVE-2022-27666/exploit/exploit.c:1141
↓ 1 callers
Function
do_sandbox_namespace
create sub-process to escalate privilege
CVE-2021-4154/exploit/exploit-ROP.c:173
↓ 1 callers
Function
do_sandbox_namespace
create sub-process to escalate privilege and check whether the "/etc/passwd" is changed
CVE-2021-4154/exploit/exploit-DirtyCred.c:146
↓ 1 callers
Function
do_setxattr
do_setxattr() —— setxattr() -> block -> place another object -> getxattr() to leak
CVE-2021-41073/exploit/exploit.c:177
↓ 1 callers
Function
do_win
hijack control-flow: arb free -> hijack pipe_buffer
CVE-2022-0185/exploit/exploit_kctf.c:401
↓ 1 callers
Function
do_win
msg_msg arb write trick by hanging before msgseg on usercopy use FUSE to time the race
CVE-2022-0185/exploit/exploit_fuse.c:146
↓ 1 callers
Function
exec_shell
CVE-2017-7308/exploit.c:271
↓ 1 callers
Function
exploit
CVE-2021-4154/exploit/exploit-ROP.c:286
↓ 1 callers
Function
exploit
CVE-2017-8890/exp-ret2usr.c:123
↓ 1 callers
Function
exploit
CVE-2017-8890/exp-smep.c:195
↓ 1 callers
Function
exploit
CVE-2022-2588/exploit.c:569
↓ 1 callers
Function
exploit_step1
exploit_step1() —— leak kmalloc-0x400 (msg_msg->m_list.next / prev)
CVE-2022-2639/exploit.c:763
↓ 1 callers
Function
exploit_step2
exploit_step2() —— forge pipe_buffer->flags & overwrite "/usr/bin/mount"
CVE-2022-2639/exploit.c:889
↓ 1 callers
Function
find_kernel_base
CVE-2025-21702/exploit/exploit.c:1474
↓ 1 callers
Function
find_message_queue
CVE-2021-42008/exp.c:563
↓ 1 callers
Function
find_pid_cred
CVE-2021-3490/exp/5.11.16/Linux_LPE_eBPF_CVE-2021-3490-main/kmem_search.c:131
↓ 1 callers
Function
find_pid_ns
CVE-2021-3490/exp/5.11.16/Linux_LPE_eBPF_CVE-2021-3490-main/kmem_search.c:122
↓ 1 callers
Function
find_xfrm_policy_in_heap_leak_data
leak `xfrm_policy->timer.function` - 比较n多xfrm_policy成员来确保泄露正确
CVE-2025-21702/exploit/exploit.c:1411
↓ 1 callers
Function
fork_shell
Main
CVE-2017-6074/exp.c:568
↓ 1 callers
Function
fork_shell
CVE-2017-7308/exploit.c:289
↓ 1 callers
Function
free_netdevice
free_netdevice() —— OOB write 3rd msg_msg->security to free `net_device` 0x18 0x68 0xb8 (0xc0+0x48) (0xc0+0x98) (0xc0+0xc0+0x28)
CVE-2022-25636/exploit/exploit.c:367
↓ 1 callers
Function
fuse_msg_spray
spray $num_msg msg_msg at page_fault addr ------ use thread ----- trigger page fault at (dst+8)
CVE-2022-27666/exploit/exploit.c:1662
↓ 1 callers
Function
gather_mqueue
gather_mqueue() —— read msg_msg to leak kernel_base
CVE-2022-32250/exploit/exploit.c:424
↓ 1 callers
Function
gather_mqueue_nosave
CVE-2022-32250/exploit/exploit.c:444
↓ 1 callers
Function
generic_spray
CVE-2022-0185/exploit/exploit_kctf.c:150
↓ 1 callers
Function
genlmsg_close
CVE-2022-2639/exploit.c:298
← previous
next →
301–400 of 847, ranked by callers