Integer Overflow or Wraparound Affecting barebox package, versions [,2024.12.0)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Not Defined

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-BAREBOX-8737910
  • published19 Feb 2025
  • disclosed19 Feb 2025
  • creditUnknown

Introduced: 19 Feb 2025

NewCVE-2024-57261  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade barebox to version 2024.12.0 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound in the request2size() function. An attacker can trigger this by providing a req value between LONG_MAX - (SIZE_SZ + MALLOC_ALIGN_MASK) - 1 and LONG_MAX, which wraps around to MINSIZE.

CVSS Scores

version 4.0
version 3.1