Zephyr use-after-free write in kernel obj_core
Affects Zephyr 3.5.0 before 4.3.2 and 4.4.0 before 4.5.0 builds with CONFIG_OBJ_CORE enabled. Fixed in 4.3.2 and 4.5.0.
- Exploited
- No known exploitation
- Fix
- Fixed in 4.3.2, 4.5.0
- Who is exposed
- Specific setups only
Summary
The Zephyr kernel's object core framework has a use-after-free flaw that lets a local attacker with low privileges write kernel pointers into freed kernel memory, using only system calls from user-mode threads, when CONFIG_OBJ_CORE, CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS are all enabled. Successful exploitation could corrupt memory across the userspace isolation boundary, crash the system, corrupt unrelated kernel objects, or hang kernel list walks.
Written by a model
Original description
The kernel object core framework (kernel/obj_core.c) linked every participating kernel object (semaphores, mutexes, message queues, stacks, pipes, events, and so on) into a per-type singly linked list through a sys_snode_t embedded in the object itself. k_obj_core_link() appended the object with sys_slist_append(), and nothing ever unlinked these objects except threads. When an object's storage was freed, went out of scope, or was reused while it was the list tail, the list kept pointing into dead memory. The next k_obj_core_init_and_link() (for example from k_sem_init()) then wrote a pointer through that stale node. Re-initializing the current tail object also made the list self-referential, so k_obj_type_walk_locked() / k_obj_type_walk_unlocked() loop forever.
When CONFIG_OBJ_CORE, CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS are all enabled, an unprivileged user-mode thread can trigger this through system calls alone. It allocates a semaphore with k_object_alloc(), initializes it with k_sem_init(), and releases it with k_object_release(). unref_check() then frees the object without unlinking it, and the thread's next k_sem_init() makes the kernel write a kernel pointer into the freed (and possibly reallocated) kernel heap chunk. In kernel-only builds with CONFIG_OBJ_CORE enabled, the same defect corrupts memory during ordinary operation, because k_work_flush() and k_work_cancel_sync() initialize semaphores on the caller's stack.
The result is supervisor-mode memory corruption that crosses the userspace isolation boundary. It can crash the system, corrupt unrelated kernel objects that reuse the freed memory, or hang any walker of the object-core lists. CONFIG_OBJ_CORE is disabled by default. The fix replaces the intrusive lists with a kernel-owned registry keyed by object address, so the code no longer writes into registered objects' storage.
Who should check
Teams building Zephyr with CONFIG_OBJ_CORE enabled on versions >= 3.5.0 and < 4.3.2, or >= 4.4.0 and < 4.5.0; user-mode threads also need CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS.
Not fixed by: Release lines without the backport remain affected.
“>= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0”
What to do
Check whether your setup matches what the bug needs.
CONFIG_OBJ_CORE, CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS must all be enabled for the user-mode trigger. In kernel-only builds, CONFIG_OBJ_CORE alone is enough to corrupt memory during ordinary operation.Upgrade to a fixed version: 4.3.2, 4.5.0.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-104376 (Use-after-free write through dangling object-core list node in Zephyr kernel obj_core), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-104376 (entry last updated 2026-11-29):
Affected:
- zephyrproject zephyr: from 3.5.0, fixed in 4.3.2; from 4.4.0, fixed in 4.5.0
Fixed versions: 4.3.2, 4.5.0.
Conditions (all must be true for the bug to be hit):
- CONFIG_OBJ_CORE, CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS must all be enabled for the user-mode trigger. (source: https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-444q-r3f3-h2x4)
- In kernel-only builds, CONFIG_OBJ_CORE alone is enough to corrupt memory during ordinary operation. (source: https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-444q-r3f3-h2x4)
Setup: the bug needs a feature or setting that is off by default or uncommon. Check whether each asset has it on.
Attacker needs: local access, low-privilege login, no user action.
CISA KEV: CVE-2026-104376 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-104376 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/zephyrproject-rtos/zephyr/commit/8c1692043a2e3bb23544ba3009b8b2092837d516
- https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-444q-r3f3-h2x4
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-104376
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-104376"}.Affected versions
- zephyrFrom 3.5.0 · fixed in 4.3.2; From 4.4.0 · fixed in 4.5.0
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure5/25Specific setups only
- Reach?/20Unknown. No tracked technology or package matched
- Severity7.7/10CVSS 7.7
- No patch0/5No signal
What would change the score
- Would score about 63 if added to CISA KEV
- Would score about 58 if CISA's SSVC rates exploitation active
- Would score about 23 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now
Evidence 4
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · zephyrproject-rtos/zephyr · Advisory GHSA-444q-r3f3-h2x4 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-104376 |
| Record | NVD · CVE-2026-104376 |
| Other links 1 | |
| Patch | GitHub · zephyrproject-rtos/zephyr · Commit 8c169204 |
Questions about CVE-2026-104376
Is CVE-2026-104376 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
A dangling object-core list node lets the kernel write through freed memory, corrupting supervisor-mode memory. In configurations with userspace enabled, this crosses the userspace isolation boundary and can crash the system, corrupt unrelated kernel objects, or hang object-core list walkers.
Source: github.com
Which versions are affected by CVE-2026-104376?
zephyr: from 3.5.0 before 4.3.2; from 4.4.0 before 4.5.0.
Source: cve.now feed data
Am I affected, and how do I check?
The affected ranges are Zephyr 3.5.0 before 4.3.2 and 4.4.0 before 4.5.0. In kernel-only builds, CONFIG_OBJ_CORE alone is enough to corrupt memory during ordinary operation; the user-mode trigger requires CONFIG_OBJ_CORE, CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS to all be enabled. Check the Zephyr version and these Kconfig options in the build configuration.
Source: github.com
How do I fix CVE-2026-104376?
Move to Zephyr 4.3.2 for the 4.3 line or to 4.5.0 for the 4.4 line, which are the fixed versions listed for this vulnerability.
Source: github.com
Related
- CVE-2026-104378Out-of-bounds write in DesignWare I3C driver direct CCC handling via unbounded target count
- CVE-2026-130477Kernel user mode: dynamic thread and stack objects can be freed while their thread is still running or exiting (use-after-free)
- CVE-2026-100374Missing user buffer validation in SMBus block read and block process call syscalls allows kernel memory writes
- CVE-2026-102957PWM capture syscall leaves callback armed on a dead kernel stack frame when called with K_NO_WAIT
- CVE-2026-105415Out-of-bounds write via unchecked channel index in ESP32 MCPWM PWM driver set_cycles syscall
- CVE-2026-102960Stack buffer overflow in Grow R502-A fingerprint sensor driver UART RX handler
No corrections so far. Something wrong on this page? Report an error.