CVE-2022-2347
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2022-2347 is a security vulnerability discovered in U-Boot, a popular bootloader for embedded systems. The vulnerability affects versions from v2012.10-rc1 onwards on all systems with CONFIGDFUOVERUSB or CONFIGSPL_DFU enabled. The issue was publicly disclosed on July 8, 2022, by Sultan Qasim Khan from NCC Group (OSS Security).

Technical details

The vulnerability exists in the U-Boot DFU (Device Firmware Update) implementation, which fails to bound the length field in USB DFU download setup packets and doesn't verify the transfer direction for the specified command. The issue is located in the drivers/usb/gadget/fdfu.c file, specifically affecting the dfuhandle, statedfuidle, statedfudnloadidle, and handlednload functions. The vulnerability has a CVSS score of 7.7 (AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N) (OSS Security).

Impact

When exploited, this vulnerability allows data beyond the heap-allocated req->buf buffer to be corrupted or read by a connected USB host when a device running U-Boot is in DFU mode. This can potentially enable a malicious host to gain code execution on the device running U-Boot or read sensitive data from the device (OSS Security).

Mitigation and workarounds

The recommended mitigation is to limit USB transfer lengths to a maximum of DFUUSBBUFSIZ before adding them to the endpoint transfer queue in dfuhandle. Additionally, every DFU setup packet handler should verify that the direction bit ctrl->bRequestType & USBDIR_IN matches the request type. Various Ubuntu versions have released patches, including updates for Ubuntu 22.10, 22.04 LTS, 20.04 LTS, and 18.04 LTS (Ubuntu Security Notice).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59030HIGH7.5
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-59029MEDIUM5.3
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-devel
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management