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
    • 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-2021-45095

CVE-2021-45095: Linux Kernel Information Disclosure Flaw

CVE-2021-45095 is an information disclosure vulnerability in the Linux Kernel caused by a refcount leak in pep_sock_accept. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 25, 2026

CVE-2021-45095 Overview

CVE-2021-45095 is a memory leak vulnerability in the Linux kernel's Phonet protocol implementation. The flaw exists in the pep_sock_accept function within net/phonet/pep.c, where a reference count leak occurs during socket acceptance operations. This vulnerability affects Linux kernel versions through 5.15.8 and allows local attackers to potentially leak sensitive information from kernel memory.

Critical Impact

Local attackers with low privileges can exploit this reference count leak to potentially access sensitive information from kernel memory, compromising system confidentiality.

Affected Products

  • Linux Kernel (versions through 5.15.8)
  • Debian Linux 9.0
  • Debian Linux 10.0
  • Debian Linux 11.0

Discovery Timeline

  • December 16, 2021 - CVE-2021-45095 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-45095

Vulnerability Analysis

This vulnerability is classified as an information exposure issue (CWE-200) stemming from improper reference counting in the Linux kernel's Phonet protocol stack. The Phonet protocol is a packet-oriented network protocol used primarily in Nokia cellular modems for communication between the modem and application processor.

The flaw occurs in the pep_sock_accept function, which handles socket acceptance for Phonet Pipe End Point (PEP) connections. When the pep_accept_conn function fails and returns an error, the code path fails to properly decrement the reference count on the parent socket before proceeding to error handling. This creates a reference count leak that can be exploited by local attackers.

Reference count leaks are particularly dangerous in kernel code because they can lead to memory disclosure, denial of service through resource exhaustion, or in some cases, use-after-free conditions when reference counts underflow in subsequent operations.

Root Cause

The root cause is a missing __sock_put(sk) call in the error handling path of pep_sock_accept. When pep_accept_conn() returns an error, the function correctly puts the new socket reference but fails to release the reference on the parent socket (sk) that was acquired earlier in the function. This asymmetric reference counting leads to the leak.

Attack Vector

The attack requires local access to the system with low privileges. An attacker would need to:

  1. Create Phonet protocol sockets on the target system
  2. Trigger the error condition in pep_sock_accept by manipulating connection acceptance
  3. Repeatedly trigger the vulnerability to leak kernel memory references
  4. Potentially extract sensitive information from the leaked memory

The following patch addresses the reference count leak by adding the missing socket put operation:

c
 
 	err = pep_accept_conn(newsk, skb);
 	if (err) {
+		__sock_put(sk);
 		sock_put(newsk);
 		newsk = NULL;
 		goto drop;

Source: GitHub Linux Commit

Detection Methods for CVE-2021-45095

Indicators of Compromise

  • Unusual Phonet protocol socket activity from unprivileged processes
  • Increasing kernel memory allocation without corresponding deallocation in the Phonet subsystem
  • Abnormal patterns of socket accept failures on Phonet endpoints
  • Memory leak warnings or OOM (Out of Memory) conditions related to network subsystems

Detection Strategies

  • Monitor for processes attempting to create Phonet protocol sockets, especially from non-system users
  • Implement kernel memory tracking to detect reference count anomalies in network subsystems
  • Use kernel debugging tools like kmemleak to identify memory leaks in the net/phonet/ code path
  • Deploy endpoint detection solutions capable of monitoring kernel-level socket operations

Monitoring Recommendations

  • Enable kernel auditing for socket syscalls, particularly those involving the Phonet protocol family (AF_PHONET)
  • Monitor /proc/slabinfo for abnormal growth in socket-related slab caches
  • Implement alerting on repeated socket accept failures that may indicate exploitation attempts
  • Review system logs for Phonet-related kernel warnings or errors

How to Mitigate CVE-2021-45095

Immediate Actions Required

  • Update the Linux kernel to a patched version that includes commit bcd0f93353326954817a4f9fa55ec57fb38acbb0
  • Apply distribution-specific security patches from Debian or your Linux vendor
  • If patching is not immediately possible, consider disabling the Phonet protocol module if not required
  • Restrict local user access and review user privileges to limit attack surface

Patch Information

The vulnerability has been addressed through official kernel commits and distribution security advisories:

  • Linux Kernel Commit - Official kernel fix
  • GitHub Linux Commit - Mirror of the patch
  • Debian Security Advisory DSA-5050 - Debian stable security update
  • Debian Security Advisory DSA-5096 - Additional Debian security update

Workarounds

  • Disable the Phonet protocol kernel module if not required for system operation
  • Restrict access to create Phonet sockets using Linux Security Modules (SELinux/AppArmor)
  • Implement mandatory access controls to limit which processes can interact with the Phonet subsystem
  • Monitor and limit local user access to reduce the attack surface for this local vulnerability
bash
# Disable Phonet kernel module if not needed
echo "blacklist phonet" >> /etc/modprobe.d/blacklist-phonet.conf
echo "blacklist pn_pep" >> /etc/modprobe.d/blacklist-phonet.conf

# Remove the module if currently loaded
modprobe -r pn_pep
modprobe -r phonet

# Verify module is not loaded
lsmod | grep phonet

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.04%

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

  • Debian LTS Announcement

  • Debian Security Advisory #5050

  • Debian Security Advisory #5096
  • Vendor Resources
  • Linux Kernel Commit

  • GitHub Linux Commit
  • Related CVEs
  • CVE-2026-23430: Linux Kernel Memory Leak Vulnerability

  • CVE-2026-23465: Linux Kernel Btrfs Logging Vulnerability

  • CVE-2026-23421: Linux Kernel Information Disclosure Flaw

  • CVE-2026-23303: Linux Kernel Information Disclosure Flaw
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