目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-130477— 内核线程/栈对象提前释放(释放后使用)

一分钟漏洞结论

影响对象
zephyrproject zephyr
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

以下为中文翻译(技术内容尽量保持原意;未增加攻击步骤或利用条件之外的新方法): 内核用户态对象管理中, 里的 一旦对象的权限位图变为空,就会立即释放动态分配的内核对象;它不检查对象类型,也不检查内核是否仍在使用该对象。 会在整个线程生命周期内持有对动态 (由 分配)以及动态栈(由 或带 的 分配)的指针,但位图中没有任何记录这些引用。 只授予新线程对其自身线程对象的权限,而不授予对其栈的权限。当线程终止时, 会调用 ,其中 会丢弃该线程的全部权限。如果这使位图为空,则线程自身的 ——以及它持有最后一权限的某个栈——

CVSS 8.8 · High
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-130477 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Kernel user mode: dynamic thread and stack objects can be freed while their thread is still running or exiting (use-after-free)
来源: CVE Program / CVE List V5
Vulnerability Description
In the kernel's user-mode object management, unref_check() in kernel/userspace/userspace.c frees a dynamically allocated kernel object as soon as its permission bitmap becomes empty. It does not check the object type or whether the kernel still uses the object. k_thread_create() keeps pointers to a dynamic struct k_thread (from k_object_alloc(K_OBJ_THREAD)) and a dynamic stack (from k_object_alloc_size(K_OBJ_THREAD_STACK_ELEMENT, ...) or k_thread_stack_alloc() with K_USER) for the whole life of the thread, but nothing in the bitmap records this. z_thread_user_init() gives the new thread permission on its own thread object only, not on its stack. When the thread terminates, halt_thread() calls z_thread_release(), and its z_thread_user_exit() drops all of the thread's permissions. If that leaves the bitmap empty, the thread's own struct k_thread (and a stack it holds the last permission on) is freed before the abort path and the context switch are done with it. Any user thread with a resource pool can trigger this through syscalls it is allowed to make. If it creates a thread on a dynamic stack and then calls k_object_release() on the stack, or exits, the stack block is freed while the child still runs on it. With CONFIG_GEN_PRIV_STACKS that block also holds the privileged stack and z_stack_data, and the child keeps user-mode access to it. Once the creator has released a dynamic thread object, the thread itself can call k_object_release() on its own thread object and free its struct k_thread while it is running. z_vrfy_k_object_release() checks only that the caller holds permission on the object. If the creator has dropped its permissions, the child's ordinary termination frees the thread object inside halt_thread(). The kernel then still reads and writes the freed memory: thread->stack_obj, the thread state, swap_retval and switch_handle, and CPUs waiting for the halt spin on it. On SMP builds, another CPU can reallocate the memory in that window. All of this needs CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS. Freed blocks go back to the thread's resource pool, which also serves later kernel allocations such as other dynamic kernel objects and their metadata. A user thread can then read and write kernel heap memory it was never granted, overwrite kernel data later placed there, or control the contents of a struct k_thread that the scheduler still uses. This breaks kernel integrity (P1) and user-mode isolation (P2) from an unprivileged user thread. The supervisor-only k_object_free() states that it is not exposed to user mode because the kernel cannot tell whether an object is still in use, and k_thread_stack_free() refuses to free a stack in use. Dropping permissions gets around both.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
释放后使用
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
zephyrproject zephyr 1.12.0 ~ * -

二、漏洞 CVE-2026-130477 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-130477 的情报信息

请登录查看更多情报信息。

CVE-2026-130477 其他参考 (1)

同批安全公告 · zephyrproject · 2026-11-29 · 共 10 条

CVE-2026-104378 8.8 HIGH DesignWare I3C驱动 越界写漏洞
CVE-2026-104376 7.7 HIGH Zephyr内核对象核心释放后写漏洞
CVE-2026-105415 7.0 HIGH ESP32 MCPWM驱动越界写漏洞
CVE-2026-104929 6.5 MEDIUM STM32WBA HCI 远程蓝牙接收活锁
CVE-2026-95821 6.5 MEDIUM SOCKS5握手失败栈悬挂回调漏洞
CVE-2026-102961 5.9 MEDIUM Zephyr IPv6/IPv4/6LoWPAN UAF
CVE-2026-104930 5.9 MEDIUM STM32 HAL v2以太网RX丢帧后卡死
CVE-2026-104379 5.9 MEDIUM Zephyr IPv6 释放后使用漏洞
CVE-2026-104377 3.7 LOW Zephyr TFTP客户端越界读漏洞

IV. Related Vulnerabilities