Out-of-bounds Write Affecting u-boot package, versions <2020.10+dfsg-1ubuntu0~18.04.3


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.08% (37th 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-UBUNTU1804-UBOOT-2946780
  • 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:18.04 u-boot to version 2020.10+dfsg-1ubuntu0~18.04.3 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:18.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