Out-of-bounds Read Affecting zephyrproject-rtos/zephyr package, versions [,3.6.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (11th 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 ID SNYK-UNMANAGED-ZEPHYRPROJECTRTOSZEPHYR-8163325
  • published 7 Oct 2024
  • disclosed 4 Oct 2024
  • credit ekleezg

How to fix?

Upgrade zephyrproject-rtos/zephyr to version 3.6.0 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read due to utf8_trunc in zephyr/lib/utils/utf8.c file, last_byte_p can point to one byte before the string pointer if the string is empty. An attacker can read data outside the intended buffer boundaries by supplying an empty string as input.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
5.3 medium
  • Attack Vector (AV)
    Adjacent
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    Low
  • Availability (VA)
    Low
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None