Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-31421

CVE-2026-31421: Linux Kernel cls_fw NULL Pointer Vulnerability

CVE-2026-31421 is a NULL pointer dereference flaw in Linux kernel's cls_fw component affecting shared blocks. Attackers may trigger kernel crashes through packet classification. This article covers technical details, impact, and mitigation.

Published: April 17, 2026

CVE-2026-31421 Overview

A NULL pointer dereference vulnerability has been discovered in the Linux kernel's network traffic control subsystem, specifically within the cls_fw (firewall classifier) module. The vulnerability exists in the fw_classify() function when processing packets on shared blocks with empty cls_fw filters attached.

When a shared block configuration is used, the block->q pointer remains NULL. The legacy classification path in fw_classify() calls tcf_block_q() and attempts to dereference q->handle, resulting in a NULL pointer dereference when a packet with a nonzero major skb mark is classified through an empty cls_fw filter attached to the shared block.

Critical Impact

Exploitation of this vulnerability can cause kernel crashes and denial of service conditions on affected Linux systems utilizing traffic control shared blocks with cls_fw filters.

Affected Products

  • Linux Kernel (multiple stable versions)
  • Systems using net/sched Traffic Control subsystem
  • Configurations utilizing shared blocks with cls_fw classifier

Discovery Timeline

  • April 13, 2026 - CVE-2026-31421 published to NVD
  • April 13, 2026 - Last updated in NVD database

Technical Details for CVE-2026-31421

Vulnerability Analysis

The vulnerability resides in the firewall classifier module (net/sched/cls_fw.c) of the Linux kernel's traffic control subsystem. The issue manifests when the legacy classification method is invoked on shared block configurations.

Shared blocks in the Linux traffic control subsystem are designed to allow multiple qdiscs (queueing disciplines) to share the same set of filters. However, unlike traditional block configurations where block->q points to the associated qdisc, shared blocks intentionally leave block->q as NULL since they can be attached to multiple qdiscs simultaneously.

The fw_classify() function contains a legacy code path that assumes block->q is always valid. When processing packets through this path, the function calls tcf_block_q() to retrieve the qdisc pointer and then accesses q->handle. This creates a NULL pointer dereference vulnerability when:

  1. An empty cls_fw filter is attached to a shared block
  2. A packet with a nonzero major skb mark enters the classification path
  3. The legacy classification method is triggered

The KASAN (Kernel Address SANitizer) report identifies the crash occurring at memory range [0x0000000000000038-0x000000000000003f], which corresponds to the offset of the handle field within the qdisc structure.

Root Cause

The root cause is insufficient validation in the fw_classify() function's legacy code path. The function fails to verify that block->q is non-NULL before dereferencing it. This oversight becomes exploitable when shared blocks are used, as they deliberately maintain a NULL block->q pointer.

The fix introduces validation in fw_change() to reject configurations that attempt to use the old method (without TCA_OPTIONS) on shared blocks, since the fw_classify() legacy path requires a valid block->q pointer that shared blocks cannot provide.

Attack Vector

The vulnerability can be triggered through local access by:

  1. Creating a shared block configuration in the traffic control subsystem
  2. Attaching an empty cls_fw filter to the shared block without specifying TCA_OPTIONS
  3. Sending network traffic that triggers packet classification with a nonzero major skb mark

The attack call trace follows this path:

fw_classify (net/sched/cls_fw.c:81)
└─> tcf_classify (net/sched/cls_api.c:1764, 1860)
└─> tc_run (net/core/dev.c:4401)
└─> __dev_queue_xmit (net/core/dev.c:4535, 4790)

Detection Methods for CVE-2026-31421

Indicators of Compromise

  • Kernel panic or oops messages referencing fw_classify in net/sched/cls_fw.c
  • KASAN reports indicating NULL pointer dereference in range 0x0000000000000038-0x000000000000003f
  • System crashes during network traffic processing on systems using shared block configurations

Detection Strategies

  • Monitor kernel logs for NULL pointer dereference errors originating from the cls_fw module
  • Deploy KASAN-enabled kernels in test environments to detect exploitation attempts
  • Audit traffic control configurations for shared blocks using cls_fw classifiers without TCA_OPTIONS

Monitoring Recommendations

  • Enable kernel logging and monitor for oops/panic events in the net/sched subsystem
  • Implement crash dump collection to capture kernel state during exploitation attempts
  • Review traffic control configurations periodically for potentially vulnerable setups

How to Mitigate CVE-2026-31421

Immediate Actions Required

  • Apply the kernel patches to affected systems immediately
  • Review and audit existing traffic control configurations using shared blocks
  • Consider temporarily avoiding cls_fw filters on shared blocks until patches are applied
  • Monitor systems for signs of exploitation or unexpected crashes

Patch Information

The Linux kernel maintainers have released patches across multiple stable branches. The fix modifies fw_change() to reject legacy method configurations (without TCA_OPTIONS) when applied to shared blocks.

Patches are available via the following kernel git commits:

  • Kernel Git Commit 18328eff
  • Kernel Git Commit 3cb055df
  • Kernel Git Commit 3d41f9a3
  • Kernel Git Commit 5cf41031
  • Kernel Git Commit 96426c34
  • Kernel Git Commit faeea8bb

Workarounds

  • Avoid using cls_fw filters on shared blocks until patches are deployed
  • Use alternative classifiers (such as cls_flower or cls_u32) for shared block configurations
  • Ensure all cls_fw filter configurations include proper TCA_OPTIONS attributes
bash
# Check for potentially vulnerable configurations
# List all shared blocks and their attached filters
tc filter show block

# Review cls_fw filter usage
tc filter show | grep fw

# Alternative: Use cls_flower instead of cls_fw on shared blocks
tc filter add block 1 flower action drop

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit 18328eff

  • Kernel Git Commit 3cb055df

  • Kernel Git Commit 3d41f9a3

  • Kernel Git Commit 5cf41031

  • Kernel Git Commit 96426c34

  • Kernel Git Commit faeea8bb
  • Related CVEs
  • CVE-2026-31439: Linux Kernel XDMA Error Handling Flaw

  • CVE-2026-31441: Linux Kernel Memory Leak Vulnerability

  • CVE-2026-31434: Linux Kernel Memory Leak Vulnerability

  • CVE-2026-31435: Linux Kernel Read Abandonment 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