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-2026-31531

CVE-2026-31531: Linux Kernel Nexthop DoS Vulnerability

CVE-2026-31531 is a denial of service flaw in the Linux kernel's IPv4 nexthop handling that causes failures with large nexthop groups. This article covers the technical details, affected versions, and mitigation strategies.

Published: April 23, 2026

CVE-2026-31531 Overview

CVE-2026-31531 is a vulnerability in the Linux kernel's IPv4 nexthop handling that affects the rtm_get_nexthop() function. When querying a nexthop object via RTM_GETNEXTHOP, the kernel allocates a fixed-size socket buffer (skb) using NLMSG_GOODSIZE. While this allocation is sufficient for single nexthops and small Equal-Cost Multi-Path (ECMP) groups, it fails when handling large nexthop groups containing 512 or more nexthops, triggering a kernel warning and potential denial of service conditions.

Critical Impact

This vulnerability can cause kernel warnings and potential system instability when processing large nexthop group queries via the netlink interface, affecting network routing operations on Linux systems.

Affected Products

  • Linux Kernel (IPv4 nexthop subsystem)
  • Systems using large ECMP nexthop groups (512+ nexthops)
  • Linux-based networking appliances and routers

Discovery Timeline

  • April 23, 2026 - CVE-2026-31531 published to NVD
  • April 23, 2026 - Last updated in NVD database

Technical Details for CVE-2026-31531

Vulnerability Analysis

The vulnerability exists in the rtm_get_nexthop() function within net/ipv4/nexthop.c. The function is responsible for handling RTM_GETNEXTHOP netlink requests, which query nexthop objects from the kernel's routing subsystem. The core issue stems from the use of a static buffer size (NLMSG_GOODSIZE) that cannot accommodate the response data for large nexthop groups.

When a user-space application queries a nexthop group with a large number of entries (such as 512 nexthops in an ECMP configuration), the allocated buffer is insufficient to hold the complete response. This triggers a warning at line 3395 of nexthop.c and causes the operation to fail. The call trace shows the path from do_syscall_64 through the netlink message handling subsystem to the vulnerable function.

Root Cause

The root cause is the static allocation strategy using NLMSG_GOODSIZE for the socket buffer in rtm_get_nexthop(). The function did not account for variable-sized nexthop groups, and the nh_nlmsg_size_grp() function was not correctly calculating the required buffer size based on the actual nexthop group configuration. Additionally, the size calculation was missing the NHA_FDB attribute size, further contributing to potential buffer insufficiency.

Attack Vector

An attacker or user with the ability to create large nexthop groups and query them via the RTM_GETNEXTHOP netlink interface could trigger this vulnerability. The attack requires local access or the ability to send netlink messages to the kernel, typically requiring appropriate capabilities or root-level access. While iproute2 currently limits group sizes and would fail before triggering this issue, custom tools or modified utilities could bypass these user-space limitations.

The vulnerability manifests when the kernel attempts to serialize a large nexthop group response into the undersized buffer. The fix involves dynamically allocating the skb using nh_nlmsg_size() and nlmsg_new(), consistent with the behavior in nexthop_notify(). This ensures the buffer is appropriately sized for the actual nexthop group being queried.

Detection Methods for CVE-2026-31531

Indicators of Compromise

  • Kernel warning messages containing rtm_get_nexthop in system logs
  • Stack traces in dmesg referencing net/ipv4/nexthop.c:3395
  • Failed netlink queries when retrieving large nexthop groups
  • Unexpected routing subsystem errors or instability

Detection Strategies

  • Monitor kernel logs (dmesg, journalctl) for WARNING messages from rtm_get_nexthop
  • Implement monitoring for netlink socket errors related to routing queries
  • Deploy kernel tracing (ftrace, eBPF) to track rtm_get_nexthop() failures
  • Use SentinelOne's Singularity platform to detect kernel anomalies and warning patterns

Monitoring Recommendations

  • Enable kernel logging at appropriate verbosity levels to capture warning splats
  • Monitor system stability metrics on systems with large ECMP configurations
  • Track netlink message processing statistics for anomalies
  • Implement alerting on repeated routing subsystem failures

How to Mitigate CVE-2026-31531

Immediate Actions Required

  • Update the Linux kernel to a patched version containing the fix
  • Avoid configuring nexthop groups with 512 or more entries until patched
  • Review network configurations for large ECMP group usage
  • Monitor affected systems for warning messages and instability

Patch Information

The Linux kernel development team has released patches to address this vulnerability. The fix modifies rtm_get_nexthop() to dynamically allocate the socket buffer using nh_nlmsg_size() and nlmsg_new(), matching the existing nexthop_notify() behavior. Additionally, nh_nlmsg_size_grp() has been updated to correctly calculate buffer sizes based on passed flags, and NHA_FDB is now included in nexthop group size calculations.

Patches are available through the following kernel commits:

  • Kernel Git Commit 14cf0cd
  • Kernel Git Commit 40bd39e
  • Kernel Git Commit 615517f
  • Kernel Git Commit 635038fe

Workarounds

  • Limit nexthop group sizes to fewer than 512 entries until the patch is applied
  • Implement network topology changes to reduce ECMP group sizes
  • Use multiple smaller nexthop groups instead of single large groups
  • Restrict access to netlink interfaces on sensitive systems
bash
# Check current kernel version
uname -r

# View applied patches (if using git-based kernel)
git log --oneline net/ipv4/nexthop.c | head -20

# Monitor for vulnerability-related warnings
dmesg | grep -i "rtm_get_nexthop"

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit 14cf0cd

  • Kernel Git Commit 40bd39e

  • Kernel Git Commit 615517f

  • Kernel Git Commit 635038fe
  • Related CVEs
  • CVE-2026-31739: Linux Kernel Tegra Crypto DoS Vulnerability

  • CVE-2026-43054: Linux Kernel tcm_loop DOS Vulnerability

  • CVE-2026-31736: Linux Kernel MTK PPE DoS Vulnerability

  • CVE-2026-31727: Linux Kernel USB Gadget DoS 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