脆弱性の一覧へ戻る
編集部の見出し:Zephyr RTOS:parse_ipv4() の境界なしコピー(9.8)
NVD の情報
parse_ipv4() in subsys/net/ip/utils.c (reached via net_ipaddr_parse() for strings of the form "a.b.c.d:port") copies the port substring into a fixed 17-byte stack buffer (char ipaddr[NET_IPV4_ADDR_LEN + 1]) using a length of str_len - end - 1, where str_len is the full, unbounded input length and end is only the (<=15-byte) offset of the ':' delimiter. Because the destination size is never consulted, a crafted address string with a long suffix after the colon (e.g. "1.2.3.4:" followed by hundreds of bytes) causes an out-of-bounds stack write whose length and contents are fully attacker-controlled (memcpy of the suffix plus a trailing NUL), enabling memory corruption and at minimum a denial of service, and potentially control-flow hijack. The parser is reached from the standard socket API (zsock_getaddrinfo / literal-address resolution), DNS server-string configuration, and the eswifi Wi-Fi co-processor DNS-response path, so an application that resolves a network-influenced address string is exposed. The bug was introduced when the parser was added (Zephyr v1.9.0) and shipped in all releases through v4.4.0. The fix removes the unbounded copy and validates the port length before copying into a small dedicated buffer. Note: the equivalent IPv6 "[addr]:port" path in parse_ipv6() retains the same unbounded copy at this commit and remains a separate, still-reachable instance of the defect.
- 公開日
- 2026-07-12
- 最終更新(NVD)
- 2026-11-04
- NVD の状態
- Analyzed
- 脆弱性の種類
- CWE-121
深刻度(CVSS)
- 8.1 HighCVSS 3.1/副/評価:vulnerabilities@zephyrproject.org
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - 9.8 CriticalCVSS 3.1/主/評価:nvd@nist.gov
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
悪用の状況
CISA KEV には掲載されていません(掲載されていないことは、悪用されていないことの証明ではありません)。
EPSS:今後30日に悪用される推定確率 0.65%(全体の上位 48.5%、評価日 2026-11-05)
解消方法
- zephyrproject zephyr のバージョンアップ4.4.1 より後根拠:NVD の条件から推定
「NVD の条件から推定」は、NVD が影響ありとする版の上限から読み取ったもので、修正版とは限りません。「解消方法の情報なし」は、修正が無いという意味ではありません。必ずベンダーの公告で確認してください。
影響を受ける製品と版(NVD の条件)
版の範囲は NVD の条件上の影響範囲です。修正版とは限りません。修正版はベンダーの公告で確認してください。
- zephyrproject zephyr:1.9.0 以上、4.4.1 以下
編集部の記載(レポート掲載時)
レポートの編集部がベンダー公告などから転記した内容です。検証済みの値ではないため、必ず出典で確認してください。
2026-11-05 のレポートZephyr RTOS:parse_ipv4() の境界なしコピー(9.8)
一覧のみのカード。
参照(NVD)
- https://github.com/zephyrproject-rtos/zephyr/commit/1c8d19a51f9a3c1be6de53854c8ad8c2720a0f48修正
- https://github.com/zephyrproject-rtos/zephyr/commit/6e119a636a57be449ea21e73cad762ebc6f5ff7a修正
- https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-532c-7g7f-jhmh攻撃コード、修正、ベンダー公告
- https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-532c-7g7f-jhmh攻撃コード、修正、ベンダー公告
NVD から取得:2026-11-05T15:55:30.561Z/EPSS 評価日:2026-11-05
This product uses the NVD API but is not endorsed or certified by the NVD.
悪用の確認情報は CISA Known Exploited Vulnerabilities Catalog(NVD 経由で取得)によります。EPSS は FIRST(www.first.org/epss)によります。