{"id":81881,"date":"2026-07-12T19:46:50","date_gmt":"2026-07-12T16:16:50","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-10667-smp-use-after-free-in-zephyr-config_userspace-dynamic-kernel-object-tracking-reachable-from-unprivileged-user-threads\/"},"modified":"2026-07-12T19:46:50","modified_gmt":"2026-07-12T16:16:50","slug":"cve-2026-10667-smp-use-after-free-in-zephyr-config_userspace-dynamic-kernel-object-tracking-reachable-from-unprivileged-user-threads","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-10667-smp-use-after-free-in-zephyr-config_userspace-dynamic-kernel-object-tracking-reachable-from-unprivileged-user-threads\/","title":{"rendered":"CVE-2026-10667 &#8211; SMP use-after-free in Zephyr `CONFIG_USERSPACE` dynamic kernel-object tracking, reachable from unprivileged user threads"},"content":{"rendered":"<p>CVE ID :CVE-2026-10667<\/p>\n<p>  Published : July 12, 2026, 4:16 p.m. | 1\u00a0hour, 11\u00a0minutes ago<\/p>\n<p>  Description :Zephyr&#8217;s dynamic kernel-object tracking (kernel\/userspace\/userspace.c, formerly kernel\/userspace.c) maintains a doubly-linked list (obj_list) of dynamically allocated kernel objects. Iteration over this list in k_object_wordlist_foreach() was performed under lists_lock using the SAFE iterator (which caches the next node), but list removal and freeing of nodes was performed under different, disjoint spinlocks: objfree_lock in k_object_free() and obj_lock in unref_check(). On an SMP system, while one CPU iterated obj_list under lists_lock, another CPU could unlink and k_free() the dyn_obj node that the iterator had cached as its next pointer, causing the iterator to dereference freed kernel memory (use-after-free \/ dangling list traversal). All of the racing operations are reachable from unprivileged user-mode threads via system calls: k_object_alloc\/k_object_alloc_size and k_object_release drive removals through unref_check() (under obj_lock), while k_thread_abort and thread creation drive the iteration through k_thread_perms_all_clear()\/k_thread_perms_inherit() (under lists_lock). A deprivileged user thread on a CONFIG_SMP + CONFIG_USERSPACE build can therefore corrupt the kernel&#8217;s object-tracking structures across the userspace security boundary, yielding kernel memory corruption (potential privilege escalation) or a kernel crash (denial of service). The fix removes objfree_lock and serializes every obj_list modification under lists_lock, including holding it across find+remove in k_object_free() and around unref_check() in k_thread_perms_clear(). Affects CONFIG_SMP+CONFIG_USERSPACE+CONFIG_DYNAMIC_OBJECTS configurations; the defect dates to the 2019 spinlockification (commit 8a3d57b6cc6, first released in v1.14.0) and shipped through v4.4.0.<\/p>\n<p>  Severity: 7.8 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-10667 Published : July 12, 2026, 4:16 p.m. | 1\u00a0hour, 11\u00a0minutes ago Description :Zephyr&#8217;s dynamic kernel-object tracking (kernel\/userspace\/userspace.c, formerly kernel\/userspace.c) maintains a doubly-linked list (obj_list) of dynamically allocated kernel objects. Iteration over this list in k_object_wordlist_foreach() was performed under lists_lock using the SAFE iterator (which caches the next node), but list removal and &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-81881","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=81881"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81881\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=81881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=81881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=81881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}