ZephyrOperating system · Zephyrproject

CVE-2026-10643

HIGH · 7.8 CVSS v3.1 Published 2026-06-28
Fix available
A fix is available. Upgrade to after 4.4.1 or later.
See remediation →
80/100
Remediation priority · High
Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Zephyr's IP socket recvmsg() implementation (subsys/net/lib/sockets/sockets_inet.c, insert_pktinfo()) validated the user-supplied ancillary (msg_control) buffer using only the payload length (msg->msg_controllen < pktinfo_len) before writing a full control message consisting of an aligned cmsg header plus the payload. Because the check omitted the cmsg header size, a control buffer whose length falls in the under-checked window (e.g. 16-27 bytes for IPv4 IP_PKTINFO on a 64-bit target, where a single element actually occupies 28 bytes) passes the guard yet causes a fixed-size out-of-bounds write of up to one cmsg header (~12 bytes) past the end of the buffer. Under CONFIG_USERSPACE the recvmsg verifier allocates a kernel-heap copy of the control buffer sized to msg_controllen and runs the implementation against it, so the overflow corrupts kernel heap memory and is triggerable from an unprivileged userspace thread; in supervisor mode it corrupts the caller's buffer. The path is reachable on a UDP/IP socket with IP_PKTINFO/IPV6_RECVPKTINFO (or hoplimit/timestamping) enabled when the application calls recvmsg() with an undersized control buffer and a datagram is received; part of the overwritten bytes (the destination IP in ipi_addr) is influenced by the received packet. The fix makes the capacity check use NET_CMSG_SPACE(pktinfo_len) (aligned header + aligned data) and returns -ENOMEM when the buffer is too small. Affected: v3.6.0 through v4.4.0.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Heap buffer overflow in Zephyr's IP socket recvmsg() implementation where the ancillary buffer length check only validates payload size (msg_controllen < pktinfo_len) without accounting for the cmsg header, allowing an out-of-bounds write of up to 12 bytes past the buffer. In userspace configurations (CONFIG_USERSPACE), the overflow corrupts kernel heap memory and is exploitable from unprivileged threads via UDP sockets with IP_PKTINFO/IPV6_RECVPKTINFO enabled.

MitigationApply the upstream fix which replaces the bounds check with NET_CMSG_SPACE(pktinfo_len) and returns -ENOMEM for insufficient buffers; affected deployments should upgrade to patched v4.4.0+ or backport the fix to v3.6.0-v4.4.0.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
ZephyrOperating system
Affected:>= 3.6.0, <= 4.4.1

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check Zephyr version in use
    Inspect the Zephyr build configuration or the VERSION file in the Zephyr source tree. Look for CONFIG_ZEPHYR_VERSION or check version.cmake, or examine the build logs for the Zephyr release tag.
    Affected if The installed or built Zephyr version is >= 3.6.0 and <= 4.4.1
  2. Verify IP socket networking is enabled
    Examine the build configuration (defconfig or Kconfig) for CONFIG_NET_IP or CONFIG_NET_SOCKETS. This vulnerability exists in the IP socket recvmsg() implementation.
    Affected if CONFIG_NET_IP or CONFIG_NET_SOCKETS is enabled in the build
  3. Confirm recvmsg() usage in application code
    Search application source files for calls to recvmsg() system call. This is the entry point for the vulnerable code path.
    Affected if The application code calls recvmsg() on IP sockets
  4. Check for ancillary message handling
    Search for usage of CMSG_FIRSTHDR, CMSG_NXTHDR, or CMSG_DATA macros in socket-related code. These indicate control message (cmsg) processing which triggers the vulnerable validation path.
    Affected if The code processes ancillary messages (control messages) via CMSG_* macros alongside recvmsg() calls

A system is affected if it runs Zephyr version 3.6.0 through 4.4.1, has IP socket networking enabled, and uses recvmsg() to process ancillary control messages with buffers sized only to payload length without accounting for cmsg header overhead.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to a release after 4.4.1
Vendor patch github.com →
Interim mitigation

Apply the upstream fix which replaces the bounds check with NET_CMSG_SPACE(pktinfo_len) and returns -ENOMEM for insufficient buffers; affected deployments should upgrade to patched v4.4.0+ or backport the fix to v3.6.0-v4.4.0.

Recommended fix High confidence

Zephyr v4.5.0 or later (or the next stable release after v4.4.1 that includes commit 01fe77b2ec3885583f709a17c5203ce02bd77012)

  1. 1. Identify the current Zephyr version in use by checking the manifest file (west.yml) or the version.h header file in the Zephyr installation.
  2. 2. Check if your project is using Zephyr versions 3.6.0 through 4.4.1 (or any version that does not include the fix commit 01fe77b2ec3885583f709a17c5203ce02bd77012).
  3. 3. Update the Zephyr west manifest to reference a version containing the fix (v4.5.0 or later). This typically involves modifying the project.yml/west.yml file to point to a newer release tag or commit hash beyond the affected range.
  4. 4. Run 'west update' to fetch the updated Zephyr source code.
  5. 5. Rebuild the application and all dependent modules to ensure the fixed code is incorporated.
  6. 6. If UDP sockets with IP_PKTINFO, IPV6_RECVPKTINFO, or similar ancillary data options are used, verify the recvmsg() calls provide correctly-sized control buffers (minimum 28 bytes for IPv4 IP_PKTINFO on 64-bit systems).
Caveat Upgrading Zephyr versions may introduce API changes or require adjustments to board configurations; review the release notes between v4.4.x and the target version for any breaking changes relevant to networking or socket functionality.

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Zephyr Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing3.0 h
  • Review / QA1.0 h
8.0 hours of engineering $1,390
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,224.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-10643 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-10643 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data