A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2026-45840

CVE-2026-45840: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-45840 is a buffer overflow flaw in the Linux kernel's openvswitch component that allows unprivileged users to trigger a kernel panic. This article covers the technical details, affected systems, and mitigation.

Published: May 28, 2026

CVE-2026-45840 Overview

CVE-2026-45840 is a Linux kernel vulnerability in the openvswitch (OVS) subsystem. The flaw exists in vport netlink reply helpers, which allocate a fixed-size socket buffer (skb) using nlmsg_new(NLMSG_DEFAULT_SIZE, ...) while serializing an unbounded upcall PID array via ovs_vport_get_upcall_portids(). A local user with CAP_NET_ADMIN can install a PID array large enough to overflow the reply buffer, triggering BUG_ON(err < 0) and causing a kernel panic. On systems with unprivileged user namespaces enabled, such as Ubuntu defaults, the issue is reachable through unshare -Urn because OVS vport mutation uses GENL_UNS_ADMIN_PERM.

Critical Impact

A local unprivileged user on systems with unprivileged user namespaces can trigger a kernel panic in ovs_vport_cmd_set, resulting in denial of service.

Affected Products

  • Linux kernel (mainline) prior to the patched commits referenced in git.kernel.org/stable
  • Linux distributions enabling unprivileged user namespaces by default (e.g., Ubuntu)
  • Systems with the openvswitch kernel module loaded

Discovery Timeline

  • 2026-05-27 - CVE-2026-45840 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-45840

Vulnerability Analysis

The vulnerability resides in net/openvswitch/datapath.c and the vport netlink interface. When the kernel builds a reply for vport commands, ovs_vport_cmd_msg_size() does not account for arbitrarily large upcall PID arrays. The ovs_vport_set_upcall_portids() function accepts any non-zero multiple of sizeof(u32) without an upper bound, allowing the configured PID array to exceed the pre-allocated reply buffer size of NLMSG_DEFAULT_SIZE.

During reply serialization, nla_put() fails with -EMSGSIZE, and the calling code reaches BUG_ON(err < 0) at net/openvswitch/datapath.c:2414. This triggers an invalid opcode exception and kernel panic. The kernel oops trace shows the fault path: ovs_vport_cmd_set → genl_family_rcv_msg_doit → genl_rcv_msg → netlink_rcv_skb → netlink_unicast → netlink_sendmsg → __sys_sendto.

Root Cause

The root cause is a missing bounds check on a user-controlled array size combined with a fixed-size reply buffer allocation. The producer side (ovs_vport_set_upcall_portids) accepts unbounded input, while the consumer side (ovs_vport_cmd_msg_size) assumes a default-sized skb will suffice. This input validation gap creates a Denial of Service via assertion failure [CWE-617].

Attack Vector

An attacker with CAP_NET_ADMIN in any user namespace, including one created via unshare -Urn on distributions enabling unprivileged user namespaces, sends a Generic Netlink message to the OVS datapath family. The message installs an oversized upcall PID array on a vport. A subsequent vport command that triggers a netlink reply will overflow the reply buffer and panic the kernel.

No verified public exploit code is published for this issue. Patch details are available in the upstream commits referenced below. See the Linux Kernel Commit f9ef3db for the canonical fix.

Detection Methods for CVE-2026-45840

Indicators of Compromise

  • Kernel panic messages referencing ovs_vport_cmd_set+0x34c/0x400 at net/openvswitch/datapath.c:2414
  • Unexpected invalid opcode: 0000 oops entries in kernel logs on hosts running openvswitch
  • Process activity invoking unshare -Urn followed by Generic Netlink sendmsg traffic to the OVS family

Detection Strategies

  • Monitor dmesg and journalctl -k for BUG_ON traces inside the openvswitch module
  • Audit syscall telemetry for unshare(CLONE_NEWUSER|CLONE_NEWNET) calls followed by Netlink operations targeting OVS_VPORT_CMD_SET
  • Alert on unexpected host reboots or kernel crash dumps on systems running Open vSwitch

Monitoring Recommendations

  • Enable kdump to capture vmcore files when the OVS subsystem faults, preserving forensic evidence
  • Track CAP_NET_ADMIN acquisition events via auditd rules on unshare and setns syscalls
  • Correlate kernel crash events with preceding low-privilege user activity to identify abuse attempts

How to Mitigate CVE-2026-45840

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the git.kernel.org/stable commits and reboot affected hosts
  • Disable unprivileged user namespaces where feasible by setting kernel.unprivileged_userns_clone=0 or user.max_user_namespaces=0
  • Unload the openvswitch kernel module on systems that do not require it: modprobe -r openvswitch

Patch Information

The fix rejects attempts to set more PIDs than nr_cpu_ids in ovs_vport_set_upcall_portids() and pre-computes the worst-case reply size in ovs_vport_cmd_msg_size() based on that bound. This mirrors the existing logic in ovs_dp_cmd_msg_size() and keeps the per-CPU dispatch path consistent. Patched commits include Linux Kernel Commit 1d6c02b, Linux Kernel Commit 2091c6a, Linux Kernel Commit f99ac36, Linux Kernel Commit f9ef3db, and Linux Kernel Commit fa6e90b.

Workarounds

  • Restrict CAP_NET_ADMIN to trusted system services and avoid granting it to container workloads
  • Disable unprivileged user namespaces via sysctl until kernel patches are deployed
  • Block loading of the openvswitch module on hosts that do not run virtual switching workloads
bash
# Disable unprivileged user namespaces (temporary mitigation)
sysctl -w kernel.unprivileged_userns_clone=0
sysctl -w user.max_user_namespaces=0

# Persist the setting
echo 'kernel.unprivileged_userns_clone=0' >> /etc/sysctl.d/99-cve-2026-45840.conf
echo 'user.max_user_namespaces=0' >> /etc/sysctl.d/99-cve-2026-45840.conf
sysctl --system

# Optionally blacklist openvswitch where unused
echo 'blacklist openvswitch' > /etc/modprobe.d/blacklist-openvswitch.conf

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

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Linux Kernel Commit 1d6c02b

  • Linux Kernel Commit 2091c6a

  • Linux Kernel Commit f99ac36

  • Linux Kernel Commit f9ef3db

  • Linux Kernel Commit fa6e90b
  • Related CVEs
  • CVE-2026-46237: Linux Kernel Buffer Overflow Vulnerability

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

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

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