CVE-2026-18418

Source
https://cve.org/CVERecord?id=CVE-2026-18418
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-18418.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-18418
Aliases
  • GHSA-48w8-fjhj-r9w8
Published
2026-10-11T17:15:00Z
Modified
2026-10-28T10:51:05Z
Severity
  • 3.4 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:L CVSS Calculator
Summary
Out-of-bounds read when the zbus proxy agent IPC backend logs a rejected peer frame's channel name
Details

The zbus proxy agent IPC backend in subsys/zbus/proxy_agent/zbus_proxy_agent_ipc.c logged the channel name of a rejected inter-domain frame with a plain %s conversion. The frame type struct zbus_proxy_msg carries a fixed-size channel_name[] array as its last member, and nothing in the transport guarantees the array is NUL-terminated. The only code that verifies termination is zbus_proxy_agent_receive_cb() in subsys/zbus/proxy_agent/zbus_proxy_agent.c, which rejects the frame in precisely those cases — so the warning printed a non-terminated buffer exactly on the error paths where the name had been found invalid (or, for an invalid message_size, had not been inspected at all).

Any peer domain able to place a frame of sizeof(struct zbus_proxy_msg) bytes on the bound ipc_service endpoint can trigger it, by sending a frame with an out-of-range message_size or with channel_name[] containing no NUL byte. Reaching the code requires CONFIG_ZBUS_PROXY_AGENT_IPC and logging built at warning level or above (the default), and requires control over the firmware of the peer domain — typically a second core on the same SoC.

The resulting strlen() inside the log packager walks past the end of the frame object until it finds a zero byte. With the icmsg backend the frame lives in a stack buffer of the IPC work-queue thread, so bytes of that thread's stack are rendered into the log message; with the rpmsg backends the scan continues through the shared vring memory. Impact is bounded to disclosure of a small amount of adjacent memory into the receiving domain's log sink, plus a possible fatal fault if the scan leaves a mapped region; the log packager's own -ENOSPC bound prevents the overrun from becoming a write. The fix bounds the conversion with %.*s and MIN(msg->channel_name_len, sizeof(msg->channel_name)).

Database specific
{
    "cna_assigner":  "zephyr",
    "cwe_ids":  [
        "CWE-125"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18418.json"
}
References

Affected packages

Git / github.com/zephyrproject-rtos/zephyr

Affected ranges

Type
GIT
Repo
https://github.com/zephyrproject-rtos/zephyr
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "4.4.0"
                },
                {
                    "fixed":  "4.4.2"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "fc065f79a568a6c6cc14b89795bd60e5eabd6f02"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

v4.*
v4.4.0
v4.4.1
v4.4.1-rc1
v4.4.2-rc1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-18418.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "121502572661935661356920259961742815636",
                "217061670355241261719589955733433467336",
                "217881667742500815670161279975545701431",
                "8541718646427361108336069717623972224"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-18418-7370d83a",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/zephyrproject-rtos/zephyr/commit/fc065f79a568a6c6cc14b89795bd60e5eabd6f02",
        "target":  {
            "file":  "subsys/zbus/proxy_agent/zbus_proxy_agent_ipc.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "74847890622302929124468931254522543347",
            "length":  610
        },
        "id":  "CVE-2026-18418-a93bbf4c",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/zephyrproject-rtos/zephyr/commit/fc065f79a568a6c6cc14b89795bd60e5eabd6f02",
        "target":  {
            "file":  "subsys/zbus/proxy_agent/zbus_proxy_agent_ipc.c",
            "function":  "zbus_proxy_agent_ipc_recv_callback"
        }
    }
]
vanir_signatures_modified
"2026-10-28T10:51:05Z"