CVE-2026-10643: bounds in zephyrproject zephyr
A vulnerability in Zephyr's IP socket recvmsg() implementation allows an out-of-bounds write when processing ancillary control messages with undersized buffers. This occurs because the buffer length check omits the control message header size, potentially corrupting kernel heap memory or user buffers. The issue affects Zephyr versions 3.6.0 through 4.4.0 and is triggered on UDP/IP sockets with IP_PKTINFO or related options enabled when recvmsg() is called with an undersized control buffer. The vulnerability has a high severity with a CVSS score of 8.7.
AI Analysis
Technical Summary
CVE-2026-10643 describes a bounds checking vulnerability in the Zephyr project's IP socket recvmsg() function, specifically in the insert_pktinfo() code. The implementation validates the user-supplied ancillary control buffer length using only the payload length, ignoring the size of the aligned control message header. This allows a control buffer length in a certain range to pass the check but causes a fixed-size out-of-bounds write of up to one control message header past the buffer end. Under CONFIG_USERSPACE, this leads to kernel heap corruption, exploitable by an unprivileged userspace thread. The flaw is reachable on UDP/IP sockets with IP_PKTINFO/IPV6_RECVPKTINFO or related options enabled when recvmsg() is called with an undersized control buffer and a datagram is received. The fix involves using NET_CMSG_SPACE(pktinfo_len) for capacity checks and returning -ENOMEM if the buffer is too small. Affected versions are from 3.6.0 up to but not including 4.5.0.
Potential Impact
The vulnerability allows an attacker with local unprivileged userspace access to cause a fixed-size out-of-bounds write in kernel heap memory, potentially leading to memory corruption. This can result in information disclosure, privilege escalation, or denial of service. The CVSS score of 8.7 reflects high impact with low attack complexity, requiring local privileges but no user interaction. The vulnerability compromises confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves correcting the buffer length check to include the control message header size and returning an error if the buffer is too small. Until an official patch is available, avoid enabling IP_PKTINFO/IPV6_RECVPKTINFO or related socket options on affected Zephyr versions or ensure that applications do not call recvmsg() with undersized control buffers.
CVE-2026-10643: bounds in zephyrproject zephyr
Description
A vulnerability in Zephyr's IP socket recvmsg() implementation allows an out-of-bounds write when processing ancillary control messages with undersized buffers. This occurs because the buffer length check omits the control message header size, potentially corrupting kernel heap memory or user buffers. The issue affects Zephyr versions 3.6.0 through 4.4.0 and is triggered on UDP/IP sockets with IP_PKTINFO or related options enabled when recvmsg() is called with an undersized control buffer. The vulnerability has a high severity with a CVSS score of 8.7.
CVSS v3.1
Score 8.7high
Affected software
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
Technical Analysis
CVE-2026-10643 describes a bounds checking vulnerability in the Zephyr project's IP socket recvmsg() function, specifically in the insert_pktinfo() code. The implementation validates the user-supplied ancillary control buffer length using only the payload length, ignoring the size of the aligned control message header. This allows a control buffer length in a certain range to pass the check but causes a fixed-size out-of-bounds write of up to one control message header past the buffer end. Under CONFIG_USERSPACE, this leads to kernel heap corruption, exploitable by an unprivileged userspace thread. The flaw is reachable on UDP/IP sockets with IP_PKTINFO/IPV6_RECVPKTINFO or related options enabled when recvmsg() is called with an undersized control buffer and a datagram is received. The fix involves using NET_CMSG_SPACE(pktinfo_len) for capacity checks and returning -ENOMEM if the buffer is too small. Affected versions are from 3.6.0 up to but not including 4.5.0.
Potential Impact
The vulnerability allows an attacker with local unprivileged userspace access to cause a fixed-size out-of-bounds write in kernel heap memory, potentially leading to memory corruption. This can result in information disclosure, privilege escalation, or denial of service. The CVSS score of 8.7 reflects high impact with low attack complexity, requiring local privileges but no user interaction. The vulnerability compromises confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves correcting the buffer length check to include the control message header size and returning an error if the buffer is too small. Until an official patch is available, avoid enabling IP_PKTINFO/IPV6_RECVPKTINFO or related socket options on affected Zephyr versions or ensure that applications do not call recvmsg() with undersized control buffers.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-02T15:11:44.894Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a405af827e9c79719a1c645
Added to database: 06/27/2026, 23:21:28 UTC
Last enriched: 06/27/2026, 23:36:15 UTC
Last updated: 06/28/2026, 01:33:08 UTC
Views: 23
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.