CVE-2026-10643
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 · uneditedZephyr'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 confidenceHeap 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.
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>= 3.6.0, <= 4.4.1CVSS 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 checksWork through these to decide whether this CVE applies to you.
-
Check Zephyr version in useInspect 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
-
Verify IP socket networking is enabledExamine 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
-
Confirm recvmsg() usage in application codeSearch 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
-
Check for ancillary message handlingSearch 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.
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 · scopedApply 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.
Zephyr v4.5.0 or later (or the next stable release after v4.4.1 that includes commit 01fe77b2ec3885583f709a17c5203ce02bd77012)
- 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. 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. 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. Run 'west update' to fetch the updated Zephyr source code.
- 5. Rebuild the application and all dependent modules to ensure the fixed code is incorporated.
- 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).
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing3.0 h
- Review / QA1.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-10643 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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