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-2023-31436

CVE-2023-31436: Linux Kernel Buffer Overflow Vulnerability

CVE-2023-31436 is a buffer overflow vulnerability in the Linux Kernel's QFQ scheduler that enables out-of-bounds writes. This article covers the technical details, affected kernel versions, security impact, and mitigation.

Published: February 4, 2026

CVE-2023-31436 Overview

CVE-2023-31436 is an out-of-bounds write vulnerability in the Linux kernel's Quick Fair Queueing (QFQ) network scheduler. The flaw exists in the qfq_change_class function within net/sched/sch_qfq.c, where insufficient validation of the lmax parameter allows it to exceed QFQ_MIN_LMAX, leading to memory corruption. This vulnerability affects Linux kernel versions prior to 6.2.13 and can be exploited by local attackers to achieve privilege escalation or cause system instability.

Critical Impact

Local attackers with limited privileges can exploit this out-of-bounds write vulnerability to corrupt kernel memory, potentially leading to privilege escalation, arbitrary code execution in kernel context, or denial of service conditions.

Affected Products

  • Linux Kernel versions prior to 6.2.13
  • Linux Kernel versions in 4.x, 5.x, and 6.x branches (prior to patched versions)
  • Various Linux distributions including Debian (addressed in DSA-5402)

Discovery Timeline

  • April 28, 2023 - CVE-2023-31436 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-31436

Vulnerability Analysis

The vulnerability resides in the QFQ (Quick Fair Queueing) packet scheduler, a kernel component responsible for managing network traffic queuing and scheduling. The flaw occurs in qfq_change_class(), which handles the configuration of QFQ classes through the traffic control (tc) subsystem.

The root issue is an improper bounds check on the lmax (maximum packet length) parameter. When a user configures a QFQ class without explicitly specifying TCA_QFQ_LMAX, the code falls back to using psched_mtu() to determine the maximum packet length. However, the original code only validated lmax when it was explicitly provided via netlink attributes, not when derived from the MTU default path.

This oversight means that if psched_mtu() returns a value outside the valid range (less than QFQ_MIN_LMAX or greater than 1 << QFQ_MTU_SHIFT), the unchecked value propagates into the scheduler's internal data structures, leading to out-of-bounds memory access in subsequent operations like qfq_activate_agg().

Root Cause

The vulnerability stems from CWE-787 (Out-of-bounds Write). The conditional validation logic placed the bounds check inside the if (tb[TCA_QFQ_LMAX]) block, meaning the check only executed when lmax was explicitly provided. When the default MTU path was taken via the else branch, no validation occurred. This allowed potentially invalid lmax values to be used in array index calculations, resulting in slab out-of-bounds writes in the kernel heap.

Attack Vector

Exploitation requires local access to the system with the ability to configure network traffic control settings. An attacker with CAP_NET_ADMIN capability or equivalent permissions can craft malicious netlink messages to the kernel's traffic control subsystem, specifying QFQ class parameters that trigger the vulnerable code path. The out-of-bounds write can corrupt adjacent kernel heap objects, potentially enabling:

  1. Kernel heap corruption leading to privilege escalation
  2. Arbitrary kernel memory modification
  3. Denial of service through kernel panic or system instability
c
// Security patch from net/sched/sch_qfq.c
// Source: https://github.com/torvalds/linux/commit/3037933448f60f9acb705997eae62013ecb81e0d
 	} else
 		weight = 1;
 
-	if (tb[TCA_QFQ_LMAX]) {
+	if (tb[TCA_QFQ_LMAX])
 		lmax = nla_get_u32(tb[TCA_QFQ_LMAX]);
-		if (lmax < QFQ_MIN_LMAX || lmax > (1UL << QFQ_MTU_SHIFT)) {
-			pr_notice("qfq: invalid max length %u\n", lmax);
-			return -EINVAL;
-		}
-	} else
+	else
 		lmax = psched_mtu(qdisc_dev(sch));
 
+	if (lmax < QFQ_MIN_LMAX || lmax > (1UL << QFQ_MTU_SHIFT)) {
+		pr_notice("qfq: invalid max length %u\n", lmax);
+		return -EINVAL;
+	}
+
 	inv_w = ONE_FP / weight;
 	weight = ONE_FP / inv_w;

Source: GitHub Linux Commit 3037933

Detection Methods for CVE-2023-31436

Indicators of Compromise

  • Unexpected kernel crashes or oops messages referencing qfq_activate_agg or sch_qfq module
  • Suspicious traffic control configuration attempts via tc commands targeting QFQ scheduler
  • Kernel log entries showing "qfq: invalid max length" warnings
  • Anomalous netlink socket activity from unprivileged processes attempting network scheduler modifications

Detection Strategies

  • Monitor kernel logs for slab corruption warnings or out-of-bounds access messages related to network scheduling
  • Implement auditd rules to track tc command execution and netlink socket operations
  • Deploy kernel integrity monitoring to detect unauthorized modifications to traffic control configurations
  • Use SentinelOne's kernel-level monitoring to detect exploitation attempts targeting the QFQ scheduler

Monitoring Recommendations

  • Enable kernel KASAN (Kernel Address Sanitizer) in development environments to detect out-of-bounds memory access
  • Configure syslog alerting for kernel oops and panic events involving network scheduler components
  • Monitor for processes attempting to load or configure the sch_qfq kernel module
  • Implement network namespace monitoring to detect privilege escalation attempts via traffic control manipulation

How to Mitigate CVE-2023-31436

Immediate Actions Required

  • Update the Linux kernel to version 6.2.13 or later immediately
  • Apply distribution-specific security patches (Debian DSA-5402, or equivalent for your distribution)
  • If immediate patching is not possible, consider unloading the sch_qfq kernel module if QFQ scheduling is not required
  • Review and restrict CAP_NET_ADMIN capability assignments to minimize the attack surface

Patch Information

The vulnerability was fixed in Linux kernel version 6.2.13. The patch (commit 3037933448f60f9acb705997eae62013ecb81e0d) restructures the validation logic to ensure lmax bounds checking occurs regardless of whether the value is explicitly provided or derived from the MTU default. Major Linux distributions have released corresponding security updates:

  • Debian: Security Advisory DSA-5402
  • Debian LTS: Announcement June 2023
  • NetApp: Security Advisory NTAP-20230609-0001
  • Kernel Live Patches are available via Packet Storm Security Notices for supported distributions

Workarounds

  • Unload the sch_qfq module if QFQ packet scheduling is not required: modprobe -r sch_qfq
  • Blacklist the sch_qfq module to prevent automatic loading by adding it to /etc/modprobe.d/blacklist.conf
  • Restrict access to network namespaces and traffic control capabilities using Linux Security Modules (LSM)
  • Implement container security policies to prevent CAP_NET_ADMIN capability assignment to untrusted workloads
bash
# Configuration example - Disable QFQ scheduler module
# Unload the sch_qfq module if currently loaded
sudo modprobe -r sch_qfq

# Prevent automatic loading by blacklisting
echo "blacklist sch_qfq" | sudo tee /etc/modprobe.d/blacklist-qfq.conf

# Verify the module is not loaded
lsmod | grep sch_qfq

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

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • Packet Storm Security Notice LSN-0095-1

  • Packet Storm Security Notice LSN-0096-1

  • Packet Storm Security Notice LSN-0099-1

  • Debian LTS Announcement June 2023

  • NetApp Security Advisory NTAP-20230609-0001

  • Debian Security Advisory DSA-5402
  • Vendor Resources
  • Linux Kernel ChangeLog 6.2.13

  • GitHub Linux Commit 3037933

  • Spinics Stable Commits Message
  • Related CVEs
  • CVE-2026-31449: Linux Kernel Buffer Overflow Vulnerability

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

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

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