CVE-2026-12634
Last modified
CVE-2026-12634 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. The NVS backend of the Zephyr settings subsystem (subsys/settings/src/settings_nvs.c) reads stored setting-name entries into fixed 74-byte stack buffers and NUL-terminates them with buf[rc] = '\0', where rc is the return value of nvs_read(). Per its contract, nvs_read() returns the full stored entry length (wlk_ate.len), which can exceed the supplied buffer length — only MIN(len, stored_len) bytes are actually copied, but the return value may be much larger, bounded only by the NVS sector size. EPSS estimates a 0.10% chance of exploitation in the next 30 days.
Description
The NVS backend of the Zephyr settings subsystem (subsys/settings/src/settings_nvs.c) reads stored setting-name entries into fixed 74-byte stack buffers and NUL-terminates them with buf[rc] = '\0', where rc is the return value of nvs_read(). Per its contract, nvs_read() returns the full stored entry length (wlk_ate.len), which can exceed the supplied buffer length — only MIN(len, stored_len) bytes are actually copied, but the return value may be much larger, bounded only by the NVS sector size. Three sites (settings_nvs_cache_match(), settings_nvs_load(), and settings_nvs_save()) used this value directly as the NUL index without clamping, so an oversized stored name entry causes a single \0 byte to be written past the end of the stack buffer at an attacker-influenced offset (CWE-787). The oversized entry cannot arise through the normal settings API, where names are bounded by SETTINGS_MAX_NAME_LEN. It requires an actor able to write the flash that backs the settings partition — a co-resident or untrusted component sharing the flash device, a malicious settings image/restore, or offline/physical flash access (a shared-flash threat model). The malformed entry is parsed when settings_load() runs at boot or subsystem init, or during settings_save(). The out-of-bounds write is a single NUL byte at an offset equal to the crafted entry length (up to the NVS sector size), so the practical impact is a crash or denial of service and limited stack corruption rather than reliable code execution. There is no confidentiality impact, and the path is not reachable from the network through the ordinary settings interface. The fix skips any entry whose nvs_read() length is greater than or equal to the buffer size before performing the NUL store.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 2.0.0, < 4.5.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-12634?
How severe is CVE-2026-12634?
How do I fix CVE-2026-12634?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-12629The ARM PL011 UART driver in drivers/serial/uart_pl011.c fai…4.6
- CVE-2026-1263The Webling plugin for WordPress is vulnerable to Stored Cro…6.4
- CVE-2026-12630Zephyr's 6LoWPAN IP Header Compression (IPHC) uncompression …4.3
- CVE-2026-12631The Zephyr kernel validates the k_thread_join() and k_thread…6.5
- CVE-2026-12632Zephyr's Precision Time Protocol receive handler ptp_msg_pos…6.5
- CVE-2026-12633The IPv6 neighbor-discovery code in subsys/net/ip/ipv6_nbr.c…8.1
- CVE-2026-12635GitLab has remediated an issue in GitLab CE/EE affecting all…3.1
- CVE-2026-1264IBM Sterling B2B Integrator and IBM Sterling File Gateway 6.…6.5
- CVE-2026-12644Versions of the package ts-deepmerge before 8.0.0 are vulner…5.5
- CVE-2026-12645A Missing Authorization vulnerability in Ivanti Neurons for …8.8
- CVE-2026-12646A Missing Authorization vulnerability in Ivanti Neurons for …8.8
- CVE-2026-12647A Missing Authorization vulnerability in Ivanti Neurons for …8.8
Are you affected by CVE-2026-12634?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
