CVE-2026-12634: bounds in zephyrproject zephyr
CVE-2026-12634 is a medium severity vulnerability in the Zephyr project's settings subsystem where a fixed-size stack buffer is used to read setting-name entries. An attacker with the ability to write directly to the flash backing the settings partition can craft oversized entries that cause a single out-of-bounds NUL byte write past the buffer. This can lead to a crash or denial of service due to limited stack corruption. The vulnerability is not exploitable remotely via the normal settings API and does not impact confidentiality. The issue affects Zephyr versions 2.0.0 and all versions from 2.0.0 up to but not including 4.5.0. No official patch or remediation level has been confirmed yet.
AI Analysis
Technical Summary
The vulnerability exists in the NVS backend of the Zephyr settings subsystem where stored setting-name entries are read into fixed 74-byte stack buffers. The function nvs_read() returns the full stored entry length, which can exceed the buffer size. The code uses this length directly as the index to NUL-terminate the buffer without clamping, causing a single out-of-bounds write of a NUL byte past the buffer boundary. This requires an attacker capable of writing to the flash device backing the settings partition, such as a co-resident or untrusted component, malicious image restore, or physical flash access. The out-of-bounds write can cause a crash or denial of service but does not allow code execution or confidentiality breaches. The vulnerability is triggered during settings_load() at boot or subsystem initialization, or during settings_save(). The fix involves skipping entries whose length exceeds the buffer size before writing the NUL byte, but no official patch is currently confirmed.
Potential Impact
The vulnerability can cause a denial of service or crash due to a single out-of-bounds NUL byte write on the stack, resulting in limited stack corruption. There is no impact on confidentiality or integrity beyond limited corruption, and the vulnerability cannot be exploited remotely through the normal settings API. Exploitation requires write access to the flash device backing the settings partition, which is a high-barrier threat model involving co-resident components or physical access.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves skipping any entry whose length returned by nvs_read() is greater than or equal to the buffer size before performing the NUL termination. Until an official patch is available, restrict or monitor access to the flash device backing the settings partition to prevent unauthorized writes.
CVE-2026-12634: bounds in zephyrproject zephyr
Description
CVE-2026-12634 is a medium severity vulnerability in the Zephyr project's settings subsystem where a fixed-size stack buffer is used to read setting-name entries. An attacker with the ability to write directly to the flash backing the settings partition can craft oversized entries that cause a single out-of-bounds NUL byte write past the buffer. This can lead to a crash or denial of service due to limited stack corruption. The vulnerability is not exploitable remotely via the normal settings API and does not impact confidentiality. The issue affects Zephyr versions 2.0.0 and all versions from 2.0.0 up to but not including 4.5.0. No official patch or remediation level has been confirmed yet.
CVSS v3.1
Score 5.3medium
Affected software
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 exists in the NVS backend of the Zephyr settings subsystem where stored setting-name entries are read into fixed 74-byte stack buffers. The function nvs_read() returns the full stored entry length, which can exceed the buffer size. The code uses this length directly as the index to NUL-terminate the buffer without clamping, causing a single out-of-bounds write of a NUL byte past the buffer boundary. This requires an attacker capable of writing to the flash device backing the settings partition, such as a co-resident or untrusted component, malicious image restore, or physical flash access. The out-of-bounds write can cause a crash or denial of service but does not allow code execution or confidentiality breaches. The vulnerability is triggered during settings_load() at boot or subsystem initialization, or during settings_save(). The fix involves skipping entries whose length exceeds the buffer size before writing the NUL byte, but no official patch is currently confirmed.
Potential Impact
The vulnerability can cause a denial of service or crash due to a single out-of-bounds NUL byte write on the stack, resulting in limited stack corruption. There is no impact on confidentiality or integrity beyond limited corruption, and the vulnerability cannot be exploited remotely through the normal settings API. Exploitation requires write access to the flash device backing the settings partition, which is a high-barrier threat model involving co-resident components or physical access.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves skipping any entry whose length returned by nvs_read() is greater than or equal to the buffer size before performing the NUL termination. Until an official patch is available, restrict or monitor access to the flash device backing the settings partition to prevent unauthorized writes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-18T15:22:31.233Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a861799acd9273b499c15a6
Added to database: 08/19/2026, 20:52:41 UTC
Last enriched: 08/19/2026, 21:09:28 UTC
Last updated: 08/19/2026, 21:13:13 UTC
Views: 5
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.