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-2023-52735

CVE-2023-52735: Linux Kernel Buffer Overflow Vulnerability

CVE-2023-52735 is a buffer overflow vulnerability in the Linux Kernel's BPF sockmap that can lead to stack overflow from recursive callback loops. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2023-52735 Overview

A critical vulnerability has been identified in the Linux kernel's BPF sockmap implementation that allows recursive protocol callback functions to call themselves, leading to a stack overflow condition. The vulnerability exists in the sock_map_close, sock_map_destroy, and sock_map_unhash functions which can enter an infinite recursive loop when improperly invoked.

Critical Impact

This vulnerability can be exploited remotely without authentication, potentially leading to system crashes, denial of service, and high confidentiality impact through memory disclosure. The recursive call pattern can exhaust kernel stack space and cause kernel panics.

Affected Products

  • Linux Kernel versions prior to 5.15.91
  • Linux Kernel versions 5.16 to 6.1.9
  • Linux Kernel version 6.2 release candidates (rc1 through rc6)

Discovery Timeline

  • 2024-05-21 - CVE CVE-2023-52735 published to NVD
  • 2025-04-02 - Last updated in NVD database

Technical Details for CVE-2023-52735

Vulnerability Analysis

The vulnerability resides in the Linux kernel's BPF (Berkeley Packet Filter) sockmap subsystem, which provides socket-level operations for eBPF programs. The affected functions—sock_map_close, sock_map_destroy, and sock_map_unhash—are protocol callbacks that should never invoke themselves recursively by design. However, a flaw in the callback chain allows these functions to call themselves under certain conditions, creating an unbounded recursive loop.

When triggered, the recursive calls rapidly consume kernel stack space. Since the kernel stack is limited (typically 8KB or 16KB depending on architecture), the unbounded recursion quickly leads to a stack overflow. This results in a kernel panic or system crash, causing denial of service. Additionally, the memory corruption from stack overflow can potentially expose sensitive kernel memory contents, resulting in high confidentiality impact.

Root Cause

The root cause is a design oversight in the sockmap protocol callback implementation that fails to detect and prevent self-referential callback invocations. The proto callbacks were designed under the assumption they would never form recursive call chains, but certain code paths can trigger conditions where sock_map_{close,destroy,unhash} functions invoke themselves. Without explicit recursion guards, these functions enter an infinite loop that overflows the kernel stack.

Attack Vector

The vulnerability can be exploited remotely over the network without requiring authentication or user interaction. An attacker can trigger the recursive callback behavior by sending specially crafted network packets or establishing connections that manipulate the sockmap state in a way that causes the proto callbacks to recurse. The low attack complexity and network accessibility make this vulnerability particularly dangerous for systems running affected kernel versions with BPF sockmap enabled.

The attack does not require any privileges or special access, making it exploitable by any remote attacker who can reach the target system's network services. Successful exploitation results in immediate denial of service through kernel panic, with potential for memory information disclosure during the stack overflow event.

Detection Methods for CVE-2023-52735

Indicators of Compromise

  • Unexpected kernel panics or system crashes with stack traces referencing sock_map_close, sock_map_destroy, or sock_map_unhash
  • Kernel log messages indicating stack overflow or recursive function call depth exceeded
  • Systems becoming unresponsive during network activity involving BPF sockmap operations
  • Core dumps showing deep recursion in sockmap-related kernel functions

Detection Strategies

  • Monitor system logs for kernel oops or panic messages containing references to BPF sockmap functions
  • Implement kernel crash dump analysis to identify stack overflow patterns in sockmap callbacks
  • Deploy eBPF-based kernel tracing to detect abnormal call depth in sock_map_* functions
  • Use kernel debugging tools to track sockmap proto callback invocations and flag recursive patterns

Monitoring Recommendations

  • Configure kernel panic logging and crash dump collection to capture stack traces for post-incident analysis
  • Enable system audit logging for BPF program loading and sockmap operations
  • Implement real-time monitoring of kernel stack usage metrics where supported
  • Set up alerts for unexpected system reboots or kernel crashes on network-facing servers

How to Mitigate CVE-2023-52735

Immediate Actions Required

  • Update affected Linux kernel installations to patched versions immediately
  • If immediate patching is not possible, consider disabling BPF sockmap functionality if not required
  • Monitor systems for signs of exploitation attempts including unexpected crashes
  • Review network exposure and implement additional network-level controls for critical systems

Patch Information

The Linux kernel maintainers have released patches to address this vulnerability. The fix introduces recursion detection logic that breaks out of the recursive loop when self-referential callback invocations are detected, preventing stack overflow while accepting a controlled resource leak as a safer alternative to a crash.

Patched kernel commits are available:

  • Kernel Git Commit 5b4a79ba65a1
  • Kernel Git Commit 7499859881488
  • Kernel Git Commit f312367f5246e

Update to kernel version 5.15.91 or later for the 5.15 LTS branch, or 6.1.9 or later for the 6.1 LTS branch. The fix is also included in kernel 6.2-rc7 and subsequent releases.

Workarounds

  • Disable BPF sockmap functionality by restricting unprivileged BPF access using sysctl kernel.unprivileged_bpf_disabled=1
  • Unload any BPF programs utilizing sockmap features if they are not critical to operations
  • Implement network segmentation to reduce exposure of vulnerable systems to untrusted networks
  • Consider using container or VM isolation to limit impact of potential kernel crashes
bash
# Restrict unprivileged BPF access to mitigate exposure
sysctl -w kernel.unprivileged_bpf_disabled=1

# Make the setting persistent across reboots
echo "kernel.unprivileged_bpf_disabled=1" >> /etc/sysctl.conf

# Verify the setting is applied
sysctl kernel.unprivileged_bpf_disabled

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Vendor Resources
  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update
  • Related CVEs
  • CVE-2026-23448: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-23447: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31395: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31402: Linux Kernel Buffer Overflow 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