目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-18417— Zephyr BSD套接字TCP监听异步错误野指针解引用漏洞

一分钟漏洞结论

影响对象
zephyrproject zephyr
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

这段描述涉及 Zephyr 操作系统网络子系统中的内存安全和逻辑漏洞。以下是该漏洞描述信息的中文翻译: 在 BSD 原生套接字层中,通过类型双关(type-punning),异步套接字错误被记录在 的 字段中(即在 文件的 、 、 和 函数中执行 ),并通过 读取该值。对于监听 TCP 连接的上下文,该字段由网络栈独占: 将父上下文的指针存储在此处,TCP 核心随后将其传递给注册的接受回调函数。因此,当接受操作失败时,栈期望存放 指针的地方,实际留下的是一个小的整数值(即 错误码)。 当承载监听 TCP 套接字的网

CVSS 6.5 · Medium
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-18417 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Wild pointer dereference in Zephyr BSD sockets when a TCP listening socket reports an asynchronous error
来源: CVE Program / CVE List V5
Vulnerability Description
The native BSD-socket layer recorded a pending asynchronous socket error by type-punning it into struct net_context's void user_data field (ctx->user_data = INT_TO_POINTER(-status) in zsock_accepted_cb(), zsock_received_cb(), zsock_connected_cb() and zsock_close_ctx() in subsys/net/lib/sockets/sockets_inet.c), reading it back with POINTER_TO_INT(). That same field is owned by the network stack for listening TCP contexts: net_tcp_accept() stores the parent context pointer there and the TCP core passes it back to the registered accept callback. A failed accept therefore left a small integer (an errno value) where the stack expected a struct net_context . When the network interface carrying a listening TCP socket goes down, close_tcp_conn() in subsys/net/ip/tcp.c invokes the accept callback with -ENETDOWN and the context's user_data. In v4.3.0 the callback was not disarmed afterwards, so a second interface-down event forwarded the previously stored errno to zsock_accepted_cb(), which dereferenced it as the parent context and performed several stores through it (sock_set_error()'s read-modify-write of socket_data, k_fifo_cancel_wait(&parent->recv_q)) — the crash described in the fix's commit message. v4.3.1 and v4.4.x carry a later change clearing conn->accept_cb after the error callback (269cb8823d3 on the v4.3 branch, 913fae5169425550f2364655298fceb79b320066 on main), which closes that repeat path; on those releases the poisoned cookie remains reachable only by a narrower race, a handshake completing alongside the interface-down still passing the stale cookie to k_fifo_put(&parent->accept_q, ...), and by getsockopt(SO_ERROR), which reads the field back unconditionally. On v4.3.0 an application that keeps a listening TCP socket open across repeated link-down events is sufficient to reach the defect; the triggering condition is a network-interface state change, not attacker-supplied packet data, so the practical attacker is one able to force the link down repeatedly (for example an adjacent attacker disrupting a wireless link) or one with local/physical access. Because both the faulting address and the stored data are fixed small constants derived from the errno value, the outcome is a wild-pointer access leading to a kernel fatal error — a denial of service (device crash or reset) rather than an attacker-directed memory corruption. The fix stores the pending error in a dedicated net_context.sock_error field and converts every producer and consumer to sock_set_error()/sock_get_error(), leaving user_data untouched. As a side effect it also stops getsockopt(SO_ERROR) — which is evaluated unconditionally — from returning the kernel address held in user_data to a userspace application.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
使用不兼容类型访问资源(类型混淆)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
zephyrproject zephyr 4.3.0 ~ 4.4.2 -

二、漏洞 CVE-2026-18417 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-18417 的情报信息

请登录查看更多情报信息。

CVE-2026-18417 其他参考 (2)

同批安全公告 · zephyrproject · 2026-09-28 · 共 8 条

CVE-2026-16513 7.8 HIGH RTIO系统调用验证器漏洞允许任意内核写入
CVE-2026-18413 7.8 HIGH NXP MCUX LPADC ADC驱动越界写入漏洞
CVE-2026-18414 7.8 HIGH ADI MAX32 ADC驱动越界写入漏洞
CVE-2026-18747 6.8 MEDIUM MCUmgr 串口传输整数下溢出导致越界读取漏洞
CVE-2026-18415 6.3 MEDIUM IEEE 802.15.4 L2发送路径越界写入漏洞
CVE-2026-18746 5.9 MEDIUM Zephyr LwM2M客户端空指针解引用漏洞
CVE-2026-18416 3.7 LOW CoAP well-known-core 边界读取漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2026-18417

暂无评论


发表评论