Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-25704

CVE-2020-25704: Linux Kernel DOS Vulnerability

CVE-2020-25704 is a memory leak denial of service flaw in Linux Kernel's performance monitoring subsystem. Local attackers can exploit this to exhaust system resources. This article covers technical details, impact, and fixes.

Published: March 4, 2026

CVE-2020-25704 Overview

A memory leak vulnerability was discovered in the Linux kernel performance monitoring subsystem. The flaw exists in the way the kernel handles PERF_EVENT_IOC_SET_FILTER ioctl operations. A local user with access to performance monitoring facilities could exploit this vulnerability to repeatedly trigger memory allocations that are never freed, eventually exhausting system resources and causing a denial of service condition.

Critical Impact

Local users can starve system resources through repeated exploitation of the memory leak, causing denial of service and system instability.

Affected Products

  • Linux Kernel (versions up to and including 5.10-rc2)
  • Debian Linux 9.0
  • StarWind Command Center
  • StarWind Hyperconverged Appliance
  • StarWind SAN & NAS v8r12
  • StarWind Virtual SAN v8 build14398

Discovery Timeline

  • 2020-11-09 - Vulnerability disclosed on Openwall OSS-Security mailing list
  • 2020-12-02 - CVE-2020-25704 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-25704

Vulnerability Analysis

This vulnerability is classified as CWE-401 (Missing Release of Memory after Effective Lifetime). The flaw resides in the Linux kernel's performance monitoring subsystem, specifically in the code path that handles the PERF_EVENT_IOC_SET_FILTER ioctl call. When a user sets a filter on a performance event, memory is allocated to store the filter configuration. However, under certain conditions, this allocated memory is not properly freed when it should be, leading to a memory leak.

The vulnerability requires local access to exploit, meaning an attacker must have the ability to execute code on the target system. The attack complexity is low, as the exploitation mechanism is straightforward—repeatedly invoking the vulnerable ioctl to accumulate memory allocations. While the vulnerability does not impact confidentiality or integrity, it can severely affect system availability by exhausting kernel memory resources.

Root Cause

The root cause of this vulnerability is improper memory management in the performance monitoring subsystem. When the PERF_EVENT_IOC_SET_FILTER ioctl is invoked, the kernel allocates memory to store filter strings. The vulnerability occurs because under specific code paths, the previously allocated filter memory is not freed before new memory is allocated, or the memory is not released when the performance event is destroyed. This leads to accumulated memory that cannot be reclaimed, constituting a classic memory leak (CWE-401).

Attack Vector

The attack vector is local, requiring an authenticated user with access to the performance monitoring interfaces. The attacker can create a simple program that repeatedly opens performance events and sets filters using the PERF_EVENT_IOC_SET_FILTER ioctl. Each iteration leaks a small amount of kernel memory. Over time, or with aggressive iteration, the accumulated memory leak can exhaust available system memory, causing the kernel to enter an out-of-memory state.

The exploitation mechanism involves calling perf_event_open() syscall to create performance monitoring events, then using ioctl() with PERF_EVENT_IOC_SET_FILTER command to trigger the memory allocation that leaks. Since no special privileges beyond basic user access are typically required to use performance monitoring facilities, this vulnerability poses a risk in multi-user environments or systems where unprivileged users have shell access.

Detection Methods for CVE-2020-25704

Indicators of Compromise

  • Gradual increase in kernel memory usage (slab memory) without corresponding workload increase
  • System logs showing out-of-memory (OOM) killer activations
  • Unusual number of perf_event_open syscalls from non-administrative users
  • Processes repeatedly opening and closing performance monitoring events

Detection Strategies

  • Monitor system memory metrics, particularly kernel slab allocations, for unexplained growth patterns
  • Implement syscall auditing to track perf_event_open and related ioctl calls, especially from non-root users
  • Deploy SentinelOne Singularity platform to detect anomalous system behavior patterns associated with resource exhaustion attacks
  • Use kernel tracing tools (ftrace, perf) to monitor performance subsystem activity for suspicious patterns

Monitoring Recommendations

  • Configure memory usage alerts to trigger when kernel memory consumption exceeds baseline thresholds
  • Implement audit rules for performance monitoring syscalls: auditctl -a always,exit -F arch=b64 -S perf_event_open
  • Review and restrict access to performance monitoring capabilities using perf_event_paranoid sysctl settings
  • Deploy endpoint detection and response (EDR) solutions capable of correlating resource exhaustion with process behavior

How to Mitigate CVE-2020-25704

Immediate Actions Required

  • Update the Linux kernel to a patched version that includes commit 7bdb157cdebbf95a1cd94ed2e01b338714075d00
  • Restrict access to performance monitoring subsystem by setting /proc/sys/kernel/perf_event_paranoid to 3 or higher
  • Apply vendor-specific patches from Debian, Red Hat, or StarWind as appropriate for your deployment
  • Monitor systems for signs of exploitation while patches are being deployed

Patch Information

The vulnerability has been addressed in the Linux kernel through commit 7bdb157cdebbf95a1cd94ed2e01b338714075d00. This fix ensures proper cleanup of filter memory allocations in the performance monitoring subsystem. Debian has released advisories for affected versions—see the Debian LTS Advisory for package update information. For Red Hat systems, refer to Bug Report 1895961. StarWind customers should review Security Advisory SW-20220802-0003 for product-specific guidance.

Workarounds

  • Set kernel.perf_event_paranoid=3 to completely disable performance events for unprivileged users
  • Restrict shell access for untrusted users on multi-user systems
  • Implement cgroups memory limits to contain the impact of memory exhaustion attacks
  • Consider using Linux Security Modules (SELinux/AppArmor) to restrict access to performance monitoring capabilities
bash
# Configuration example - Restrict perf_event access
# Add to /etc/sysctl.conf or /etc/sysctl.d/99-security.conf
echo "kernel.perf_event_paranoid = 3" >> /etc/sysctl.d/99-perf-security.conf
sysctl -p /etc/sysctl.d/99-perf-security.conf

# Verify the setting is applied
cat /proc/sys/kernel/perf_event_paranoid

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-401
  • Technical References
  • Red Hat Bug Report

  • Debian LTS Advisory 2020-12-15

  • Debian LTS Advisory 2020-12-27

  • Openwall OSS-Security Post

  • StarWind Security Advisory SW-20220802-0003
  • Vendor Resources
  • Linux Kernel Commit
  • Related CVEs
  • CVE-2026-31465: Linux Kernel Writeback DoS Vulnerability

  • CVE-2026-31472: Linux Kernel IPTFS DoS Vulnerability

  • CVE-2026-31451: Linux Kernel ext4 DOS Vulnerability

  • CVE-2026-31448: Linux Kernel ext4 DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English