CVE-2026-12634: bounds in zephyrproject zephyr
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.
AI Analysis
Technical Summary
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.
CVE-2026-12634: bounds in zephyrproject 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
Affected software
zephyrproject
zephyr
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.