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-18418 Overview
CVE-2026-18418 is an out-of-bounds read [CWE-125] in the Zephyr RTOS zbus proxy agent IPC backend. The flaw lives in subsys/zbus/proxy_agent/zbus_proxy_agent_ipc.c, where a rejected inter-domain frame is logged with a plain %s conversion. The struct zbus_proxy_msg frame carries a fixed-size channel_name[] array that the transport does not guarantee is NUL-terminated. On the error path, strlen() inside the log packager walks past the frame object, disclosing adjacent memory into the receiving domain's log sink.
Critical Impact
A peer domain controlling a second core on the same SoC can leak small amounts of IPC thread stack memory or shared vring memory into the log output, with a possible fatal fault if the scan crosses a mapped region boundary.
Affected Products
- Zephyr RTOS builds with CONFIG_ZBUS_PROXY_AGENT_IPC enabled
- Zephyr builds with logging configured at warning level or above (default)
- Multi-core SoC deployments using the icmsg or rpmsg IPC backends
Discovery Timeline
- 2026-10-11 - CVE-2026-18418 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-18418
Vulnerability Analysis
The zbus proxy agent IPC backend processes inter-domain frames from peer domains over a bound ipc_service endpoint. When zbus_proxy_agent_receive_cb() in subsys/zbus/proxy_agent/zbus_proxy_agent.c rejects a frame, the dispatch code in zbus_proxy_agent_ipc.c emits a LOG_WRN that formats msg->channel_name with %s.
The rejection paths are precisely those where the channel name has been found invalid, or where an out-of-range message_size means the name has not been inspected at all. The log packager then calls strlen() on a buffer that is not guaranteed to contain a terminating NUL byte within the frame object.
With the icmsg backend, the frame resides in a stack buffer belonging to the IPC work-queue thread. The scan therefore reads bytes of that thread's stack into the log string. With the rpmsg backends, the scan continues through shared vring memory. The log packager's own -ENOSPC bound prevents the overrun from becoming a write, so impact is bounded to information disclosure plus a possible fatal fault.
Root Cause
The root cause is a mismatch between frame-format assumptions and logging code. The channel_name[] array is the fixed-size last member of struct zbus_proxy_msg, and the transport does not require that the byte sequence contain a NUL terminator. The %s conversion specifier expects a C string, so the formatter walks past the frame boundary.
Attack Vector
Any peer domain able to place a frame of sizeof(struct zbus_proxy_msg) bytes on the bound ipc_service endpoint can trigger the read. The adversary crafts a frame with an out-of-range message_size, or supplies channel_name[] bytes containing no NUL. Exploitation requires control over the firmware of the peer domain, typically a second core on the same SoC, so the attack vector is local and privilege is high.
if (ipc_data->recv_cb) {
ret = ipc_data->recv_cb(ipc_data->recv_cb_config_ptr, msg);
if (ret < 0) {
- LOG_WRN("Proxy agent receive callback failed for channel '%s': %d",
+ /*
+ * The frame comes from a peer domain and, on the recv_cb
+ * error path, channel_name[] is not guaranteed to be
+ * NUL-terminated within the fixed-size frame.
+ */
+ LOG_WRN("Proxy agent receive callback failed for channel '%.*s': %d",
+ (int)MIN(msg->channel_name_len, sizeof(msg->channel_name)),
msg->channel_name, ret);
}
}
Source: Zephyr Project patch commit fc065f7
The fix replaces %s with %.*s and bounds the printed length using MIN(msg->channel_name_len, sizeof(msg->channel_name)).
Detection Methods for CVE-2026-18418
Indicators of Compromise
- Log entries matching Proxy agent receive callback failed for channel containing non-printable byte sequences or unusually long channel strings
- Fatal faults originating from the IPC work-queue thread shortly after receiving a malformed proxy frame
- Unexpected content fragments resembling thread stack data or vring buffer contents appearing in warning-level log sinks
Detection Strategies
- Audit Zephyr firmware builds for CONFIG_ZBUS_PROXY_AGENT_IPC=y combined with logging levels at warning or higher
- Review peer-core firmware images to verify that neither core can be independently modified by an attacker with physical or supply-chain access
- Inspect proxy agent log output for channel names containing bytes outside the printable ASCII range
Monitoring Recommendations
- Capture and retain warning-level logs from the proxy agent for post-incident forensic analysis
- Monitor for fatal exceptions on the IPC work-queue thread, which may indicate scan overruns into unmapped memory
- Track firmware versions across multi-core SoC fleets to ensure the fixed Zephyr commit is deployed on every core
How to Mitigate CVE-2026-18418
Immediate Actions Required
- Apply the upstream Zephyr patch from commit fc065f79a568a6c6cc14b89795bd60e5eabd6f02 to all affected firmware builds
- Rebuild and reflash both the host and peer-domain firmware on multi-core SoCs that use the zbus proxy agent
- Review trust boundaries between cores on the same SoC and restrict firmware update capabilities on peer domains
Patch Information
The official fix is tracked in GitHub Security Advisory GHSA-48w8-fjhj-r9w8 and merged in Zephyr commit fc065f7. The patch replaces the unbounded %s conversion with %.*s and clamps the printed length to the smaller of msg->channel_name_len and sizeof(msg->channel_name).
Workarounds
- Disable CONFIG_ZBUS_PROXY_AGENT_IPC where the proxy agent is not required
- Raise the logging level above warning for the proxy agent module to suppress the vulnerable LOG_WRN call site
- Validate and sanitize peer-domain firmware provenance so that only trusted images can be loaded on the second core
# Example Zephyr Kconfig overlay to disable the vulnerable subsystem
CONFIG_ZBUS_PROXY_AGENT_IPC=n
# Or raise log level above WRN for the proxy agent module
CONFIG_ZBUS_LOG_LEVEL_ERR=y
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

