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-2025-68785

CVE-2025-68785: Linux Kernel Buffer Overflow Vulnerability

CVE-2025-68785 is a buffer overflow flaw in the Linux kernel's openvswitch component that causes invalid memory access during NSH push action validation. This article covers technical details, affected systems, and mitigation.

Updated: May 16, 2026

CVE-2025-68785 Overview

CVE-2025-68785 is a Linux kernel vulnerability in the Open vSwitch (OVS) subsystem. The flaw resides in the push_nsh() action handler, which fails to validate the middle Netlink attribute nested inside OVS_ACTION_ATTR_PUSH_NSH. The kernel performs a double nla_data() unwrap without verifying that the intermediate attribute is of type OVS_KEY_ATTR_NSH or properly sized. A malformed Netlink message triggers an out-of-bounds read in nsh_hdr_from_nlattr(), as confirmed by a KASAN slab-out-of-bounds report when executing the action.

Critical Impact

A local user with permission to send Open vSwitch Generic Netlink commands can trigger a kernel out-of-bounds read of up to 184 bytes, leading to kernel memory disclosure or denial of service.

Affected Products

  • Linux kernel Open vSwitch (openvswitch) module
  • Linux kernel 6.18-rc7 and earlier development branches confirmed via KASAN report
  • Multiple stable branches receiving backports per the seven upstream commits referenced

Discovery Timeline

  • 2026-01-13 - CVE-2025-68785 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-68785

Vulnerability Analysis

The Open vSwitch push_nsh action accepts a nested Netlink attribute structure of the form OVS_ACTION_ATTR_PUSH_NSH(OVS_KEY_ATTR_NSH(OVS_NSH_KEY_ATTR_BASE, ...)). The outermost attribute is validated by nla_for_each_nested() inside __ovs_nla_copy_actions(). The innermost OVS_NSH_KEY_ATTR_BASE, MD1, and MD2 attributes are validated by nla_for_each_nested() inside nsh_key_put_from_nlattr(). The middle attribute, however, receives no validation.

The kernel calls nla_data() twice in sequence to reach the inner payload. The first call occurs directly in validate_push_nsh(), and the second occurs through the nla_for_each_nested() macro. Neither call verifies the type or length of the intermediate attribute. A larger Netlink buffer can mask the issue during validation, but action execution allocates a buffer sized exactly to the declared length, exposing the out-of-bounds read.

Root Cause

The defect is a missing input validation [CWE-20] on a nested Netlink attribute. The middle attribute is assumed to be OVS_KEY_ATTR_NSH of correct length without explicit checks. This pattern produces an out-of-bounds read when the attribute size is shorter than the structure dereferenced by nsh_hdr_from_nlattr().

Attack Vector

An attacker with the CAP_NET_ADMIN capability in a network namespace can craft a malformed OVS_PACKET_CMD_EXECUTE Generic Netlink message containing a push_nsh action with an undersized or wrong-typed middle attribute. When the kernel executes the action, nsh_hdr_from_nlattr() performs a 184-byte memcpy from a buffer that may be smaller, producing the KASAN-reported slab-out-of-bounds read. The read can expose adjacent slab memory or destabilize the kernel.

No verified public exploit code is available. The upstream commit series describes the vulnerability mechanism and corrective validation logic.

Detection Methods for CVE-2025-68785

Indicators of Compromise

  • KASAN reports referencing nsh_hdr_from_nlattr, push_nsh, or do_execute_actions in the openvswitch module
  • Unexpected kernel oops or BUG: KASAN: slab-out-of-bounds entries in dmesg originating from the Open vSwitch call path
  • Unusual genl traffic to the ovs_packet family from unprivileged or unexpected user-space processes

Detection Strategies

  • Monitor kernel ring buffer logs for KASAN or general protection fault traces involving openvswitch symbols
  • Audit processes invoking sendto() against the NETLINK_GENERIC socket family targeting Open vSwitch commands
  • Track loaded kernel version against the patched commits listed in the kernel.org stable tree

Monitoring Recommendations

  • Enable CONFIG_KASAN in test and staging kernels to surface the out-of-bounds access during pre-production fuzzing
  • Forward /var/log/kern.log and journald kernel facility entries to a centralized log platform for anomaly review
  • Alert on repeated Open vSwitch action execution failures or module crashes correlated with namespace-creation activity

How to Mitigate CVE-2025-68785

Immediate Actions Required

  • Apply the upstream Linux kernel patches that add type and length checks for the middle Netlink attribute inside push_nsh()
  • Restrict CAP_NET_ADMIN to trusted administrators and avoid granting it to container workloads that do not require Open vSwitch control
  • Inventory hosts running the openvswitch kernel module and prioritize patching nodes exposed to multi-tenant workloads

Patch Information

The fix is distributed across seven upstream commits in the Linux stable tree. Reference commits include 10ffc558246f, 1b569db9c2f2, 2ecfc4433acd, 3bc2efff20a3, 5ace7ef87f05, c999153bfb2d, and d0c135b8bbbc. The patches add validation to confirm the middle attribute is OVS_KEY_ATTR_NSH and properly sized before further nested processing.

Workarounds

  • Unload the openvswitch kernel module on hosts that do not require it: modprobe -r openvswitch
  • Block creation of unprivileged user namespaces where Open vSwitch is not required, reducing the surface for CAP_NET_ADMIN acquisition
  • Apply seccomp or LSM policies that restrict sendto() to the Open vSwitch Generic Netlink family for untrusted processes
bash
# Configuration example
# Remove the openvswitch module if not in use
sudo modprobe -r openvswitch

# Prevent automatic loading
echo 'blacklist openvswitch' | sudo tee /etc/modprobe.d/blacklist-openvswitch.conf

# Verify kernel version after patching
uname -r

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechOpenvswitch

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.09%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit Change 1

  • Kernel Git Commit Change 2

  • Kernel Git Commit Change 3

  • Kernel Git Commit Change 4

  • Kernel Git Commit Change 5

  • Kernel Git Commit Change 6

  • Kernel Git Commit Change 7
  • Related CVEs
  • CVE-2026-31508: Linux Kernel Privilege Escalation Flaw

  • CVE-2020-35498: Openvswitch DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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