CVE-2026-90589

Source
https://cve.org/CVERecord?id=CVE-2026-90589
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90589.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-90589
Aliases
  • GHSA-xj93-xhq8-g5p4
Downstream
Published
2026-11-09T22:04:01Z
Modified
2026-11-14T07:06:13Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Memory-mapped thread stack is never unmapped when a thread is aborted by another thread, exhausting kernel virtual address space
Details

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).

Database specific
{
    "cna_assigner":  "zephyr",
    "cwe_ids":  [
        "CWE-401"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90589.json"
}
References

Affected packages

Git / github.com/zephyrproject-rtos/zephyr

Affected ranges

Type
GIT
Repo
https://github.com/zephyrproject-rtos/zephyr
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "3.7.0"
                },
                {
                    "fixed":  "4.3.2"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "introduced":  "4.4.0"
                },
                {
                    "fixed":  "4.5.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "d9ec92ccb1d91f4ea5b15271d30169d5b27ba667"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

v3.*
v3.7.0
v4.*
v4.0.0
v4.0.0-rc1
v4.0.0-rc2
v4.0.0-rc3
v4.1.0
v4.1.0-rc1
v4.1.0-rc2
v4.1.0-rc3
v4.2.0
v4.2.0-rc1
v4.2.0-rc2
v4.2.0-rc3
v4.3.0
v4.3.0-rc1
v4.3.0-rc2
v4.3.0-rc3
v4.3.1
v4.3.1-rc1
v4.4.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90589.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "173604733776109812699295117303157656424",
            "length":  254
        },
        "id":  "CVE-2026-90589-737b0787",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/zephyrproject-rtos/zephyr/commit/d9ec92ccb1d91f4ea5b15271d30169d5b27ba667",
        "target":  {
            "file":  "kernel/thread.c",
            "function":  "k_thread_abort_cleanup"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "219427646739295718873486463817625520796",
                "331965014827923601923490300312420763791",
                "164633844523385896017931157924596855214",
                "325191713862689347471285784695010269924"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-90589-8e20fde2",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/zephyrproject-rtos/zephyr/commit/d9ec92ccb1d91f4ea5b15271d30169d5b27ba667",
        "target":  {
            "file":  "tests/kernel/mem_protect/stackprot/src/mapped_stack.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "278349160198760359806788437326669244883",
            "length":  175
        },
        "id":  "CVE-2026-90589-a6d10135",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/zephyrproject-rtos/zephyr/commit/d9ec92ccb1d91f4ea5b15271d30169d5b27ba667",
        "target":  {
            "file":  "kernel/thread.c",
            "function":  "k_thread_abort_cleanup_check_reuse"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "216875537655734448501762287709169637938",
            "length":  296
        },
        "id":  "CVE-2026-90589-d29bd78a",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/zephyrproject-rtos/zephyr/commit/d9ec92ccb1d91f4ea5b15271d30169d5b27ba667",
        "target":  {
            "file":  "kernel/thread.c",
            "function":  "do_thread_cleanup"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "256885065381388475279273729738818663570",
                "321136188393717863652653520637578820131",
                "238437606724259967207037194362486206364",
                "307520775611609240263048694365503559701",
                "305443257540479659722271715433657452024",
                "114817798798388676736455992858099512013",
                "282704274184708307480728646140641723670",
                "326375074485387855466592971890775525150",
                "328459036053861899263034945233391248948",
                "66760111521205385073987031296032285021",
                "11740725734818521414951635552805798889",
                "13790521124267083711304036796358724119",
                "306356481594347378894484510525902457163",
                "252822788683643401688441216681543515512",
                "125326462878041480512679417351122004312",
                "323148363874000582511606862668458968231",
                "276443020880925939433421364449375366226",
                "97616985838044257086324238666193103858",
                "89902758157598489496751665802920164514",
                "222343410017518685379177696990536521083",
                "111670174846713204642849849863636568674",
                "79090792879059277146001854435820735162",
                "131419741343683901400151137358036398868",
                "105387938371696638281636754154689116710"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-90589-f3f51ac4",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/zephyrproject-rtos/zephyr/commit/d9ec92ccb1d91f4ea5b15271d30169d5b27ba667",
        "target":  {
            "file":  "kernel/thread.c"
        }
    }
]
vanir_signatures_modified
"2026-11-14T07:06:13Z"