Skip to main content
EPSS 0.1%top 97%

CVE-2026-12634: bounds in zephyrproject zephyr

0
Medium
VulnerabilityCVE-2026-12634cvecve-2026-12634
Published: 08/19/2026 (08/19/2026, 20:37:36 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: zephyr

Description

CVE-2026-12634 is a medium-severity vulnerability in the Zephyr project's settings subsystem. It involves an out-of-bounds write of a single NUL byte past a fixed 74-byte stack buffer when reading stored setting-name entries from flash memory. This occurs because the nvs_read() function returns the full stored entry length, which can exceed the buffer size, and this length is used directly as the NUL terminator index without proper bounds checking. Exploitation requires an attacker with the ability to write directly to the flash backing the settings partition, such as a co-resident or untrusted component or physical access. The impact is limited to denial of service or crash due to stack corruption; there is no confidentiality impact and no network exposure via the normal settings API. The vulnerability affects Zephyr versions from 2.0.0 up to but not including 4.5.0. The fix involves skipping entries whose length exceeds the buffer size before writing the NUL terminator.

CVSS v3.1

Score 5.3medium

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H

Affected software

zephyrproject

zephyr

Affected versions
>=2.0.0 <4.5.0
GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=2.0.0 <4.5.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/11/2026, 07:32:56 UTC

Technical Analysis

The vulnerability in Zephyr's settings subsystem (subsys/settings/src/settings_nvs.c) arises from improper handling of stored setting-name entries read into a fixed 74-byte stack buffer. The nvs_read() function returns the full stored entry length, which can be larger than the buffer size, but this length is used directly as the index to write a terminating NUL byte, causing a single-byte out-of-bounds write on the stack. This can only be triggered by an attacker capable of writing to the flash memory backing the settings partition, such as through a malicious image or physical access. The out-of-bounds write leads to limited stack corruption and potential denial of service or crash but does not allow code execution or confidentiality breaches. The vulnerability is present in Zephyr versions >=2.0.0 and <4.5.0. The patch skips entries with lengths exceeding the buffer size to prevent the out-of-bounds write.

Potential Impact

An attacker with the ability to write to the flash memory backing the settings partition can cause a single-byte out-of-bounds write on the stack during settings load or save operations. This can lead to denial of service or system crash due to stack corruption. There is no impact on confidentiality or integrity beyond limited stack corruption, and the vulnerability cannot be exploited remotely through the normal settings API.

Mitigation Recommendations

A fix is available that prevents the out-of-bounds write by skipping any stored setting-name entry whose length returned by nvs_read() is greater than or equal to the buffer size before writing the terminating NUL byte. Users should upgrade to Zephyr version 4.5.0 or later where this fix is included. Until then, ensure that only trusted components have write access to the flash backing the settings partition to mitigate exploitation risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
zephyr
Date Reserved
2026-06-18T15:22:31.233Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a861799acd9273b499c15a6

Added to database: 08/19/2026, 20:52:41 UTC

Last enriched: 09/11/2026, 07:32:56 UTC

Last updated: 10/02/2026, 09:07:39 UTC

Views: 61

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses