Skip to content

Bluetooth: Mesh: Out-of-Bound Write in gen_prov_cont

High
ceolin published GHSA-r3j3-c5v7-2ppf Nov 26, 2025

Package

zephyr (zephyr)

Affected versions

<= 4.2

Patched versions

None

Description

‭There is a potential OOB write in the gen_prov_cont function of the
pb_adv.c file. This‬ ‭vulnerability occurs because the seg variable,
which is user-controlled, is used to compute the‬ ‭offset where data is
copied into. However, an integer underflow and overflow invalidates
its‬ ‭validation.

‭Potential Impact‬

‭An out-of-bound write can lead to an arbitrary code execution. This is more severe in real-time‬
‭operating systems like Zephyr that run in embedded devices without common memory‬
‭protection systems. Even on devices with some form of memory protection, this can still lead to‬
‭a crash and a resultant denial of service.‬

Patches

main: #95061
4.2: #97518
4.1: #97517

For more information

If you have any questions or comments about this advisory:

embargo: 2025-11-24

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Adjacent
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

CVE ID

CVE-2025-9557

Weaknesses

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow. Learn more on MITRE.

Credits