Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2023-6931: Local privilege escalation in Linux kernel perf_read_group()

Published Dec 19, 2023 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.0High · v3.1
EPSS0.71%49th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Debian ProjectLinux
IdentifiersCVE-2023-6931CWE-787 · Out-of-bounds Write

CVE-2023-6931 is a heap out-of-bounds write vulnerability in the Linux kernel Performance Events subsystem. Overflow of a perf_event object's read_size can cause perf_read_group() to increment or write memory outside the intended heap buffer. A local attacker able to manipulate performance-event configurations can potentially exploit the resulting kernel memory corruption to escalate privileges, execute arbitrary code, or crash the system.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can compromise kernel execution and enable local privilege escalation, with potentially high confidentiality and integrity impacts. Memory corruption can also crash the system, causing denial of service. Exploitation is assessed by Red Hat as high complexity because it requires complex manipulation of a custom performance-event configuration containing many custom events.

Mitigation

If you can’t patch tonight, do this now.

On affected Red Hat systems, retain or restore kernel.perf_event_paranoid to the documented default value of 2, which prevents this vulnerability from being triggered. Ensure the setting remains effective until a fixed kernel is installed and running.

Remediation

Patch, then assume compromise.

Install a vendor-supported kernel update containing the fix, or upgrade to an upstream kernel revision incorporating commit 382c27f4ed28f803b1f1473ac2d8db0afc795a1b. Fixed Red Hat kernel versions include 4.18.0-513.24.1.el8_9 for RHEL 8, 5.14.0-70.97.1.el9_0 for RHEL 9.0 EUS, and 5.14.0-284.55.1.el9_2 for RHEL 9.2 update streams. Other distribution and real-time kernel variants require their corresponding vendor updates. Reboot into the updated kernel for the fix to take effect.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
cve-2023-6931-pipaThe repository contains five files: a Chinese README, a Bash build wrapper, and a three-file Frida-based second stage written in Bash, Python, and JavaScript. The README describes CVE-2023-6931 exploitation against Xiaomi Pad 6/pipa on HyperOS OS2.0.20.0.UMZCNXM with a 4.19.157-perf kernel. Its documented first stage uses a perf-event group-read overflow to corrupt a netlink socket destructor, pivot kernel control flow, call `commit_creds(&init_cred)`, and decrement the SELinux enforcing state. However, the claimed `exploit.c`, symbol headers, shipped binary, and checksum file are not present in the supplied five-file archive; consequently, the kernel exploit itself cannot be independently verified from this content. The included operational code is the second stage. `exp_forge_send.sh` uses ADB to deploy Frida, starts it by writing a command into `/data/local/tmp/root_in`, forwards local TCP/27042, and targets the Settings process. `frida_run.py` attaches or spawns the target package through Frida's remote TCP device API and records agent output. `forge_send.js` runs within Settings, harvests account/device identifiers, requests nonces, obtains a hardware/TEE-backed `MiuiFidSigner` signature, and submits signed `/v1/unlock/applyBind` requests. It cycles legacy-looking `rom_version` values and optionally retries against the international Xiaomi endpoint. This is not a detection-only repository and no destructive/fake behavior is evident, but stage 2 depends on the undocumented/absent stage-1 root primitive and external Frida artifacts.Yutori-Natsu · Disclosed Sep 22, 2026 · bash · javascript · local · network · fileOperationalCVE-2023-6931This repository contains a proof-of-concept (PoC) exploit for CVE-2023-6931, a heap buffer overflow vulnerability in the Linux kernel's perf_event subsystem. The exploit is implemented in C (PoC.c) and is designed to trigger a kernel panic by exploiting an integer overflow in the calculation of the read_size for a perf event group. The PoC works by creating a group leader perf event with all possible read_format options, then adding a large number of sibling events. This causes the group leader's read_size to overflow, leading to a small buffer allocation and a subsequent heap buffer overflow when reading event data. The README.md provides a detailed explanation of the vulnerability, the requirements for successful exploitation (including kernel configuration and system limits), and the technical details of the attack. The exploit requires local access to the system and appropriate permissions to interact with the perf_event subsystem. The only fingerprintable endpoint is the kernel configuration file /proc/sys/kernel/perf_event_paranoid, which must be set to 1 or lower. The repository is structured simply, with a single C source file for the exploit and a comprehensive markdown README.K0n9-log · Disclosed Jan 5, 2025 · c · markdown · localPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Debian ProjectDebian Linuxoperating_system
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2023-6931 exploited in the wild?
As of Oct 23, 2026, Mallory has no reports of CVE-2023-6931 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2023-6931?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2023-6931, the earliest disclosed Jan 5, 2025.
Is there a patch for CVE-2023-6931?
Install a vendor-supported kernel update containing the fix, or upgrade to an upstream kernel revision incorporating commit 382c27f4ed28f803b1f1473ac2d8db0afc795a1b. Fixed Red Hat kernel versions include 4.18.0-513.24.1.el8_9 for RHEL 8, 5.14.0-70.97.1.el9_0 for RHEL 9.0 EUS, and 5.14.0-284.55.1.el9_2 for RHEL 9.2 update streams.
What products are affected by CVE-2023-6931?
Linux Kernel and Debian Project Debian Linux.
How severe is CVE-2023-6931?
CVE-2023-6931 has a CVSS v3.1 score of 7.0 (High) and an EPSS score of 0.71% (49th percentile) as of Oct 23, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.