CVE-2026-12234
Last modified
CVE-2026-12234 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. The userspace syscall verifiers z_vrfy_zsock_sendmsg() and z_vrfy_zsock_recvmsg() in subsys/net/lib/sockets/sockets.c snapshot the caller-supplied struct net_msghdr into a kernel-side copy with k_usermode_from_copy(), but then re-read the still-live user struct for subsequent decisions. The kernel iovec shadow buffer is sized from one read of msg->msg_iovlen, while the population loop is bounded by a second, live read of the same field. Because msg points into ordinary user memory, a cooperating second thread in the same memory domain can inflate msg->msg_iovlen in the window between the sizing read and the loop test (a classic double-fetch / TOCTOU).
Description
The userspace syscall verifiers z_vrfy_zsock_sendmsg() and z_vrfy_zsock_recvmsg() in subsys/net/lib/sockets/sockets.c snapshot the caller-supplied struct net_msghdr into a kernel-side copy with k_usermode_from_copy(), but then re-read the still-live user struct for subsequent decisions. The kernel iovec shadow buffer is sized from one read of msg->msg_iovlen, while the population loop is bounded by a second, live read of the same field. Because msg points into ordinary user memory, a cooperating second thread in the same memory domain can inflate msg->msg_iovlen in the window between the sizing read and the loop test (a classic double-fetch / TOCTOU). The population loop then iterates past the number of net_iovec slots actually allocated, writing attacker-influenced iov_base/iov_len values beyond the end of the kernel-heap shadow buffer. The recvmsg verifier has the same defect on both its inbound and result write-back loops. The code is reachable from an unprivileged user thread whenever CONFIG_USERSPACE is enabled and the zsock_sendmsg/zsock_recvmsg syscalls are available. A successful race corrupts kernel-managed heap memory across the user-to-kernel privilege boundary, yielding a local privilege-escalation primitive or, at minimum, a kernel-fault denial of service. The fix copies the header once and derives every size, bound, and gate from the snapshot, copying each iovec entry atomically so its base and length can no longer be raced apart.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 2.3.0, < 4.4.2 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-12234?
How severe is CVE-2026-12234?
How do I fix CVE-2026-12234?
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-12225syracom AG Secure Login (2FA) for Atlassian Jira, Confluence…8.7
- CVE-2026-12228A stored cross-site scripting (XSS) vulnerability exists in …8.7
- CVE-2026-1223PrismX MX100 AP controller developed by BROWAN COMMUNICATION…6.9
- CVE-2026-12231The Exclusive Addons for Elementor plugin for WordPress is v…6.4
- CVE-2026-12232The Intel ALH digital-audio-interface driver function dai_al…6.1
- CVE-2026-12233The PSA Protected Storage credential backend (subsys/net/lib…5.9
- CVE-2026-12235The Linkable Loadable Extensions (llext) subsystem mis-handl…6.3
- CVE-2026-12238The WP Go Maps – Most Popular Map Plugin plugin for WordPres…5.3
- CVE-2026-1224Tanium addressed an uncontrolled resource consumption vulner…6.5
- CVE-2026-12240The Export User Data plugin for WordPress is vulnerable to a…8
- CVE-2026-12242The AdRotate Banner Manager plugin for WordPress is vulnerab…8.8
- CVE-2026-12243NLTK version 3.9.4 is vulnerable to a path traversal attack …7.5
Are you affected by CVE-2026-12234?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
