Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRun as unprivileged user-mode thread
-
DeliveryObtain granted access to charger device object
-
ExploitCall charger_get_prop with crafted property
-
ExecutionDriver returns error or writes one member
-
PersistCopy-out leaks uninitialized kernel-stack union bytes
-
ImpactHarvest pointers to defeat layout randomization
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Return value checking
|
| Exploitation Conditions | Exploitation requires a Zephyr build compiled with CONFIG_USERSPACE=y that includes a charger driver (the handler is gated by zephyr_library_sources_ifdef(CONFIG_USERSPACE charger_handlers.c)), and the attacking user-mode thread must have been granted access to a specific charger device object (e.g. via k_object_access_grant). Given those, no further special configuration is needed: K_SYSCALL_DRIVER_CHARGER() validates only the device object and API pointer, not the property identifier, so the thread freely selects an unimplemented property to force the error path or a narrow one for the success path, and can repeat the call at will. Limiting factors: local access only (AV:L), the required object-access grant (PR:L), the narrow affected configuration, and the small per-call yield (<=16 bytes of stack residue) with no integrity or availability impact. |
| Impact | All signals agree this is a low-urgency issue. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N, base 3.3) describes a local, low-complexity leak requiring an already-privileged-enough user-mode thread (PR:L) that has been granted access to a charger device object, with only limited confidentiality impact and no integrity or availability effect - consistent with CWE-252/CWE-908. It is NOT in CISA KEV (no active exploitation claimed). The vuln.today Decision label is 'monitor', the lowest urgency tier, which aligns with the low CVSS. A working proof-of-concept IS present in the vendor GHSA advisory (the reporter's repro deterministically recovers the sentinel 0xdec0adde across calls), so exploitability of the leak itself is demonstrated - but this is a disclosure primitive, not a code-execution bug: it leaks up to the union size (12 bytes on 32-bit, 16 on 64-bit) of supervisor stack residue, useful mainly to defeat ASLR/layout assumptions when chained with a separate memory-safety flaw. EPSS score is NOT provided in the input, so probabilistic exploitation likelihood cannot be stated; no SSVC decision tree values were supplied either. No signals conflict. Net: a real but minor hardening fix, correctly rated low priority - not a high-CVSS-but-low-risk mismatch, simply a genuinely low-severity information disclosure. |
| Exploit ScenarioDerived | An unprivileged user-mode thread on a CONFIG_USERSPACE=y Zephyr build that has been granted access to a charger device object calls charger_get_prop() with an unimplemented property (forcing the driver error path) or a narrow one (success path), and reads back the full union buffer. Because the handler copied the whole uninitialized union, the returned bytes are stale privileged-stack residue - potentially kernel object addresses or saved return addresses. A public PoC in the vendor advisory demonstrates deterministic recovery of leaked stack contents across repeated calls. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
Kernel stack information disclosure in the Zephyr RTOS charger subsystem: the user-mode syscall verifier z_vrfy_charger_get_prop() copies a full union charger_propval back into the calling user thread's buffer without checking the charger driver's return code and without initializing the union beforehand. Zephyr builds with CONFIG_USERSPACE=y that include a charger driver are affected - release ranges 3.5.0 through 4.3.1 and 4.4.0 through 4.4.2 - and any user-mode thread granted access to a charger device object can repeat the call at will, choosing an unimplemented property to force the error path or a narrow property to take the success path. Each call yields up to 12 bytes (32-bit) or 16 bytes (64-bit) of privileged-stack residue that may contain kernel object addresses and saved return addresses, useful for defeating address-layout assumptions when chaining a separate memory-safety bug; there is no integrity or availability impact. All signals agree this is a low-urgency issue, with no CISA KEV entry; the vendor advisory includes a public reproducer/PoC, which is not verified working exploit code.
RemediationAI
Vendor-released patches fix this in Zephyr 4.3.2 and 4.5.0; both fix commits are required together, since 5054384e983c (https://github.com/zephyrproject-rtos/zephyr/commit/5054384e983c105b90d704272abcd479486ae3a2) only skips the copy-out when the back end reports an error - a tree carrying just that one still leaks on every successful call - while c31cac727d02 (https://github.com/zephyrproject-rtos/zephyr/commit/c31cac727d029f273a67f65941985696f1882867) zeroes the union before the driver call so the copied bytes are driver-written data or zeros. Both fixes are merged on main, v4.4-branch, v4.3-branch and v3.7-branch (PRs 116280/117062/117060/117061 and 117932/119988/119987/119989), so backports exist for maintained lines that have not yet tagged a release; consult GHSA-rghm-r3c9-92qc for the current status. Where updating is not immediately possible, the exposure can be removed by not granting user-mode threads access to charger device objects (dropping the k_object_access_grant or equivalent access policy), at the cost of user threads no longer being able to query charger properties, or by building without CONFIG_USERSPACE, which excludes charger_handlers.c entirely but removes user-mode isolation for the whole application.
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 defect combines CWE-252 (unchecked return value) with CWE-908 (use of uninitialized resource). charger_get_prop() is declared __syscall in include/zephyr/drivers/charger.h, so a user-mode caller reaches the kernel-side verifier in drivers/charger/charger_handlers.c, which is only compiled in via zephyr_library_sources_ifdef(CONFIG_USERSPACE charger_handlers.c). The verifier declares union charger_propval k_val on the privileged stack, passes it to the back end through z_impl_charger_get_prop(), and then unconditionally runs K_OOPS(k_usermode_to_copy(val, &k_val, sizeof(union charger_propval))). Two exposure paths follow: in-tree back ends that reject the requested property return an error without touching the value pointer - charger_gpio_get_prop() is ARG_UNUSED(val); return -ENOTSUP, and bq24190_get_prop() has a default: return -ENOTSUP arm - leaving the whole union as stack residue; on success a back end writes only the union member the property selects (for example sbs_charger.c writes the single byte val->present for CHARGER_PROP_PRESENT and returns 0) while the handler still copies the entire union. The union is bounded by its largest member, struct charger_current_notifier {uint8_t; uint32_t; uint32_t}, giving 12 bytes on 32-bit targets and 16 bytes on 64-bit targets where 8-byte notifier function pointers widen it. The K_SYSCALL_DRIVER_CHARGER()/K_SYSCALL_SPECIFIC_DRIVER validation in include/zephyr/internal/syscall_handler.h checks only the device object and its API pointer, not the property identifier, so prop is attacker-chosen. The handler shipped with the original 'charger: Initial charger dedicated API' commit a7adb06ff48 (first released in v3.5.0) and neither guard is present at any affected release tag.
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:L/I:N/A:N
Local user-mode call (AV:L, AC:L) needs a granted charger-object access so PR:L; only a bounded stack-memory read, giving C:L with I:N/A:N.
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
DescriptionCVE.org
The user-mode system call verifier z_vrfy_charger_get_prop() in drivers/charger/charger_handlers.c declares an uninitialized union charger_propval k_val on the kernel (privileged) stack, passes it to the charger driver back end via z_impl_charger_get_prop(), and then copies the full sizeof(union charger_propval) back into the calling user thread's buffer with k_usermode_to_copy(). That discloses kernel stack contents on two paths:
On error. The copy-out ignores the driver's return code. In-tree back ends return an error without writing through the value pointer for properties they do not implement: charger_gpio_get_prop() returns -ENOTSUP unconditionally, and bq24190_get_prop() has a default: return -ENOTSUP; arm that never touches val. The whole union is then stack residue. On success. A back end writes only the one union member the requested property selects (for example sbs_charger.c writes the one-byte val->present for CHARGER_PROP_PRESENT and returns 0), yet the handler still copies the whole union, so every byte beyond that member is uninitialized.
The handler is compiled only when CONFIG_USERSPACE=y and is reachable by any user-mode thread that has been granted access to a charger device object. K_SYSCALL_DRIVER_CHARGER() validates only the device object and its API pointer, not the property identifier, so an unprivileged thread can choose prop freely: an unimplemented property forces the error path, a narrow one the success path, and the call can be repeated at will.
Each call discloses up to the size of the union (12 bytes on a 32-bit target, 16 bytes on 64-bit targets where the function-pointer members widen it) of supervisor-stack memory. The bytes are residue of earlier kernel-side frames on the thread's privileged stack and can contain kernel object addresses and saved return addresses, which an unprivileged thread cannot otherwise observe and which help defeat address-layout assumptions when exploiting a separate memory-safety defect. There is no integrity or availability impact.
Two commits fix it, and both are needed. 5054384e983c skips the copy-out when the back end reports an error. c31cac727d02 zeroes the union before the driver call, so the bytes copied out on success are driver-written data or zeros. A tree carrying only the first still leaks on every successful call.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-124524
NVD
CVE.org
EPSS
GitHub
Exploit-DB