The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-25220

CVE-2020-25220: Linux Kernel Use-After-Free Vulnerability

CVE-2020-25220 is a use-after-free vulnerability in the Linux kernel affecting versions 4.9.x, 4.14.x, and 4.19.x related to the cgroups feature. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-25220 Overview

CVE-2020-25220 is a use-after-free vulnerability affecting multiple versions of the Linux kernel. The flaw exists because the skcd->no_refcnt field was not properly considered during a backport of a CVE-2020-14356 patch, leading to potential memory corruption conditions. This vulnerability is related to the cgroups (control groups) feature, which is a fundamental kernel mechanism used for resource management and containerization.

Critical Impact

A local attacker with low privileges could exploit this use-after-free condition to achieve arbitrary code execution, escalate privileges, or cause system instability through memory corruption in kernel space.

Affected Products

  • Linux Kernel 4.9.x before 4.9.233
  • Linux Kernel 4.14.x before 4.14.194
  • Linux Kernel 4.19.x before 4.19.140

Discovery Timeline

  • September 10, 2020 - CVE-2020-25220 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-25220

Vulnerability Analysis

This use-after-free vulnerability originated from an incomplete backport of a security patch for CVE-2020-14356 to the stable Linux kernel branches. The root issue lies in how the cgroups subsystem handles socket reference counting. During the backport process, the handling of the skcd->no_refcnt flag was not properly addressed, creating a scenario where memory could be accessed after it has been freed.

The cgroups feature in Linux provides a mechanism for organizing processes into hierarchical groups, enabling resource limiting, prioritization, and accounting. Socket handling within cgroups requires careful reference counting to prevent premature deallocation of socket-related data structures. When no_refcnt is improperly handled, the kernel may free a socket control data structure while references to it still exist, leading to a classic use-after-free condition.

Root Cause

The vulnerability stems from an incomplete security backport where the skcd->no_refcnt field check was omitted. This field indicates whether reference counting should be bypassed for certain socket operations within the cgroup context. Without this check, the backported code path could incorrectly handle socket lifecycle management, allowing a data structure to be freed while still being referenced elsewhere in the kernel.

Attack Vector

This is a local attack vector requiring the attacker to have low-privileged access to the target system. Exploitation involves manipulating cgroup socket operations to trigger the use-after-free condition. An attacker could:

  1. Create a cgroup and associate socket operations with it
  2. Trigger the vulnerable code path where reference counting is mishandled
  3. Cause the kernel to free the socket control data prematurely
  4. Access the freed memory to corrupt kernel data structures or achieve code execution

The attack mechanism exploits the timing between socket operations and cgroup cleanup. By carefully orchestrating these operations, an attacker can control the contents of the freed memory region when it is subsequently accessed, potentially redirecting kernel execution flow or modifying sensitive kernel data.

Detection Methods for CVE-2020-25220

Indicators of Compromise

  • Unexpected kernel crashes or panics related to cgroup or socket subsystems
  • Abnormal behavior in containerized environments utilizing cgroups for resource management
  • Kernel log messages indicating memory corruption or invalid memory access in socket-related code paths
  • Unusual privilege escalation attempts from low-privileged accounts

Detection Strategies

  • Monitor kernel logs for use-after-free related KASAN (Kernel Address Sanitizer) warnings if enabled
  • Deploy runtime kernel integrity monitoring solutions to detect unexpected code execution patterns
  • Implement system call auditing for cgroup-related operations from untrusted processes
  • Utilize SentinelOne's behavioral AI to detect anomalous kernel-level activity patterns indicative of exploitation attempts

Monitoring Recommendations

  • Enable kernel auditing for cgroup namespace operations and socket system calls
  • Monitor for processes attempting to rapidly create and destroy cgroups with associated sockets
  • Implement real-time alerting on kernel oops or panic events related to memory subsystems
  • Review container orchestration logs for unusual cgroup manipulation patterns

How to Mitigate CVE-2020-25220

Immediate Actions Required

  • Update Linux kernel to patched versions: 4.9.233, 4.14.194, or 4.19.140 or later for respective branches
  • If immediate patching is not possible, restrict access to cgroup creation for untrusted users
  • Review and limit local user access on systems running vulnerable kernel versions
  • Consider using kernel live patching solutions to apply fixes without system restart

Patch Information

Official patches have been released for all affected kernel branches. The fix ensures proper handling of the skcd->no_refcnt flag during socket operations within cgroups. Organizations should apply the appropriate patch for their kernel version:

  • For kernel 4.9.x: Update to version 4.9.233 or later - see Linux Kernel Changelog 4.9.233
  • For kernel 4.14.x: Update to version 4.14.194 or later - see Linux Kernel Changelog 4.14.194
  • For kernel 4.19.x: Update to version 4.19.140 or later - see Linux Kernel Changelog 4.19.140

The specific kernel commit addressing this issue can be reviewed at the Linux Kernel Commit 82fd213. Additional advisories are available from Red Hat Bug Report and NetApp Security Advisory ntap-20201001-0004.

Workarounds

  • Restrict cgroup creation permissions to trusted users only using appropriate system configuration
  • Consider disabling cgroups v1 if not required and migrating to cgroups v2 where applicable
  • Implement mandatory access control policies (SELinux, AppArmor) to limit cgroup operations
  • Use containerization security features to isolate workloads from untrusted local users
bash
# Restrict cgroup access - example for limiting cgroup creation
# Add to /etc/security/limits.conf or appropriate PAM configuration
# Limit cgroup creation to root and specific trusted groups
chmod 700 /sys/fs/cgroup
chown root:root /sys/fs/cgroup

# Alternatively, use systemd to restrict cgroup controller access
# In /etc/systemd/system.conf, add:
# DefaultCPUAccounting=yes
# DefaultMemoryAccounting=yes

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLinux

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • Debian LTS Announcement 32

  • Debian LTS Announcement 34

  • NetApp Security Advisory ntap-20201001-0004
  • Vendor Resources
  • Red Hat Bug Report

  • Linux Kernel Changelog 4.14.194

  • Linux Kernel Changelog 4.19.140

  • Linux Kernel Changelog 4.9.233

  • Linux Kernel Commit 82fd213

  • Spinics Stable List Message
  • Related CVEs
  • CVE-2026-23427: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-23428: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-23443: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-23322: Linux Kernel Use-After-Free 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