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-2022-23093

CVE-2022-23093: FreeBSD ping Buffer Overflow Vulnerability

CVE-2022-23093 is a buffer overflow flaw in FreeBSD's ping utility that allows remote hosts to crash the program by sending packets with IP options. This article covers technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-23093 Overview

CVE-2022-23093 is a stack buffer overflow vulnerability in FreeBSD's ping utility that occurs during the processing of raw IP packets in the pr_pack() function. The vulnerability arises when the function copies received IP and ICMP headers into stack buffers without properly accounting for the possible presence of IP option headers, resulting in a buffer overflow of up to 40 bytes.

When processing ICMP responses, the ping utility must reconstruct the IP header, ICMP header, and potentially a "quoted packet" that represents the packet which generated an ICMP error. The quoted packet also contains its own IP and ICMP headers. The failure to validate IP option header lengths before copying data into fixed-size stack buffers creates a memory safety issue that can be triggered remotely.

Critical Impact

A remote attacker can crash the ping process by sending specially crafted ICMP responses containing IP option headers, causing denial of service. The ping process runs in a capability mode sandbox, limiting further exploitation potential.

Affected Products

  • FreeBSD 12.3 (including patch levels p1 through p9 and beta1)
  • FreeBSD 12.4-RC2-p1
  • FreeBSD 13.1 (including patch levels p1 through p4, beta, and RC releases)

Discovery Timeline

  • 2024-02-15 - CVE CVE-2022-23093 published to NVD
  • 2025-06-04 - Last updated in NVD database

Technical Details for CVE-2022-23093

Vulnerability Analysis

The vulnerability exists in the pr_pack() function within the FreeBSD ping utility. This function is responsible for processing incoming ICMP echo reply packets and extracting relevant information for display to the user.

When an ICMP packet arrives, pr_pack() performs several header reconstruction operations. It copies the IP header and ICMP header from the received packet into local stack buffers. Additionally, for ICMP error responses, it processes a "quoted packet" embedded within the ICMP payload that contains the original packet that triggered the error.

The core issue is that IP packets can contain optional header fields following the standard 20-byte IP header. These IP options can add up to 40 additional bytes to the header. The pr_pack() function allocates fixed-size buffers based on the minimum IP header size and fails to check for or accommodate these variable-length option fields before performing copy operations.

While this vulnerability enables remote triggering of a crash condition, the security impact is partially mitigated by FreeBSD's use of Capsicum capability mode sandboxing for the ping process. At the point where the buffer overflow occurs, the process is already constrained in its ability to interact with the rest of the system, limiting the potential for exploitation beyond denial of service.

Root Cause

The root cause is a classic buffer overflow (CWE-120) resulting from inadequate bounds checking. The pr_pack() function uses fixed-size stack buffers sized for standard IP and ICMP headers without accounting for the variable-length IP options field. When IP options are present in either the response packet or the quoted packet, the copy operation writes beyond the allocated buffer boundaries by up to 40 bytes—the maximum size of the IP options field.

Attack Vector

The attack can be executed remotely over a network connection. An attacker needs to be able to send ICMP packets that will be received by a vulnerable FreeBSD system running the ping utility. The attack works by crafting ICMP responses (or error messages) containing IP headers with option fields that exceed the expected header size.

The attacker would need to either:

  1. Respond to legitimate ping requests from the target system with malformed ICMP echo replies containing IP options
  2. Send unsolicited ICMP error messages (such as Destination Unreachable or Time Exceeded) containing quoted packets with IP options

The vulnerability can be exploited without authentication and requires no user interaction beyond the normal use of the ping command.

Detection Methods for CVE-2022-23093

Indicators of Compromise

  • Unexpected ping process crashes or core dumps on FreeBSD systems
  • ICMP packets containing unusually large IP option headers in network traffic captures
  • Repeated ping utility failures when communicating with specific remote hosts

Detection Strategies

  • Monitor for abnormal termination of ping processes, particularly SIGSEGV signals indicating memory corruption
  • Implement network intrusion detection rules to flag ICMP packets with IP option lengths exceeding normal thresholds
  • Deploy endpoint detection to identify stack buffer overflow patterns in ping utility execution
  • Review system logs for core dumps associated with /sbin/ping or /usr/sbin/ping

Monitoring Recommendations

  • Configure process monitoring to alert on unexpected ping utility terminations
  • Enable core dump collection and analysis for post-incident forensics
  • Monitor network traffic for anomalous ICMP packets with extended IP option fields
  • Implement SentinelOne's behavioral AI detection to identify potential exploitation attempts targeting system utilities

How to Mitigate CVE-2022-23093

Immediate Actions Required

  • Apply the security patches provided by FreeBSD immediately
  • Review and update all FreeBSD systems to patched versions
  • Consider restricting ping utility usage to trusted environments until patches are applied
  • Monitor for unusual ICMP traffic patterns targeting vulnerable systems

Patch Information

FreeBSD has released security patches addressing this vulnerability. The official security advisory is available at the FreeBSD Security Advisory SA-22:15. Organizations should update to the latest patched versions of FreeBSD 12.3-RELEASE, 12.4-RELEASE, or 13.1-RELEASE as specified in the advisory.

The patch modifies the pr_pack() function to properly account for IP option headers when calculating buffer sizes, ensuring that copy operations do not exceed allocated buffer boundaries.

Workarounds

  • Restrict use of the ping utility to trusted network environments only
  • Implement firewall rules to filter incoming ICMP packets with suspicious IP option configurations
  • Consider using alternative network diagnostic tools that do not have this vulnerability
  • Apply network-level filtering to drop ICMP packets with abnormally large IP option headers
bash
# Example: FreeBSD pf firewall rule to log suspicious ICMP traffic
# Add to /etc/pf.conf
block in log quick proto icmp all
pass in proto icmp icmp-type echoreq keep state
pass in proto icmp icmp-type echorep keep state

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechFreebsd

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability4.26%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Vendor Resources
  • FreeBSD Security Advisory SA-22:15
  • Related CVEs
  • CVE-2023-5941: FreeBSD stdio Buffer Overflow Vulnerability

  • CVE-2026-4748: FreeBSD Packet Filter DOS Vulnerability

  • CVE-2026-4247: FreeBSD TCP Information Disclosure Flaw

  • CVE-2026-4747: FreeBSD RPCSEC_GSS RCE 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