CVE-2022-2347 Unchecked Download size in Uboot
A physical attacker can exploit an unchecked length field in U-Boot's DFU implementation to write beyond heap buffers, potentially executing arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-2347?
CVE-2022-2347 is a high-severity memory corruption vulnerability in Uboot, published on 23 Sep 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
There exists an unchecked length field in UBoot. The U-Boot DFU implementation does not bound the length field in USB DFU download setup packets, and it does not verify that the transfer direction corresponds to the specified command. Consequently, if a physical attacker crafts a USB DFU download setup packet with a `wLength` greater than 4096 bytes, they can write beyond the heap-allocated request buffer.
Which versions are affected by CVE-2022-2347?
It affects 1 product.
Products include Denx U-Boot.
How do I fix CVE-2022-2347?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-2347 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-2347 exists.
Other vulnerabilities in Uboot
Sources
Also known as DEBIAN-CVE-2022-2347, GHSA-57ww-qgjv-3g3c, OESA-2024-2186, OESA-2024-2187, OESA-2024-2188, OESA-2024-2189 and 1 more.