Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2023-6931 — CVE-2023-6931 kernel panic PoC | Kitploit
Tools/GitHubGitHub/k0n9-log/cve-2023-6931
Memory ForensicsVulnerability AnalysisExploitationLearning & EducationBinary Exploitation
GitHubk0n9-log/cve-2023-6931

CVE-2023-6931

CVE-2023-6931 kernel panic PoC

View Repository
2401 year agoNot yet reviewed
Share

CVE-2023-6931

Kernel Panic PoC for CVE-2023-6931

Description

CVE-2023-6931 is a vulnerability in perf_event that leads to a heap buffer overflow caused by an integer overflow in the read_size of a group.

What is a Performance Event (perf event)?

perf_events is a performance monitoring and analysis framework provided by the Linux kernel. This framework enables the tracking of various performance-related data generated by both hardware and software components.

Main Uses

  • Hardware Event Tracking Tracks events such as CPU cycles, instruction execution counts, cache misses, and more.
  • Software Event Tracking Monitors events like switching, page faults, context switches, etc.
  • Custom Event Tracking Enables tracking of events specific to certain applications or the kernel.

Components of perf

  • perf_event_open System call An interface that allows user-space to configure and control performance events in the kernel. It is used to create, group, control, or read data from events.
  • Performance Counters The actual data tracked by the CPU and kernel, such as the number of executed instructions or CPU utilization
  • Event Groups Allows multiple performance events to be grouped and managed together. A group leader event acts as the representative of the group, while sibling events represent the remaining events within the group

Requirment

  1. The value of /proc/sys/kernel/perf_event_paranoid must be 1 or lower
  2. The number of the file descriptors that can be opened must be at least around 4100. This can be checked and modified using the ulimit -n command.
  3. The kernel option CONFIG_PERF_EVENTS must be set.

description

The Vulnerability arises due to an integer overflow in the read_size of a group. The function perf_event_validate_size performs validation on the read_size. However, the wat read_size is validated only checks the read_size of the current event.

The key point is that during each validation, only the current event is validated, while previous events are not. If PERF_FORMAT_GROUP is set for the gorup leader, simply adding a current event can increase the read_size of the group leader.

This ultimately causes as issue in perf_read_group. The calculation of event->read_size is based on the read_format of the group leader, multiplied by nr_siblings. Since the read_size variable is a 2-byte u16, the maximum value it can hold is 0xffff.

To exploit this, the attacker first creates a group leader event with all possible read_format options set. Next, numerous sibling events are created. These siblings only set PERF_FORMAT_TOTAL_TIME_RUNNING in the read_Format to ensure no validation issues in perf_event_validate_size. As a result, the nr_siblings value becomes extremely large, but since each sibling event passes validation individually, there are no problems at this stage.

When perf_read_group is called in this state, the read_size of the group leader continues to increase because PERF_FORMAT_GROUP is set. Eventaully, this leads to an integer overflow, and kzalloc allocates a very small buffer. However, since the actual number of events is very large, a heap buffer overflow accurs, causing a kernel panic.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    871
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    548
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    383
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    361
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    305
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    280

Explore all tools

Browse our collection of tools

View all tools →