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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-11108-Integer-Overflow-in-Memory-Allocator-kmalloc-Sim- — 演示了 CVE-2026-11108 在 kmalloc 模拟中的整数溢出,从而引发堆溢出,并可能通过精心构造的分配大小实现任意代码执行。 | Kitploit
工具/GitHubGitHub/george0papasotiriou/cve-2026-11108-integer-overflow-in-memory-allocator-kmalloc-sim-
漏洞分析漏洞利用二进制利用
GitHubgeorge0papasotiriou/cve-2026-11108-integer-overflow-in-memory-allocator-kmalloc-sim-

CVE-2026-11108-Integer-Overflow-in-Memory-Allocator-kmalloc-Sim-

演示了 CVE-2026-11108 在 kmalloc 模拟中的整数溢出,从而引发堆溢出,并可能通过精心构造的分配大小实现任意代码执行。

查看仓库

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
17天前尚未审核

CVE-2026-11108 – 内存分配器中的整数溢出(kmalloc Sim)

程序代码(C)

root@kitploit:~
// alloc_sim.c - Vulnerable memory allocator
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX_BLOCK 1024

void *my_malloc(size_t size) {
    size_t total = size + sizeof(size_t); // header
    if (total > MAX_BLOCK) return NULL;
    void *ptr = malloc(total);
    if (!ptr) return NULL;
    *(size_t *)ptr = size;
    return ptr + sizeof(size_t);
}

void my_free(void *p) {
    if (!p) return;
    size_t *header = (size_t *)(p - sizeof(size_t));
    free(header);
}

int main() {
    // Craft size that causes integer overflow: 0xFFFFFFFF - sizeof(size_t) + 1 wraps to small number
    size_t huge = 0xFFFFFFFF;  // 4GB - 1
    char *buf = my_malloc(huge - sizeof(size_t) + 1); // overflow: total becomes 0?
    if (buf) {
        // Write far beyond allocated buffer, heap overflow
        memset(buf, 'A', 1000);
        printf("Wrote 1000 bytes to tiny buffer\n");
        my_free(buf);
    }
    return 0;
}

CVE-2026-11108 – 内存分配器中的整数溢出

Severity: Critical

概述

自定义内存分配器在计算总分配大小时,会将头部大小与请求大小相加,却没有进行溢出检查。通过传入接近 UINT_MAX 的大小,总和会回绕为一个小值,从而分配出极小的缓冲区,却允许进行大规模写入,最终导致堆溢出。

漏洞详情

  • 类型: 整数溢出 / 堆溢出
  • 影响: 任意代码执行、内存破坏。
  • 根本原因: 分配函数在将头部大小与用户请求的大小相加时,未检查是否发生溢出。

漏洞利用演示

编译并运行:

root@kitploit:~
gcc -o alloc_sim alloc_sim.c -fno-stack-protector
./alloc_sim

该程序向缓冲区写入的字节数远超其分配大小,从而破坏堆元数据,并很可能导致程序崩溃。

下载工具