CVE-2026-19575
Last modified
CVE-2026-19575 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.12% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 4.2.0, <= 4.4.2 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-19575?
How severe is CVE-2026-19575?
How do I fix CVE-2026-19575?
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-19569dynamic_object_create() in kernel/userspace/userspace.c comp…8.8
- CVE-2026-19570The LE Audio Broadcast Sink in subsys/bluetooth/audio/bap_br…8.8
- CVE-2026-19571The ITE IT8xxx2 SHI host-command backend (subsys/mgmt/ec_hos…6.7
- CVE-2026-19572A security vulnerability has been identified in FlexNet Publ…9.3
- CVE-2026-19573The Affiliate Super Assistent plugin for WordPress is vulner…7.2
- CVE-2026-19574The ARM64 MMU back-end allocated address space identifiers (…7
- CVE-2026-19576The Goodix GT9xx input driver in drivers/input/input_gt911.c…6.8
- CVE-2026-19577net_route_ipv6_packet() in subsys/net/ip/route_ipv6.c resolv…7.1
- CVE-2026-19579Snipe-IT before 8.6.0 contains an authorization bypass (inse…5.4
- CVE-2026-1958Use of hard-coded credentials in Klinika XP and KlinikaXP In…8.7
- CVE-2026-19582Rejected reason: Red Hat Product Security has come to the co…
- CVE-2026-19583Velociraptor allows some sensitive artifacts to be gated by …9.9
Are you affected by CVE-2026-19575?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
