CVE-2026-12631: auth in zephyrproject zephyr
CVE-2026-12631 is a vulnerability in the Zephyr kernel affecting the k_thread_join() and k_thread_abort() system calls. The kernel incorrectly handles access denial errors during thread object validation, leading to either a kernel crash or an access-control bypass depending on the compiler used. This flaw allows an unprivileged user-mode thread to cause a denial of service or potentially bypass access controls. The issue affects Zephyr versions from 2.3.0 up to but not including 4.4.2. A fix is available that corrects the verification logic to properly terminate unauthorized callers.
AI Analysis
Technical Summary
The Zephyr kernel validates k_thread_join() and k_thread_abort() syscalls via thread_obj_validate(). When access is denied (returning -EPERM or -EBADF), the kernel was supposed to raise a kernel oops via K_OOPS. However, due to incorrect use of K_SYSCALL_VERIFY_MSG, the error code was treated as success, preventing the oops and causing execution to reach CODE_UNREACHABLE. On Clang builds, this triggers an illegal instruction trap causing a kernel crash (denial of service). On GCC builds, undefined behavior may allow unauthorized access to thread objects, resulting in an access-control bypass. The fix changes the verification to check for ret == 0, ensuring proper termination of unauthorized calls.
Potential Impact
An unprivileged user-mode thread can exploit this vulnerability to cause a local denial of service by crashing the kernel or, depending on the compiler, bypass access controls to thread objects. This breaks the userspace sandbox and can disrupt system stability. There is no indication of confidentiality or integrity impact beyond the described denial of service and access control bypass.
Mitigation Recommendations
A fix is available that corrects the verification logic to properly raise a kernel oops on access denial, terminating unauthorized callers. Users should upgrade to Zephyr version 4.4.2 or later where this issue is resolved. No additional mitigation is required if the fix is applied.
CVE-2026-12631: auth in zephyrproject zephyr
Description
CVE-2026-12631 is a vulnerability in the Zephyr kernel affecting the k_thread_join() and k_thread_abort() system calls. The kernel incorrectly handles access denial errors during thread object validation, leading to either a kernel crash or an access-control bypass depending on the compiler used. This flaw allows an unprivileged user-mode thread to cause a denial of service or potentially bypass access controls. The issue affects Zephyr versions from 2.3.0 up to but not including 4.4.2. A fix is available that corrects the verification logic to properly terminate unauthorized callers.
CVSS v3.1
Score 6.5medium
Affected software
zephyrproject
zephyr
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Zephyr kernel validates k_thread_join() and k_thread_abort() syscalls via thread_obj_validate(). When access is denied (returning -EPERM or -EBADF), the kernel was supposed to raise a kernel oops via K_OOPS. However, due to incorrect use of K_SYSCALL_VERIFY_MSG, the error code was treated as success, preventing the oops and causing execution to reach CODE_UNREACHABLE. On Clang builds, this triggers an illegal instruction trap causing a kernel crash (denial of service). On GCC builds, undefined behavior may allow unauthorized access to thread objects, resulting in an access-control bypass. The fix changes the verification to check for ret == 0, ensuring proper termination of unauthorized calls.
Potential Impact
An unprivileged user-mode thread can exploit this vulnerability to cause a local denial of service by crashing the kernel or, depending on the compiler, bypass access controls to thread objects. This breaks the userspace sandbox and can disrupt system stability. There is no indication of confidentiality or integrity impact beyond the described denial of service and access control bypass.
Mitigation Recommendations
A fix is available that corrects the verification logic to properly raise a kernel oops on access denial, terminating unauthorized callers. Users should upgrade to Zephyr version 4.4.2 or later where this issue is resolved. No additional mitigation is required if the fix is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-18T15:22:26.927Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a84c9abc6e8be0332bf084c
Added to database: 08/18/2026, 21:07:55 UTC
Last enriched: 09/11/2026, 20:47:47 UTC
Last updated: 10/02/2026, 02:46:02 UTC
Views: 34
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.