Skip to main content
EPSS 0.1%top 99%

CVE-2026-12234: memory-safety in zephyrproject zephyr

0
High
VulnerabilityCVE-2026-12234cvecve-2026-12234
Published: 08/12/2026 (08/12/2026, 04:39:23 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: zephyr

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.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected software

zephyrproject

zephyr

Affected versions
>=2.3.0 <4.4.2
GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=2.3.0 <4.4.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 12:52:36 UTC

Technical Analysis

The vulnerability exists in the Zephyr project's userspace syscall verifiers z_vrfy_zsock_sendmsg() and z_vrfy_zsock_recvmsg() functions. These functions copy a user-supplied struct net_msghdr into kernel memory but then re-read the live user memory for subsequent operations, creating a classic double-fetch race condition. A cooperating thread can modify the msg_iovlen field between the initial sizing read and the loop that populates the kernel iovec shadow buffer, causing the loop to write beyond the allocated kernel buffer. This leads to kernel heap corruption crossing the user-to-kernel privilege boundary, enabling local privilege escalation or kernel fault denial of service. The vulnerability is reachable by unprivileged user threads when CONFIG_USERSPACE is enabled and the relevant syscalls are exposed. The fix involves copying the header once and using the snapshot for all size and bound checks, preventing races on iovec entries.

Potential Impact

Successful exploitation allows a local unprivileged user thread to corrupt kernel-managed heap memory, potentially resulting in local privilege escalation or a denial of service via kernel fault. The vulnerability compromises confidentiality, integrity, and availability of the kernel.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vendor advisory does not specify an official fix or patch availability. Users should monitor Zephyr project advisories for updates. Until a fix is available, restricting access to unprivileged user threads or disabling CONFIG_USERSPACE where feasible may reduce risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
zephyr
Date Reserved
2026-06-15T01:56:04.220Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a7c6c5abf8831d5398f6fb1

Added to database: 08/12/2026, 12:51:38 UTC

Last enriched: 08/12/2026, 12:52:36 UTC

Last updated: 09/26/2026, 03:10:12 UTC

Views: 74

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses