Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRun as unprivileged user thread with granted EEPROM object
-
DeliveryCall eeprom_write syscall with negative offset
-
ExploitSigned offset wraps unsigned bounds check
-
ExecutionKernel memcpy writes OOB before mock_eeprom
-
ImpactCorrupt adjacent kernel .bss, escape sandbox
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a specific build and grant configuration, not a default production one: CONFIG_USERSPACE=y (user/kernel isolation enabled), a CONFIG_EEPROM_SIMULATOR device instance (status = "okay", default on qemu_x86 and native_sim, otherwise added via a devicetree overlay enabling a zephyr,sim-eeprom node), and that simulated device object explicitly granted to the attacking user thread (as tests/drivers/eeprom/api does via k_object_access_grant and ZTEST_USER). Given those, the attacker is an already-running low-privileged local thread supplying a negative signed off_t offset with a compensating length to eeprom_read()/eeprom_write(). Limiting factors: no remote vector (local only); the caller must already hold the granted device object; and builds that do not instantiate the simulated EEPROM driver or do not enable userspace isolation are not affected - this is a development/test driver, not a production hardware EEPROM backend. |
| Impact | All severity signals point to a genuine but tightly-scoped local privilege-escalation issue rather than a mass-exploitation event. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H = 7.8 HIGH) describes a local, low-complexity attack by an already-authenticated low-privileged actor (PR:L maps to an unprivileged user thread that has been granted the device object), yielding high confidentiality, integrity and availability impact because both the start address and the length of the out-of-bounds span are attacker-selected over kernel .bss. No EPSS score was supplied and the CVE is not listed in CISA KEV, so there is no probabilistic or confirmed-exploitation signal; exploitation status is therefore 'no public exploit identified at time of analysis' - the only references are the fix commit and the GHSA advisory, not proof-of-concept exploit code. The vuln.today priority is 'this_week', consistent with a serious memory-corruption flaw not under active exploitation. The dominant risk limiter is not the CVSS metrics but the affected component: the flaw lives in the simulated EEPROM driver, a development/test driver only built when CONFIG_EEPROM_SIMULATOR and CONFIG_USERSPACE are both enabled and the mock device object is granted to a user thread - a configuration exercised by the in-tree tests/drivers/eeprom/api suite and present by default on qemu_x86/native_sim, but not in typical production firmware. Treat this as a real sandbox-escape primitive to patch on affected branches, while recognizing its real-world blast radius is constrained by the non-production nature of the vulnerable driver. |
| Exploit ScenarioDerived | On a Zephyr build compiled with CONFIG_USERSPACE=y and an enabled simulated-EEPROM node, an unprivileged user thread holding the granted EEPROM device object calls eeprom_write() (or eeprom_read()) with a negative signed offset and a compensating length that wraps the unsigned bounds check back into the accepted range. The kernel then performs memcpy() through the EEPROM() pointer macro at an attacker-chosen address before mock_eeprom, overwriting adjacent kernel .bss with caller-supplied bytes (or reading kernel memory into the caller's buffer), which is sufficient to corrupt kernel state and escape the user-mode sandbox. No public proof-of-concept exploit code is identified, though the in-tree test suite already exercises these syscalls from ZTEST_USER threads. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
Signed-offset bounds-check bypass in Zephyr's simulated EEPROM driver lets a local, low-privileged user thread make the kernel perform out-of-bounds reads and writes relative to the static mock_eeprom array. Affected builds must enable CONFIG_USERSPACE, instantiate a CONFIG_EEPROM_SIMULATOR device (status "okay" by default on qemu_x86 and native_sim, otherwise added through a devicetree overlay), and explicitly grant that device object to the attacking thread, which is exactly the model the in-tree tests/drivers/eeprom/api suite exercises from ZTEST_USER threads. Because both the start address and length are attacker-selected, the primitive is sufficient to read kernel .bss back into the caller's buffer and to overwrite kernel memory preceding the array, corrupting adjacent state and escaping the user-mode sandbox; no public exploit code has been identified at time of analysis, and the exposure is confined to a development/test driver rather than production hardware EEPROM backends.
RemediationAI
Apply the vendor patch: fixed releases are 4.3.2 and 4.5.0, which contain the corrected check rejecting negative offsets and casting before the addition. Backports are merged on main (commit ce2ec9b3a34d71f52f5d1d7491b91393e334713e, PR #118774), v4.4-branch (PR #119415), v4.3-branch (PR #119414) and v3.7-branch (PR #119416), so release lines that have not yet taken the backport remain affected - confirm the applied branch head includes the fix, and consult https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-vf6j-hcx8-44vh and the commit for details. For builds that cannot update immediately, the exposure can be removed by not enabling the simulated EEPROM: set the zephyr,sim-eeprom devicetree node to status = "disabled" (or do not provide the overlay that enables it) and/or turn off CONFIG_EEPROM_SIMULATOR, at the cost of losing the simulated EEPROM and its tests/drivers/eeprom/api coverage; alternatively, stop granting the sim EEPROM device object to unprivileged threads with k_object_access_grant(), which removes the user-mode path to the syscall but also defeats the user-mode test model. Disabling CONFIG_USERSPACE entirely also removes reachability but removes kernel/user isolation for the whole image and is not recommended.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a signed/unsigned arithmetic error (CWE-787, out-of-bounds write) in eeprom_range_is_valid() in drivers/eeprom/eeprom_simulator.c, which validated a request with the single expression (offset + len) <= config->size. Because offset is a signed off_t and len an unsigned size_t of the same rank, the addition is promoted to unsigned, so a negative offset plus a compensating length wraps the sum back into the accepted range. The two sinks are eeprom_sim_read() and eeprom_sim_write(), which memcpy() through the macro EEPROM(addr), defined as (mock_eeprom + (addr)); since mock_eeprom is a static array in kernel .bss on non-POSIX targets, a wrapped offset of this kind resolves to plain pointer arithmetic that lands before the array instead of being an index into a checked window. The privilege differential comes from eeprom_read()/eeprom_write() being declared __syscall in include/zephyr/drivers/eeprom.h: the verification handlers in drivers/eeprom/eeprom_handlers.c only check the device object and the caller's own data buffer (K_SYSCALL_MEMORY_READ / K_SYSCALL_MEMORY_WRITE) and forward the offset argument to the driver unchecked, so the driver's own range test was the sole bound. The defect was introduced with the driver in commit 20623dfa4c0 and first shipped in v2.2.0. The fix rejects offset < 0 and casts before adding, i.e. ((offset < 0) || (((size_t)offset + len) > config->size)) returns invalid.
Know when Zephyr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
A local unprivileged user thread (AV:L, PR:L) triggers the bypass deterministically with no interaction (AC:L, UI:N); attacker-controlled OOB read and write over kernel memory give full C/I/A impact.
Primary rating from Vendor (zephyrproject).
CVSS VectorVendor: zephyrproject
Lifecycle Timeline
2DescriptionCVE.org
The simulated EEPROM driver validated access ranges in eeprom_range_is_valid() (drivers/eeprom/eeprom_simulator.c) with a single test, (offset + len) <= config->size. Because offset is a signed off_t and len an unsigned size_t of the same rank, the addition is evaluated in unsigned arithmetic: a negative offset combined with a compensating len wraps the sum back into the accepted range. eeprom_sim_read() and eeprom_sim_write() then memcpy() through the EEPROM(addr) macro, which is plain pointer arithmetic on the driver's static mock_eeprom array, so the copy addresses memory located before that array.
eeprom_read() and eeprom_write() are __syscall entry points, and their verification handlers in drivers/eeprom/eeprom_handlers.c check only the device object and the caller's own data buffer (K_SYSCALL_MEMORY_READ/K_SYSCALL_MEMORY_WRITE) - the offset argument is passed to the driver unvalidated. With CONFIG_USERSPACE=y, a CONFIG_EEPROM_SIMULATOR device instance, and the device object granted to a user thread (the usage the in-tree tests/drivers/eeprom/api suite exercises from ZTEST_USER threads), an unprivileged thread could supply a negative offset and have the kernel perform the copy on its behalf.
The result is an out-of-bounds read of kernel .bss returned into the caller's buffer and, via the write path, an out-of-bounds write of caller-supplied bytes over kernel memory preceding mock_eeprom. Both the start address and the length of the affected span are attacker-selected, so the primitive is sufficient to corrupt adjacent kernel state and escape the user-mode sandbox. Exposure is limited to builds that instantiate the simulated EEPROM (status = "okay" by default on qemu_x86 and native_sim, otherwise added by a devicetree overlay) together with userspace isolation.
The fix rejects negative offsets and performs the remaining bound check without overflow.
Technical POC Analysis
CWE-787 (out-of-bounds write), reached through a signed/unsigned conversion defect.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity vulnerability in Zephyr's simulated EEPROM test driver could allow a local, low-privileged thread to read and write kernel memory, breaking the user-mode sandbox. This affects only development and test builds that enable specific configurations, not production devices, but could compromise development environments or CI systems and lead to data leakage or code execution if such builds are deployed.
Disable CONFIG_EEPROM_SIMULATOR in all builds where not required; if needed, remove the device from devicetree or avoid granting it to unprivileged threads. Isolate development/test environments from production networks and limit access to trusted personnel. Monitor for vendor patches and apply them when available.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),
An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on
Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit
Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS
Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner
Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability
Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul
zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(
Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul
The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte
Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c
EUVD-2026-123038
NVD
CVE.org
EPSS
GitHub
Exploit-DB