Out-of-bounds Write Affecting u-boot package, versions <2021.01+dfsg-3ubuntu0~20.04.5


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.07% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-UBOOT-2946778
  • published11 Jul 2022
  • disclosed23 Sept 2022

Introduced: 11 Jul 2022

CVE-2022-2347  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 u-boot to version 2021.01+dfsg-3ubuntu0~20.04.5 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream u-boot package and not the u-boot package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

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.

CVSS Scores

version 3.1