Skip to main content

Zephyr RTOS CVE-2026-19809

| EUVDEUVD-2026-124524 LOW
Unchecked Return Value (CWE-252)
2026-11-12 zephyr
3.3
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Run as unprivileged user-mode thread
  2. Delivery
    Obtain granted access to charger device object
  3. Exploit
    Call charger_get_prop with crafted property
  4. Execution
    Driver returns error or writes one member
  5. Persist
    Copy-out leaks uninitialized kernel-stack union bytes
  6. Impact
    Harvest 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Zephyr 4.4.0 <4.5.0
Zephyr 3.5.0 <4.3.2

Affected Packages

euvd zephyr fix: 4.3.2, 4.5.0

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

Vendor (zephyr) PRIMARY 3.3 LOW
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 3.3 LOW

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

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

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
popular embedded RTOS, but leak only in userspace-enabled builds with charger driver
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

16
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +16
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy