CVE-2026-90589
Last modified
CVE-2026-90589 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. When CONFIG_THREAD_STACK_MEM_MAPPED is enabled, each thread stack is mapped into the kernel virtual address space with a guard page on either side, and the mapping is released during abort cleanup. k_thread_abort_cleanup() in kernel/thread.c has two paths: a deferred one for self-abort, which stashes the mapping in thread_cleanup_stack_addr/thread_cleanup_stack_sz, and an immediate one for a thread aborted by some other thread. EPSS estimates a 0.10% chance of exploitation in the next 30 days.
Description
When CONFIG_THREAD_STACK_MEM_MAPPED is enabled, each thread stack is mapped into the kernel virtual address space with a guard page on either side, and the mapping is released during abort cleanup. k_thread_abort_cleanup() in kernel/thread.c has two paths: a deferred one for self-abort, which stashes the mapping in thread_cleanup_stack_addr/thread_cleanup_stack_sz, and an immediate one for a thread aborted by some other thread. The immediate path called do_thread_cleanup(), which ignored its thread argument and only ever unmapped the stashed address — a value populated exclusively by the self-abort path. The mapped stack of a thread aborted by another thread was therefore never unmapped. Every k_thread_abort() of a non-current thread leaks the thread's stack region plus its two guard pages from the kernel virtual address space. Threads that end by returning from their entry function take the working self-abort path, so the leak is specific to explicit cancellation — k_thread_abort(), pthread_cancel(), osThreadTerminate(), or the kernel thread kill shell command. Both k_thread_create() and k_thread_abort() are system calls, so with CONFIG_USERSPACE an unprivileged user-mode thread that has been granted a thread object and a user-capable stack object can drive the leak from user mode, consuming a kernel-side resource it cannot otherwise touch. With CONFIG_KERNEL_VM_SIZE defaulting to 8 MB, a few hundred create/abort cycles exhaust the runtime mapping region. k_mem_map_phys_guard() then returns NULL, and map_thread_stack() guards that only with __ASSERT_NO_MSG(), which is compiled out of production builds; thread creation proceeds to write through a NULL-derived stack base and faults in kernel mode. The impact is a persistent denial of service — a kernel fatal error requiring a reboot — with no memory disclosure or corruption, and it is limited to configurations where memory-mapped thread stacks are enabled (x86 targets with X86_MMU and demand paging disabled, where the option is implied by default).
Metrics
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-90589?
How severe is CVE-2026-90589?
How do I fix CVE-2026-90589?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-90583A security flaw has been discovered in kagisearch smallweb u…4.3
- CVE-2026-90584A weakness has been identified in TooTallNate Java-WebSocket…5.3
- CVE-2026-90585The Renesas RA SCI UART driver's receive-error ISR, uart_ra_…4.6
- CVE-2026-90586The Xtensa MMU userspace port never initialized the per-thre…7.8
- CVE-2026-90587usbh_device_init() in subsys/usb/host/usbh_device.c rejects …4.6
- CVE-2026-90588The HTTP client's debug helper print_header_field() in subsy…3.7
- CVE-2026-9059NextGEN Gallery version prior to 4.2.1 are vulnerable to aut…9.3
- CVE-2026-90590The NXP ENET QoS Ethernet driver in drivers/ethernet/eth_nxp…6.5
- CVE-2026-90591The NXP ENET-QOS Ethernet driver's receive work handler eth_…7.5
- CVE-2026-90593A vulnerability was determined in embedded-graphics up to 0.…7.3
- CVE-2026-90594A vulnerability was identified in wxiaoqi Spring-Cloud-Platf…6.3
- CVE-2026-90595A security flaw has been discovered in wxiaoqi Spring-Cloud-…6.3
Are you affected by CVE-2026-90589?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
