# CVE-2026-12631: Broken access-control denial in k\_thread\_join/k\_thread\_abort syscall validation in Zephyr kernel

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-28)
- **CWE:** CWE-862
- **Published:** 2026-08-18T20:55:42.859Z
- **Modified:** 2026-11-04T05:18:40.340Z

## Who should check

- Anyone running zephyrproject zephyr \>= 2.3.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2

## Description

The Zephyr kernel validates the k\_thread\_join() and k\_thread\_abort() system calls (declared \_\_syscall in include/zephyr/kernel.h) through thread\_obj\_validate() in kernel/thread.c. Its default switch branch is the access-denied path, taken when k\_object\_validate() returns -EPERM (the calling user thread was never granted access to the target thread object) or -EBADF (the supplied pointer is not a registered kernel object of the right type). That branch invoked K\_OOPS(K\_SYSCALL\_VERIFY\_MSG(ret, "access denied")), but K\_SYSCALL\_VERIFY\_MSG treats a true expression as success; the non-zero error code ret therefore read as "verified OK", the kernel oops was never raised, and control fell through to CODE\_UNREACHABLE.

Because k\_thread\_join() and k\_thread\_abort() are system calls, an unprivileged user-mode thread (under CONFIG\_USERSPACE) can reach this denial path directly by calling either syscall on a thread object it does not own. Instead of the offending thread being cleanly terminated, execution reaches \_\_builtin\_unreachable() while running in supervisor mode inside the syscall handler.

On Clang builds CODE\_UNREACHABLE emits an illegal-instruction trap, so a user thread can deterministically crash the kernel — a locally triggerable denial of service that escapes the userspace sandbox. On GCC builds the path is undefined behavior: the compiler may drop the return-value handling for thread\_obj\_validate(), so it can return an undefined bool; if that is false, the caller proceeds into the real k\_thread\_join()/k\_thread\_abort() implementation for a thread the user was never authorized to access, an access-control bypass.

The fix changes the verification expression to ret == 0, so a denied (non-zero) result now correctly raises K\_OOPS and terminates the offending caller.

## Affected and fixed versions

- zephyrproject zephyr: \>= 2.3.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2 (cvelist)

## Mitigation

- Upgrade zephyr to 4.4.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-12631. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-12631.md
Affected: zephyrproject zephyr >= 2.3.0, < 4.3.2; >= 4.4.0, < 4.4.2
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.4.2

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-12631 being exploited?

There is no confirmed exploitation: CVE-2026-12631 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-12631?

Medium: CVSS 6.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-12631?

zephyrproject zephyr \>= 2.3.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2.

### Is there a fix for CVE-2026-12631?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.4.2. Upgrade zephyr to 4.4.2 or later.

### How do I check if I'm affected by CVE-2026-12631?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-crfw-75jw-hjm3>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/bd1828652dfc217ba9f3a2221a7499cd8914ed9c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-12631>

HTML: <https://flawdb.com/CVE-2026-12631> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-12631>
