{"id":82550,"date":"2026-07-25T16:53:07","date_gmt":"2026-07-25T13:23:07","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-10681-smp-race-in-thread_idx_alloc-lets-concurrent-k_object_allock_obj_thread-callers-share-a-kernel-object-permission-slot\/"},"modified":"2026-07-25T16:53:07","modified_gmt":"2026-07-25T13:23:07","slug":"cve-2026-10681-smp-race-in-thread_idx_alloc-lets-concurrent-k_object_allock_obj_thread-callers-share-a-kernel-object-permission-slot","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-10681-smp-race-in-thread_idx_alloc-lets-concurrent-k_object_allock_obj_thread-callers-share-a-kernel-object-permission-slot\/","title":{"rendered":"CVE-2026-10681 &#8211; SMP race in `thread_idx_alloc()` lets concurrent `k_object_alloc(K_OBJ_THREAD)` callers share a kernel-object permission slot"},"content":{"rendered":"<p>CVE ID :CVE-2026-10681<\/p>\n<p>  Published : July 25, 2026, 1:23 p.m. | 29\u00a0minutes ago<\/p>\n<p>  Description :In Zephyr&#8217;s userspace dynamic-objects subsystem, thread_idx_alloc() in kernel\/userspace\/userspace.c allocated a new thread permission index from the global _thread_idx_map[] bitmap without holding lists_lock.<\/p>\n<p>On SMP systems, two user-mode threads invoking the k_object_alloc(K_OBJ_THREAD) syscall concurrently can both observe the same low free bit, perform the same non-atomic RMW to clear it, and return the identical tidx.<\/p>\n<p>The two newly created K_OBJ_THREAD objects are then assigned the same thread_id, so the two user threads alias a single bit position in every kernel object&#8217;s perms[] bitfield: any subsequent grant of access on a kernel object to one thread is implicitly a grant to the other, defeating userspace ACL isolation. A secondary lost-update window between the unlocked &amp;=~BIT() in alloc and the locked |= BIT() in thread_idx_free() can also leak entries from the thread-index pool.<\/p>\n<p>The defect is reachable from any user-mode thread via the unrestricted __syscall k_object_alloc and is gated on CONFIG_USERSPACE, CONFIG_DYNAMIC_OBJECTS, and CONFIG_SMP. The flaw was introduced when the per-thread permission index was added in 2018 and is present in every release up to and including v4.4.0. Fixed by holding lists_lock across the bitmap RMW and the permissions clear (and inlining the obj_list traversal that previously took the lock itself).<\/p>\n<p>  Severity: 6.5 | MEDIUM<\/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-10681 Published : July 25, 2026, 1:23 p.m. | 29\u00a0minutes ago Description :In Zephyr&#8217;s userspace dynamic-objects subsystem, thread_idx_alloc() in kernel\/userspace\/userspace.c allocated a new thread permission index from the global _thread_idx_map[] bitmap without holding lists_lock. On SMP systems, two user-mode threads invoking the k_object_alloc(K_OBJ_THREAD) syscall concurrently can both observe the same low free bit, &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-82550","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82550","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=82550"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82550\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=82550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=82550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=82550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}