
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."