Out-of-bounds Write Affecting u-boot-nezha package, versions <2022.04+git20220405.7446a472-0ubuntu0.4


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-UBUNTU2204-UBOOTNEZHA-6094947
  • published29 Nov 2023
  • disclosed23 Sept 2022

Introduced: 23 Sep 2022

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

How to fix?

Upgrade Ubuntu:22.04 u-boot-nezha to version 2022.04+git20220405.7446a472-0ubuntu0.4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream u-boot-nezha package and not the u-boot-nezha package as distributed by Ubuntu. See How to fix? for Ubuntu:22.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