CVE-2026-19669
Last modified
CVE-2026-19669 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. The user-mode syscall verifiers z_vrfy_fuel_gauge_get_props() and z_vrfy_fuel_gauge_set_props() in drivers/fuel_gauge/fuel_gauge_syscall_handlers.c declared two variable-length arrays, union fuel_gauge_prop_val k_vals[len] and fuel_gauge_prop_t k_props[len], sized directly by the caller-supplied len argument. len is an unvalidated size_t taken straight from the syscall ABI, and the VLAs were allocated before any check at all — including before the K_SYSCALL_DRIVER_FUEL_GAUGE() object-permission check. EPSS estimates a 0.12% chance of exploitation in the next 30 days.
Description
The user-mode syscall verifiers z_vrfy_fuel_gauge_get_props() and z_vrfy_fuel_gauge_set_props() in drivers/fuel_gauge/fuel_gauge_syscall_handlers.c declared two variable-length arrays, union fuel_gauge_prop_val k_vals[len] and fuel_gauge_prop_t k_props[len], sized directly by the caller-supplied len argument. len is an unvalidated size_t taken straight from the syscall ABI, and the VLAs were allocated before any check at all — including before the K_SYSCALL_DRIVER_FUEL_GAUGE() object-permission check. The subsequent k_usermode_from_copy() calls validated only that the user source buffer was readable; the kernel destination was never bounds-checked, since it was sized by the same attacker-chosen len. Any thread running in user mode with CONFIG_USERSPACE enabled can invoke fuel_gauge_get_props() or fuel_gauge_set_props() with a large len. This first displaces the supervisor stack pointer by an arbitrary attacker-chosen amount — Zephyr does not build with stack-clash probing, so the displacement itself does not fault, and the nested calls made by the verifier then write frames below the privileged stack. If the caller has been granted access to a fuel-gauge device object, the memcpy inside k_usermode_from_copy() additionally writes len * sizeof(union fuel_gauge_prop_val) bytes of fully attacker-controlled data starting well below the stack base. CONFIG_PRIVILEGED_STACK_SIZE defaults to 1024 bytes, so a len of roughly 170 already exhausts it. The result is an out-of-bounds write in supervisor mode with attacker-controlled length and, on the permitted path, attacker-controlled content — a break out of the user-mode sandbox into kernel memory, leading to kernel code execution or a system crash. A stack guard region does not contain it, because the copy begins below the guard and walks upward, corrupting unprotected memory before the guard is reached. The fix removes the kernel-side copies entirely and validates the caller's arrays in place with K_SYSCALL_MEMORY_ARRAY_READ() / K_SYSCALL_MEMORY_ARRAY_WRITE(), which also handle the len * size multiplication overflow; this is safe because neither fuel_gauge_prop_t nor union fuel_gauge_prop_val contains embedded pointers.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 3.4.0, < 4.5.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-19669?
How severe is CVE-2026-19669?
How do I fix CVE-2026-19669?
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-1966YugabyteDB Anywhere displays LDAP bind passwords configured …2.4
- CVE-2026-19660The Divi Membership plugin for WordPress is vulnerable to Au…9.8
- CVE-2026-19662An attacker may be able to cause a `named` resolver to abort…5.9
- CVE-2026-19666On a resolver configured to use ``dns64``, if an applicable …7.5
- CVE-2026-19667If an attacker-controlled authoritative server can produce a…7.5
- CVE-2026-19668A BIND recursive resolver may experience excessive resource …5.3
- CVE-2026-19670Malcolm's nginx Lua role-based access control (RBAC) layer d…5.4
- CVE-2026-19671Malcolm's upload-processing pipeline (scripts/safe-extract.p…6.5
- CVE-2026-19672The tarfile module's tar and data extraction filters create…6.3
- CVE-2026-19673ethernet_recv() in subsys/net/l2/ethernet/ethernet.c validat…7.1
- CVE-2026-19676The user-mode verifier for the peci_transfer() system call, …7.8
- CVE-2026-19677An authentication bypass vulnerability in the public onPhase…9.3
Are you affected by CVE-2026-19669?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
