本文へ移動
English version →
高 8.7

Zephyrのrecvmsgで境界外書き込みが発生し、カーネルメモリを破壊される

CVE-2026-10643 SecPulse初出

概要

Zephyrのrecvmsg()で補助データ(msg_control)のバッファ確認が不足しており、細工されたデータを受信すると範囲外の書き込みが起きます。影響はv3.6.0からv4.4.0までのZephyrで、未特權のユーザースレッドからも発生し得ます。修正では容量確認にNET_CMSG_SPACEを使い、バッファ不足時は-ENOMEMを返すよう改められています。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

Zephyr という製品で、CVE-2026-10643 という番号がついた弱点 (脆弱性) が見つかりました。
データの不正な改ざんを許す可能性があります。重要度は CVSS スコア 8.7/10 です。
対策: ベンダー公式の修正版に更新してください。
心配なら、システム担当者や製品の公式サイトで「Zephyr CVE-2026-10643」を検索してください。

CVE-2026-10643 (Zephyr) — CWE-787 / CVSS v3 8.7
攻撃ベクター: ローカル / 被害者操作不要
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

何が問題か

Zephyr に 境界外書き込み (CWE-787) があります。

影響範囲

Zephyr の影響バージョンはベンダーのアドバイザリで確認してください。

重要度

重要度: 重要 (CVSS 8.7/10)。データの不正な改ざんを許す可能性があります。

修正方法

ベンダー公式アドバイザリの修正版に更新してください。

暫定回避

修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。

検知方法

Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。

対応アクション

SOC/SREチームが順番に実行すべき具体的なステップとコマンド例

  1. 1
    影響範囲の特定identify
    grep -r 'Zephyr' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で Zephyr を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    事後検証verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

影響パッケージ

パッケージ影響を受ける版 → 修正版
zephyrprojectzephyr
4.0.0 以上 4.4.2 未満→ 4.4.2
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

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.

出典: NIST National Vulnerability Database NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく