# CVE-2026-19669: Unbounded variable-length array in fuel gauge syscall verifiers allows kernel stack overflow from user mode

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-10-11T17:14:51.720Z
- **Modified:** 2026-11-04T05:18:49.633Z

## Who should check

- Anyone running zephyrproject zephyr \>= 3.4.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## 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.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.4.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-19669. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-19669.md
Affected: zephyrproject zephyr >= 3.4.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-19669 being exploited?

There is no confirmed exploitation: CVE-2026-19669 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-19669?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-19669?

zephyrproject zephyr \>= 3.4.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

### Is there a fix for CVE-2026-19669?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-19669?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-6ghg-cmrw-8gw5>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/0d65ce46dda0626164503c50f37e6e1f59d310a9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-19669>

HTML: <https://flawdb.com/CVE-2026-19669> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-19669>
