CVE-2026-10643
Last modified
CVE-2026-10643 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.13% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Zephyrproject | Zephyr | >= 3.6.0, <= 4.4.1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-10643?
How severe is CVE-2026-10643?
How do I fix CVE-2026-10643?
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-10638subsys/net/ip/icmpv6.c reads the network interface from a ne…7.5
- CVE-2026-10639In Zephyr's native IPv4 stack, icmpv4_handle_echo_request() …4.8
- CVE-2026-1064A vulnerability was found in bastillion-io Bastillion up to …4.7
- CVE-2026-10640Zephyr's IPv6 Neighbor Discovery send paths (net_ipv6_send_n…7.1
- CVE-2026-10641Zephyr's Bluetooth Classic Hands-Free Profile (HFP) Hands-Fr…7.1
- CVE-2026-10642The Zephyr PL011 UART driver (drivers/serial/uart_pl011.c) c…4.6
- CVE-2026-10644The Microchip SERCOM-G1 UART driver (drivers/serial/uart_mch…3.1
- CVE-2026-10645The Zephyr ext2 filesystem driver (subsys/fs/ext2) trusted t…5.5
- CVE-2026-10646Zephyr's BSD-sockets getaddrinfo() implementation (subsys/ne…7.4
- CVE-2026-10647The USB CDC-NCM device class (subsys/usb/device_next/class/u…5.3
- CVE-2026-10648mcumgr_serial_process_frag() in subsys/mgmt/mcumgr/transport…5.5
- CVE-2026-10649A flaw was found in Pacemaker. An unauthenticated remote att…8.6
Are you affected by CVE-2026-10643?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
