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-2020-36158

CVE-2020-36158: Linux Kernel mwifiex RCE Vulnerability

CVE-2020-36158 is a remote code execution vulnerability in the Linux Kernel mwifiex driver that allows attackers to execute arbitrary code via a long SSID value. This article covers technical details, affected versions, and mitigations.

Published: March 4, 2026

CVE-2020-36158 Overview

CVE-2020-36158 is a buffer overflow vulnerability in the Marvell WiFi driver (mwifiex) within the Linux kernel. The vulnerability exists in the mwifiex_cmd_802_11_ad_hoc_start function located in drivers/net/wireless/marvell/mwifiex/join.c. An attacker who can provide a long SSID value may be able to exploit this flaw to execute arbitrary code with kernel privileges. This vulnerability affects Linux kernel versions through 5.10.4.

Critical Impact

Successful exploitation of this buffer overflow vulnerability could allow an attacker with local access and elevated privileges to execute arbitrary code in kernel context, potentially leading to complete system compromise.

Affected Products

  • Linux Kernel (through version 5.10.4)
  • Fedora 33
  • Debian Linux 9.0 and 10.0
  • NetApp Cloud Backup
  • NetApp SolidFire Baseboard Management Controller

Discovery Timeline

  • 2021-01-05 - CVE CVE-2020-36158 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-36158

Vulnerability Analysis

The vulnerability is classified as CWE-120 (Buffer Copy without Checking Size of Input), a classic buffer overflow condition. The flaw exists in the ad-hoc network initialization code path within the Marvell wireless driver. When processing SSID values, the mwifiex_cmd_802_11_ad_hoc_start function copies the SSID data into a fixed-size buffer without properly validating that the input length does not exceed the maximum allowed SSID length (IEEE80211_MAX_SSID_LEN, which is 32 bytes).

This lack of bounds checking allows an oversized SSID to overflow the destination buffer, potentially corrupting adjacent memory structures. Since this code executes in kernel space, successful exploitation could lead to arbitrary code execution with full kernel privileges, enabling an attacker to bypass security controls, install rootkits, or completely compromise the affected system.

Root Cause

The root cause of CVE-2020-36158 is the absence of input length validation before the memcpy operation in the mwifiex_cmd_802_11_ad_hoc_start function. The code directly copies req_ssid->ssid_len bytes from the SSID source to the adhoc_start->ssid buffer without verifying that the length does not exceed IEEE80211_MAX_SSID_LEN. This allows an attacker-controlled SSID length value to specify a copy operation larger than the destination buffer can safely accommodate.

Attack Vector

The attack requires local access to the system with high privileges (as indicated by the local attack vector). An attacker could craft a malicious SSID value exceeding 32 bytes and trigger the ad-hoc network start functionality through the Marvell WiFi driver interface. When the vulnerable code processes this oversized SSID, the buffer overflow occurs, potentially allowing the attacker to overwrite adjacent kernel memory and hijack control flow to execute arbitrary code.

c
 
 	memset(adhoc_start->ssid, 0, IEEE80211_MAX_SSID_LEN);
 
+	if (req_ssid->ssid_len > IEEE80211_MAX_SSID_LEN)
+		req_ssid->ssid_len = IEEE80211_MAX_SSID_LEN;
 	memcpy(adhoc_start->ssid, req_ssid->ssid, req_ssid->ssid_len);
 
 	mwifiex_dbg(adapter, INFO, "info: ADHOC_S_CMD: SSID = %s\n",

Source: GitHub Linux Commit

The patch adds a bounds check to truncate req_ssid->ssid_len to IEEE80211_MAX_SSID_LEN (32 bytes) before the memcpy operation, preventing the buffer overflow.

Detection Methods for CVE-2020-36158

Indicators of Compromise

  • Unusual kernel crashes or system instability related to wireless network operations
  • Unexpected ad-hoc network connection attempts with abnormally long SSID values
  • Signs of privilege escalation or unauthorized root access following wireless activity
  • Kernel panic logs referencing the mwifiex driver or mwifiex_cmd_802_11_ad_hoc_start function

Detection Strategies

  • Monitor kernel logs for crashes or errors originating from the mwifiex driver module
  • Implement runtime kernel integrity monitoring to detect unauthorized kernel memory modifications
  • Deploy endpoint detection solutions capable of identifying buffer overflow exploitation patterns
  • Audit systems for Marvell WiFi hardware and verify kernel versions are patched

Monitoring Recommendations

  • Enable detailed wireless driver logging on systems with Marvell WiFi adapters
  • Configure centralized log aggregation for kernel-level events across the infrastructure
  • Implement network-level monitoring for unusual ad-hoc network creation attempts
  • Regularly scan systems to identify unpatched Linux kernel installations

How to Mitigate CVE-2020-36158

Immediate Actions Required

  • Update the Linux kernel to a version containing the security patch (commit 5c455c5ab332773464d02ba17015acdca198f03d)
  • Apply vendor-specific security updates from Debian, Fedora, or NetApp as applicable
  • Consider disabling the mwifiex driver module on systems where Marvell WiFi functionality is not required
  • Restrict local access to affected systems while awaiting patch deployment

Patch Information

The vulnerability has been addressed in the upstream Linux kernel through commit 5c455c5ab332773464d02ba17015acdca198f03d. The fix adds proper bounds checking to ensure the SSID length is clamped to IEEE80211_MAX_SSID_LEN before the copy operation. Distribution-specific patches are available:

  • Linux Kernel Commit
  • Debian Security Advisory DSA-4843
  • Fedora Package Announcement
  • NetApp Security Advisory

Workarounds

  • Blacklist the mwifiex kernel module to prevent it from loading on systems where Marvell WiFi is not essential
  • Restrict local privileged access to systems until patches can be applied
  • Implement host-based intrusion prevention to block kernel exploitation attempts
  • Disable ad-hoc WiFi network functionality if supported by your wireless configuration
bash
# Disable mwifiex driver module by blacklisting
echo "blacklist mwifiex" >> /etc/modprobe.d/blacklist-mwifiex.conf
echo "blacklist mwifiex_pcie" >> /etc/modprobe.d/blacklist-mwifiex.conf
echo "blacklist mwifiex_sdio" >> /etc/modprobe.d/blacklist-mwifiex.conf
echo "blacklist mwifiex_usb" >> /etc/modprobe.d/blacklist-mwifiex.conf

# Apply changes without reboot (if module is currently loaded)
modprobe -r mwifiex_pcie mwifiex_sdio mwifiex_usb mwifiex 2>/dev/null

# Update initramfs to persist changes across reboots
update-initramfs -u

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score6.7

  • EPSS Probability0.58%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Technical References
  • Debian LTS Advisory

  • Debian LTS Advisory

  • Fedora Package Announcement

  • Kernel Mailing List Message

  • Linux Wireless Patch

  • NetApp Security Advisory

  • Debian Security Advisory
  • Vendor Resources
  • Linux Kernel Commit

  • GitHub Linux Commit
  • Related CVEs
  • CVE-2023-32258: Linux Kernel ksmbd RCE Vulnerability

  • CVE-2023-32257: Linux Kernel ksmbd RCE Vulnerability

  • CVE-2023-32254: Linux Kernel ksmbd RCE Vulnerability

  • CVE-2023-32250: Linux Kernel ksmbd RCE 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