Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2026-11108-Integer-Overflow-in-Memory-Allocator-kmalloc-Sim- — kmalloc 시뮬레이션에서 CVE-2026-11108 정수 오버플로를 시연하여, 조작된 할당 크기로 인한 힙 오버플로와 잠재적인 임의 코드 실행을 유발합니다. | Kitploit
도구/GitHubGitHub/george0papasotiriou/cve-2026-11108-integer-overflow-in-memory-allocator-kmalloc-sim-
Vulnerability AnalysisExploitationBinary Exploitation
GitHubgeorge0papasotiriou/cve-2026-11108-integer-overflow-in-memory-allocator-kmalloc-sim-

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

kmalloc 시뮬레이션에서 CVE-2026-11108 정수 오버플로를 시연하여, 조작된 할당 크기로 인한 힙 오버플로와 잠재적인 임의 코드 실행을 유발합니다.

저장소 보기

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유
16일 전아직 검토되지 않음

CVE-2026-11108 – 메모리 할당기(Integer Overflow)의 정수 오버플로우 (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

프로그램은 할당된 버퍼보다 훨씬 많은 바이트를 기록하여 힙 메타데이터를 손상시키고 충돌할 가능성이 높습니다.

도구 다운로드