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-2022-2347

CVE-2022-2347: Denx U-boot Buffer Overflow Vulnerability

CVE-2022-2347 is a buffer overflow vulnerability in Denx U-boot's DFU implementation that allows physical attackers to write beyond heap-allocated buffers. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-2347 Overview

CVE-2022-2347 is a heap-based buffer overflow vulnerability in the U-Boot bootloader's USB Device Firmware Upgrade (DFU) implementation. The vulnerability stems from an unchecked length field in USB DFU download setup packets, where the wLength field is not properly bounded. Additionally, the implementation fails to verify that the transfer direction corresponds to the specified command. This allows a physical attacker with USB access to craft a malicious DFU download setup packet with a wLength value exceeding 4096 bytes, enabling writes beyond the heap-allocated request buffer.

Critical Impact

Physical attackers can exploit this heap overflow to potentially achieve arbitrary code execution during the boot process, compromising system integrity before the operating system loads.

Affected Products

  • Denx U-Boot (all versions prior to patch)

Discovery Timeline

  • 2022-09-23 - CVE-2022-2347 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2022-2347

Vulnerability Analysis

This vulnerability affects the USB DFU subsystem within U-Boot, a widely deployed open-source bootloader used in embedded systems, IoT devices, and development boards. The root issue lies in how DFU download setup packets are processed—specifically, the wLength field that specifies the data transfer size is not validated against the actual buffer allocation size.

When a USB DFU download request is received, U-Boot allocates a heap buffer to store the incoming data. However, the code trusts the wLength value provided in the USB setup packet without verifying it falls within acceptable bounds (4096 bytes or less). Furthermore, there is no validation that the transfer direction matches what the DFU command expects, creating an additional attack surface.

The physical attack vector requirement (requiring USB access to the target device) means exploitation necessitates local proximity to the vulnerable device. However, the changed scope indicator in the vulnerability assessment suggests that successful exploitation could impact resources beyond the vulnerable component, potentially allowing an attacker to compromise the entire system during boot.

Root Cause

The vulnerability is caused by insufficient input validation in the U-Boot DFU handler (CWE-122: Heap-based Buffer Overflow, CWE-787: Out-of-bounds Write). The code fails to implement proper bounds checking on the wLength field from USB control transfer setup packets before using it to determine how much data to copy into the heap-allocated buffer. This missing validation allows attackers to specify arbitrary lengths, leading to heap corruption.

Attack Vector

An attacker requires physical access to a USB port on the target device running U-Boot with DFU functionality enabled. The attack proceeds as follows:

  1. The attacker connects a malicious USB device or uses a USB attack platform (such as a Facedancer or similar USB emulator)
  2. The attacker initiates a DFU session with the target device
  3. A crafted USB DFU download setup packet is sent with a wLength value exceeding 4096 bytes
  4. U-Boot processes the packet without validating the length, writing data beyond the heap buffer boundary
  5. By carefully crafting the overflow payload, the attacker can corrupt heap metadata or adjacent data structures, potentially achieving code execution

The vulnerability mechanism involves the USB control transfer handling in U-Boot's DFU implementation. When processing a DFU_DNLOAD request, the bootloader reads the wLength field from the USB setup packet structure to determine the incoming data size. Without bounds checking, this value directly influences memory operations. Technical details are available in the OSS-Sec Mailing List discussion.

Detection Methods for CVE-2022-2347

Indicators of Compromise

  • Unexpected USB device connections or enumeration events during boot sequences
  • System crashes, hangs, or unexpected reboots during DFU operations
  • Memory corruption indicators in boot logs if debug logging is enabled
  • Unusual heap allocation patterns or memory access violations in U-Boot diagnostic output

Detection Strategies

  • Monitor boot logs for anomalous DFU-related messages or memory errors
  • Implement physical security controls to restrict unauthorized USB access to embedded devices
  • Deploy endpoint detection solutions capable of monitoring pre-boot environments where applicable
  • Audit U-Boot configurations to identify devices with DFU functionality enabled unnecessarily

Monitoring Recommendations

  • Establish baseline boot behavior and alert on deviations during DFU operations
  • Implement hardware-based attestation where possible to detect boot process tampering
  • Log and review all firmware update attempts on critical embedded systems
  • Consider USB port disabling or lockdown mechanisms for production devices that don't require DFU

How to Mitigate CVE-2022-2347

Immediate Actions Required

  • Update U-Boot to a patched version that includes proper bounds checking for DFU wLength fields
  • Disable USB DFU functionality in U-Boot configuration if not required for device operation
  • Implement physical access controls to prevent unauthorized USB connections to affected devices
  • Consider deploying USB port blockers or disabling USB ports at the hardware level for critical systems

Patch Information

Users should update to a patched version of U-Boot that addresses this vulnerability. Refer to the Debian LTS Security Announcement for distribution-specific patch information. For embedded devices, contact your device manufacturer or system integrator for firmware updates that include the U-Boot fix.

Additional technical details and discussion can be found in the OSS-Sec Mailing List.

Workarounds

  • Disable DFU functionality by recompiling U-Boot without CONFIG_USB_FUNCTION_DFU enabled
  • Physically secure devices to prevent unauthorized USB access
  • Implement boot-time security mechanisms such as Secure Boot to validate bootloader integrity
  • Use epoxy or USB port covers to physically block unused USB ports on embedded devices
bash
# Configuration example - Disable DFU in U-Boot build configuration
# In your U-Boot defconfig or .config file:
# CONFIG_USB_FUNCTION_DFU is not set
# CONFIG_CMD_DFU is not set

# Rebuild U-Boot after disabling DFU support
make clean
make <your_board>_defconfig
make -j$(nproc)

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechDenx U Boot

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-122

  • CWE-787
  • Technical References
  • OSS-Sec Mailing List Update

  • Debian LTS Security Announcement
  • Related CVEs
  • CVE-2022-30790: Denx U-Boot 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