Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-19947 Overview
CVE-2026-19947 is a missing authorization vulnerability [CWE-862] in the Zephyr RTOS device multiplexer pseudo-driver located in drivers/misc/devmux/devmux.c. The flaw affects the devmux_select_get() and devmux_select_set() system calls when CONFIG_USERSPACE is enabled. Their user-mode verifiers forward requests directly to the kernel implementations without performing kernel-object validation. An unprivileged user-mode thread can read and change which downstream device a multiplexer forwards to, bypassing the userspace object-permission model.
Critical Impact
An unprivileged user-mode thread can redirect or suppress console, log, and shell output by changing a devmux selection without holding permission on the device object.
Affected Products
- Zephyr RTOS builds with CONFIG_USERSPACE=y and CONFIG_DEVMUX=y
- Zephyr configurations depending on CONFIG_DEVICE_MUTABLE
- Devicetree configurations containing a zephyr,devmux node
Discovery Timeline
- 2026-10-21 - CVE-2026-19947 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-19947
Vulnerability Analysis
The defect sits in the Zephyr userspace syscall boundary for the devmux driver. The verifiers z_vrfy_devmux_select_get() and z_vrfy_devmux_select_set() call directly into the kernel implementations without invoking k_object_access_check() or a driver object check. The kernel implementations still validate the pointer against the static devmux instance table and bounds-check the selection index, so no out-of-bounds access or arbitrary pointer dereference is reachable. The failure is purely one of authorization.
Because a devmux forwards the data, configuration, and API of the selected downstream device, redirecting the selection has direct observable effects. Documented uses include zephyr,console and zephyr,shell-uart switching. An attacker can suppress console, log, and shell output, redirect that output to a downstream device the attacker observes, or flip the selection underneath another thread that is legitimately using the multiplexer.
Root Cause
Two defects compound each other. First, the user-mode verifiers never call k_object_access_check() on the device pointer. Second, DEVICE_DT_INST_DEFINE() registered devmux instances with a NULL driver API pointer. This causes scripts/build/gen_kobject_list.py to skip devmux instances entirely, so a devmux device had no struct k_object at all. No permission on the device could be granted or withheld in the first place.
Attack Vector
A user-mode thread invokes devmux_select_set() with a compile-time constant device pointer such as DEVICE_DT_GET(DT_NODELABEL(devmux0)). The syscall accepts the pointer from a thread that has never been granted access to the device and forwards it to the kernel implementation, which performs the selection change. Impact is bounded to the devicetree-fixed set of downstream devices.
// Patch excerpt: include/zephyr/drivers/misc/devmux/devmux.h
// Declares a tracked driver API so devmux becomes a K_OBJ_DRIVER_DEVMUX object.
/**
* @driver_ops{DEVMUX}
*/
__subsystem struct devmux_driver_api {
/**
* @driver_ops_mandatory Callback API to get the current selection of a devmux device.
*/
int (*select_get)(const struct device *dev);
/**
* @driver_ops_mandatory Callback API to set the selection of a devmux device.
*/
int (*select_set)(struct device *dev, size_t index);
};
Source: Zephyr commit 4b7f983
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-19947
Indicators of Compromise
- Unexpected loss or truncation of zephyr,console or zephyr,shell-uart output during normal runtime.
- Shell or log output appearing on an unintended downstream UART or peripheral.
- Threads observing a devmux selection value that changes without a legitimate caller.
Detection Strategies
- Audit firmware builds for CONFIG_USERSPACE=y combined with CONFIG_DEVMUX=y and a zephyr,devmux devicetree node.
- Inspect generated kernel object lists for the presence of K_OBJ_DRIVER_DEVMUX entries corresponding to each devmux instance.
- Instrument devmux_select_set() with telemetry to log the calling thread identity and the requested index.
Monitoring Recommendations
- Correlate user-mode syscall traces with devmux selection changes to identify unauthorized callers.
- Monitor shell and console subsystems for unexpected silence that may indicate output redirection.
- Validate at boot that every devmux instance registered through DEVICE_DT_INST_DEFINE() has a non-NULL driver API pointer.
How to Mitigate CVE-2026-19947
Immediate Actions Required
- Apply the upstream Zephyr patch referenced in GHSA-8m8g-f5jf-x28x.
- Rebuild and reflash affected firmware images with the fixed devmux driver.
- Confirm that each devmux device now registers as a K_OBJ_DRIVER_DEVMUX kernel object.
Patch Information
The fix declares __subsystem struct devmux_driver_api and attaches a DEVICE_API(devmux, devmux_api) instance to each devmux device so that it becomes a tracked K_OBJ_DRIVER_DEVMUX kernel object. The verifiers z_vrfy_devmux_select_get() and z_vrfy_devmux_select_set() now call K_OOPS(devmux_inst_get(dev) == SIZE_MAX) and K_OOPS(k_object_access_check(dev) != 0) before forwarding to the kernel implementation. Refer to Zephyr commit 4b7f983 for the complete change.
Workarounds
- Disable CONFIG_DEVMUX in the project configuration if the experimental multiplexer is not required.
- Avoid granting user-mode threads access to devicetree labels for devmux instances until the patch is deployed.
- Restrict applications that rely on zephyr,console or zephyr,shell-uart switching to supervisor-mode threads where feasible.
# Configuration example: disable the experimental devmux subsystem
CONFIG_DEVMUX=n
CONFIG_DEVICE_MUTABLE=n
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

