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
    • 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-2022-25258

CVE-2022-25258: Linux Kernel Buffer Overflow Vulnerability

CVE-2022-25258 is a buffer overflow flaw in the Linux Kernel USB Gadget subsystem that can cause memory corruption through improper validation. This article covers technical details, affected versions, and mitigations.

Published: February 17, 2026

CVE-2022-25258 Overview

CVE-2022-25258 is a memory corruption vulnerability discovered in the Linux kernel's USB Gadget subsystem, specifically in the drivers/usb/gadget/composite.c file. The vulnerability exists in versions prior to 5.16.10 and stems from inadequate validation of interface OS descriptor requests. Attackers with physical access to a vulnerable system can craft malicious requests using large array indices or requests that result in NULL function pointer retrieval, potentially causing memory corruption and system instability.

Critical Impact

Physical access exploitation can lead to memory corruption in the Linux kernel USB Gadget subsystem, potentially causing denial of service conditions on affected systems including enterprise storage appliances and virtualization platforms.

Affected Products

  • Linux Kernel (versions before 5.16.10)
  • Fedora 35
  • Debian Linux 9.0, 10.0, 11.0
  • NetApp Active IQ Unified Manager (VMware vSphere)
  • NetApp H300S/H500S/H700S/H410S/H410C Firmware

Discovery Timeline

  • February 16, 2022 - CVE-2022-25258 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-25258

Vulnerability Analysis

The vulnerability resides in the USB Gadget composite driver's handling of OS descriptor requests. The affected code path processes interface-related requests without properly validating the interface index or checking for NULL function pointers before use. When processing requests with the w_value parameter, the code extracts an interface number but fails to verify that this value falls within acceptable bounds (less than MAX_CONFIG_INTERFACES) or that the corresponding interface pointer is valid.

This lack of validation creates two distinct attack scenarios: first, an attacker can provide a large array index that exceeds the bounds of the interface array, leading to out-of-bounds memory access; second, the code may attempt to use a NULL function pointer when the requested interface does not exist, resulting in a null pointer dereference condition.

Root Cause

The root cause is a missing bounds check and NULL pointer validation in drivers/usb/gadget/composite.c. The code directly uses the interface number derived from the w_value parameter to index into the os_desc_cfg->interface array without verifying that:

  1. The interface index is less than MAX_CONFIG_INTERFACES
  2. The corresponding interface pointer is not NULL

This is classified as CWE-476 (NULL Pointer Dereference), where the application dereferences a pointer that it expects to be valid but is NULL, leading to a crash or potentially exploitable condition.

Attack Vector

The attack requires physical access to the target device (Attack Vector: Physical). An attacker must be able to connect a malicious USB device or manipulate USB communications to send specially crafted OS descriptor requests to the vulnerable USB Gadget subsystem. The attack does not require user interaction or privileges, and can be executed with low complexity once physical access is obtained.

The attacker crafts a USB request with a manipulated w_value parameter containing an interface index that either exceeds the valid range or references a non-existent interface, triggering the memory corruption or NULL pointer dereference.

c
 				if (w_index != 0x5 || (w_value >> 8))
 					break;
 				interface = w_value & 0xFF;
+				if (interface >= MAX_CONFIG_INTERFACES ||
+				    !os_desc_cfg->interface[interface])
+					break;
 				buf[6] = w_index;
 				count = count_ext_prop(os_desc_cfg,
 					interface);

Source: Linux Commit 75e5b48

The patch adds proper validation by checking that the interface index is within bounds (interface >= MAX_CONFIG_INTERFACES) and that the interface pointer is not NULL (!os_desc_cfg->interface[interface]) before proceeding with the request processing.

Detection Methods for CVE-2022-25258

Indicators of Compromise

  • Unexpected kernel panics or system crashes related to USB subsystem operations
  • Kernel log entries showing NULL pointer dereferences in drivers/usb/gadget/composite.c
  • Suspicious USB device connection events followed by system instability
  • Crash dumps indicating memory corruption in the USB Gadget composite driver

Detection Strategies

  • Monitor kernel logs (dmesg) for NULL pointer dereference errors originating from the USB Gadget subsystem
  • Implement USB device monitoring to detect unusual or malformed USB descriptors and OS descriptor requests
  • Deploy kernel-level intrusion detection to identify attempts to trigger the vulnerable code path
  • Use SentinelOne's behavioral analysis to detect anomalous USB device interactions and kernel-level exploitation attempts

Monitoring Recommendations

  • Enable comprehensive kernel logging for USB subsystem events with increased verbosity
  • Configure alerts for kernel oops or panic events associated with the composite.c driver
  • Implement physical security controls to limit unauthorized USB device connections to sensitive systems
  • Utilize SentinelOne Singularity platform to monitor for kernel-level anomalies and potential exploitation attempts

How to Mitigate CVE-2022-25258

Immediate Actions Required

  • Update the Linux kernel to version 5.16.10 or later immediately on all affected systems
  • Apply vendor-specific patches from Debian, Fedora, and NetApp as applicable to your environment
  • Restrict physical access to systems running vulnerable kernel versions until patches can be applied
  • Consider disabling USB Gadget functionality if not required for system operation

Patch Information

The vulnerability has been addressed in Linux kernel version 5.16.10 and later. The fix adds proper bounds checking and NULL pointer validation before accessing the interface array. The patch is available via the Linux Kernel ChangeLog 5.16.10 and the specific commit can be reviewed at Linux Commit 75e5b48.

Distribution-specific patches are available through:

  • Debian Security Advisory DSA-5092
  • Debian Security Advisory DSA-5096
  • Fedora Package Announcement
  • NetApp Security Advisory NTAP-20221028-0007

Workarounds

  • Implement physical security controls to prevent unauthorized USB device connections
  • Disable USB Gadget functionality via kernel configuration if the feature is not required
  • Use USB device whitelisting to restrict which devices can connect to the system
  • Deploy endpoint detection and response (EDR) solutions like SentinelOne to detect exploitation attempts
bash
# Check current kernel version
uname -r

# Verify if USB Gadget module is loaded
lsmod | grep gadget

# Disable USB Gadget module if not required (temporary)
sudo modprobe -r usb_f_fs
sudo modprobe -r libcomposite

# Block USB Gadget module from loading (persistent)
echo "blacklist libcomposite" | sudo tee /etc/modprobe.d/disable-usb-gadget.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

  • SeverityMEDIUM

  • CVSS Score4.6

  • EPSS Probability0.18%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • GitHub PoC Repository

  • Debian LTS Announcement March 2022

  • Debian LTS Announcement March 2022

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20221028-0007

  • Debian Security Advisory DSA-5092

  • Debian Security Advisory DSA-5096
  • Vendor Resources
  • Linux Kernel ChangeLog 5.16.10

  • Linux Commit 75e5b48
  • Related CVEs
  • CVE-2026-23448: Linux Kernel Buffer Overflow Vulnerability

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

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

  • CVE-2026-31402: 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