Heap-based Buffer Overflow Affecting u-boot package, versions [,2025.01-rc1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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-UNMANAGED-UBOOT-8678811
  • published30 Jan 2025
  • disclosed30 Jan 2025
  • creditRichard Weinberger

Introduced: 30 Jan 2025

NewCVE-2024-57259  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade u-boot to version 2025.01-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the sqfs_search_dir() function. res needs to be large enough to store both strings rem and target, plus the path separator and the terminator. Currently the space for the path separator is not accounted, so the heap is corrupted by one byte.

CVSS Scores

version 4.0
version 3.1