CVE-2026-104376
Use-after-free write through dangling object-core list node in Zephyr kernel obj_core
AI summary AI generated
An unprivileged user-mode thread or kernel code path can write a kernel pointer into freed kernel heap memory via stale object-core list nodes, corrupting Zephyr RTOS kernel memory.
Mitigation
- Upgrade zephyr to 4.5.0 or later.
Who should check
- Anyone running zephyrproject zephyr >= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0
Vulnerability facts
- Affected
- zephyrproject zephyr >= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0
- Fixed in
- zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.7 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.26% chance of exploitation in 30 days (percentile 19, 2026-12-01)
- CWE
- CWE-416
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| zephyrproject zephyr | >= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-104376. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-104376.md Affected: zephyrproject zephyr >= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0 Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0 Steps: 1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Vendor advisories
FAQ
Is CVE-2026-104376 being exploited?
There is no confirmed exploitation: CVE-2026-104376 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-12-01).
How serious is CVE-2026-104376?
High: CVSS 7.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-104376?
zephyrproject zephyr >= 3.5.0, < 4.3.2; >= 4.4.0, < 4.5.0.
Is there a fix for CVE-2026-104376?
Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.
How do I check if I'm affected by CVE-2026-104376?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Zephyr RTOS vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 5.5 | CVE-2026-105418 NULL pointer dereference in SocketCAN getsockopt/setsockopt on an unbound socket | Zephyr RTOS | ||
| MEDIUM 5.4 | CVE-2026-125037 Zephyr Project Manager <= 3.3.210 - Authenticated (Subscriber+) Stored DOM-Based Cross-Site Scripting via 'attachments[0][attachment_id]' Parameter | WordPress+2 | ||
| MEDIUM 4.4 | CVE-2026-105417 Memory domain partition removal does not revoke user-thread access on ARMv8-R AArch64 MPU | Zephyr RTOS | ||
| MEDIUM 6.1 | CVE-2026-86086 Unvalidated userspace pointer dereference in zsock_getsockopt syscall verifier allows limited kernel memory disclosure and system halt | Zephyr RTOS | ||
| MEDIUM 4.2 | CVE-2026-105416 UART RX interrupt storm denial of service in ESP32 serial driver async API | Zephyr RTOS |