# CVE-2026-19575: Type confusion in the device\_deinit system call allows user-mode threads to execute arbitrary kernel code

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-843
- **Published:** 2026-10-09T07:16:47.995Z
- **Modified:** 2026-11-04T05:18:48.960Z

## Who should check

- Anyone running zephyrproject zephyr \>= 4.2.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## Description

The user-mode verification handler for the device\_deinit() system call, z\_vrfy\_device\_deinit() in kernel/device.c, validated its dev argument with K\_SYSCALL\_OBJ\_INIT(dev, K\_OBJ\_ANY). k\_object\_validate() short-circuits its type comparison when the requested type is K\_OBJ\_ANY, so the check reduced to "this pointer is the base address of some kernel object the calling thread has been granted" — the object's actual type was never compared, and K\_SYSCALL\_OBJ\_INIT also skips the initialization-state check. The sibling handlers z\_vrfy\_device\_init() and z\_vrfy\_device\_is\_ready() already used K\_OBJ\_DRIVER\_ANY and were unaffected.

A thread running in user mode can therefore pass any kernel object it holds permission on — most usefully a thread stack object obtained from the k\_thread\_stack\_alloc() syscall or a statically defined K\_THREAD\_STACK it was granted in order to spawn a child user thread — whose backing memory is writable from user mode. z\_impl\_device\_deinit() then interprets those attacker-written bytes as a struct device: it dereferences the state pointer read out of the object, calls the function pointer read out of ops.deinit, and on success writes through state again. The result is an indirect call to an arbitrary address executed in supervisor mode, plus an arbitrary kernel read and a single-byte kernel write.

Exploitation gives a local unprivileged thread full kernel code execution, defeating the CONFIG\_USERSPACE isolation boundary entirely; a less precise attempt yields a supervisor-mode fault and a system crash. The defect is only reachable in builds that enable both CONFIG\_USERSPACE and CONFIG\_DEVICE\_DEINIT\_SUPPORT — with de-initialization support disabled, z\_impl\_device\_deinit() returns -ENOTSUP without ever dereferencing the pointer. In v4.2.x and v4.3.x, CONFIG\_DEVICE\_DEINIT\_SUPPORT defaulted to y, so every CONFIG\_USERSPACE build of those releases is exposed unless the option was explicitly turned off. From v4.4.0 the option is opt-in (no default, and not selected by any in-tree subsystem), so a v4.4.x build is exposed only if it enables the option explicitly. The v4.2 line is no longer maintained and receives no backport.

The fix changes the object check to K\_OBJ\_DRIVER\_ANY, which constrains the argument to the build-generated driver object type range (K\_OBJ\_DRIVER\_FIRST..K\_OBJ\_DRIVER\_LAST) — the real struct device instances placed by the linker — so the state and ops.deinit fields are once again kernel-controlled.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.2.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 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-19575. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-19575.md
Affected: zephyrproject zephyr >= 4.2.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

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-19575 being exploited?

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

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

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

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

zephyrproject zephyr \>= 4.2.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

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

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

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

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-j9m4-fr5f-49wm>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/1036694889ab33996db41b4141ddf66aa786d267>

## 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-19575>

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