Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2025-39913 — linux kernel ≤ 6.12.38 中的 UAF(psock->cork) | Kitploit
工具/GitHubGitHub/bytereaper77/cve-2025-39913
权限提升漏洞分析漏洞利用二进制利用
GitHubbytereaper77/cve-2025-39913

CVE-2025-39913

linux kernel ≤ 6.12.38 中的 UAF(psock->cork)

查看仓库
111个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2025-39913 - Linux 内核 eBPF SOCKMAP (UAF)

作者:Byte Reaper

我的平台:https://www.bytrep.com/

描述

  • 该仓库包含 CVE-2025-39913 的技术性概念验证,这是 Linux 内核 tcp_bpf_send_verdict() 函数中的一个漏洞。当 bpf_msg_cork_bytes() 未能分配 psock->cork 时,内核可能跳过释放 sk_msg,从而导致内存管理不当。在特定的 eBPF sk_msg 操作下,这可能导致内存泄漏或潜在的使用后释放(UAF)条件。

影响支持 SOCKMAP 的 Linux 内核版本 ≤ 6.12.38。

要求:

root@kitploit:~
Kernel ≤ 6.12.38
Linux x86_64
GCC

构建:

root@kitploit:~
	1 - Create Makefile : 

        # touch Makefile

    2 - Paste the content into the Makfile :  

        TARGET := CVE-2025-39913

        KERNEL_PATH := /usr/src/linux-headers-$(shell uname -r)

        BPF_OBJ := bpf_injection.o

        USER_SRCS := main.c load_bpf.c check_bpfELf.c pingCheck.c com_c.c exit_asm.c sockmap_link.c check_elf.c result.c argparse.c

        USER_OBJS := $(USER_SRCS:.c=.o)
        ALL_OBJS := $(USER_OBJS) $(BPF_OBJ)

        LIBS := -l:libbpf.a -lrt -lelf -lz 

        $(TARGET): $(ALL_OBJS)
            gcc $(USER_OBJS) -o $@ $(LIBS) 
        %.o: %.c
            gcc -c $< -o $@

        $(BPF_OBJ): bpf_injection.c
            clang -O2 -target bpf -c $< -o $@ \
                -nostdinc \
                -I/usr/lib/clang/19/include \
                -I$(KERNEL_PATH)/arch/x86/include \
                -I$(KERNEL_PATH)/arch/x86/include/generated \
                -I$(KERNEL_PATH)/include \
                -I$(KERNEL_PATH)/include/uapi \
                -I$(KERNEL_PATH)/include/generated/uapi \
                -I$(KERNEL_PATH)/include/asm-generic \
                -I/usr/include

        clean:

运行:

root@kitploit:~
	 1 - IP address :
     # ./CVE-2025-39913 -i [server-ip] 

    2 - target port (default : 80) :
     # ./CVE-2025-39913 -i [server-ip] -p [PORT]

    3 - Full ARG : 
     # ./CVE-2025-39913 -h

    4 - Check Obj file BPF :
     # ./CVE-2025-39913 -i [server-ip] -p [PORT] -o 

    5 - Check debug tracing : 
     # ./CVE-2025-39913 -i [server-ip] -p [PORT] -c

参考

  • Linux BPF TCP – https://docs.kernel.org/networking/filter.html
  • bpf.h – https://codebrowser.dev/linux/include/linux/bpf.h.html
  • NVD (CVE-2025-39913) – https://nvd.nist.gov/vuln/detail/CVE-2025-39913
  • 创建 SOCKMAP – https://docs.kernel.org/bpf/map_sockmap.html
  • POC – https://bytrep.com/exploit39913.html

观察:

  • 这是一个取自平台 https://bytrep.com/ 的利用代码。

许可证:

MIT

下载工具