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). EPSS estimates a 0.11% chance of exploitation in the next 30 days.
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
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
- Awaiting Analysis
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-122326Chevereto before 4.5.8 contains an authorization bypass vuln…5.3
- CVE-2026-122327Meelo through 3.13.1 contains a missing authorization vulner…4.3
- CVE-2026-122328SDL_mixer 3.1.2 through 3.2.4 contains a stack-based buffer …7.8
- CVE-2026-122329SDL_mixer 3.1.2 through 3.2.4 contains a stack-based buffer …7.8
- CVE-2026-12233The PSA Protected Storage credential backend (subsys/net/lib…5.9
- CVE-2026-122330Blosc c-blosc2 before 3.5.0 contains a divide-by-zero vulner…5.5
- CVE-2026-12235The Linkable Loadable Extensions (llext) subsystem mis-handl…6.3
- CVE-2026-12236The Bluetooth host GATT client function parse_read_std_char_…6.5
- 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-12241The Advanced Woo Labels – Product Labels & Badges for WooCom…5.4
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
