Vulnerability · Published Sep 23, 2022 · Assigned by Google
CVE-2022-2347Unchecked Download size in Uboot
High 7.7
In plain English
A high-severity heap buffer overflow in Uboot from Uboot. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | u-boot | 2023.01~rc4+dfsg-2 | DEBIAN-CVE-2022-2347 |
| Debian:13 | u-boot | 2023.01~rc4+dfsg-2 | DEBIAN-CVE-2022-2347 |
| Debian:14 | u-boot | 2023.01~rc4+dfsg-2 | DEBIAN-CVE-2022-2347 |
| Ubuntu:22.04:LTS | u-boot | 2022.01+dfsg-2ubuntu2.3 | USN-5764-1 |
| Ubuntu:22.04:LTS | u-boot | 2022.01+dfsg-2ubuntu2.3 | UBUNTU-CVE-2022-2347 |
| Ubuntu:22.04:LTS | u-boot-nezha | 2022.04+git20220405.7446a472-0ubuntu0.4 | UBUNTU-CVE-2022-2347 |
| Ubuntu:22.04:LTS | u-boot-nezha | 2022.04+git20220405.7446a472-0ubuntu0.4 | USN-6523-1 |
| Ubuntu:24.04:LTS | u-boot-nezha | no fix listed | UBUNTU-CVE-2022-2347 |
Affected products (as reported)
Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H