{"id":"CVE-2026-11812","published":"2026-08-10T23:09:17Z","modified":"2026-11-04T04:59:15Z","title":"UpdateHub: race condition on shared context causes out-of-bounds write and DoS","vendor":"zephyrproject","product":"zephyr","tier":"tail","description":{"text":"The UpdateHub management subsystem (subsys/mgmt/updatehub/updatehub.c) drives every update operation through a single file-scope ctx structure that holds the CoAP block context, payload buffer, status code, socket, and a one-element poll-fd array fds[1]. Access to ctx was not serialized, and prepare_fds() wrote ctx.fds[ctx.nfds] and incremented ctx.nfds with no bounds check.\n\nTwo independent paths mutate ctx concurrently: the background autohandler running on the system workqueue, and user-triggered operations reached through the updatehub run shell command, direct API calls, or — since the operations are exposed as syscalls — userspace threads. When a second flow enters prepare_fds() while ctx.nfds is already 1, the write lands one element past the array; by struct layout it overlaps the adjacent ctx.sock/ctx.nfds members. More broadly, the unsynchronized sharing lets two flows interleave connection setup and teardown, double-closing a socket descriptor or scribbling the shared buffers.\n\nThe result is corruption of the update subsystem's internal state and denial of service of the firmware-update path; the out-of-bounds write is contained within the ctx structure and there is no demonstrated path to memory outside it or to code execution. Triggering requires a local actor able to invoke update operations (or, with CONFIG_USERSPACE, an unprivileged userspace thread) and to win a timing race against the background handler; remote peers cannot control the race timing. The fix serializes the entry points with a mutex and adds a bounds check to prepare_fds().","provenance":"source","from":"CVE.org"},"cvss":{"score":2.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00104,"percentile":0.00263,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/551d3f92b36e9604f039101c4e4f623682d02159","tags":["patch"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-vprh-rff6-46xp","tags":[]}],"priority":{"score":1.8,"factors":[{"name":"EPSS percentile","points":0.05},{"name":"CVSS severity","points":1.75}]},"vendorSlug":"zephyrproject","affectedVersions":[{"vendor":"zephyrproject","product":"zephyr","versions":[">= 2.0.0, < 4.3.2",">= 4.4.0, < 4.4.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-12T18:51:06.812463Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-55855","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-zephyrproject-zephyr-cve-2026-11809","parents":[{"from":"CVE-2026-11809","to":"CVE-2026-11812","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["subsys/mgmt/updatehub/updatehub.c"],"commits":["https://github.com/zephyrproject-rtos/zephyr/commit/69bbed5e601495a2076f25d822adbf991cae5c01","https://github.com/zephyrproject-rtos/zephyr/commit/551d3f92b36e9604f039101c4e4f623682d02159"],"basis":"shared function","functions":["z_impl_updatehub_probe"]}]},{"from":"CVE-2026-11810","to":"CVE-2026-11812","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["subsys/mgmt/updatehub/updatehub.c"],"commits":["https://github.com/zephyrproject-rtos/zephyr/commit/3424082022cb39d568434021b1d6f68b6a7fb3bf","https://github.com/zephyrproject-rtos/zephyr/commit/551d3f92b36e9604f039101c4e4f623682d02159"],"basis":"shared function","functions":["z_impl_updatehub_probe"]}]},{"from":"CVE-2026-11811","to":"CVE-2026-11812","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["subsys/mgmt/updatehub/updatehub.c"],"commits":["https://github.com/zephyrproject-rtos/zephyr/commit/29e3476501a65c0bcd469abd275749d324008ce2","https://github.com/zephyrproject-rtos/zephyr/commit/551d3f92b36e9604f039101c4e4f623682d02159"],"basis":"shared function","functions":["start_coap_client"]}]}]}}