Skip to content
High 7.5

Zephyrのイーサネットドライバーに脆弱性、遠隔から細工したパケットでメモリの範囲外に書き込まれるおそれ

CVE-2026-95826 First seen on SecPulse

Summary

Zephyrに含まれるSMSC911xイーサネットドライバーで、バッファーの大きさを超える長さのフレームを送信すると、範囲外への書き込みが起きる脆弱性です。同じリンク上の攻撃者がルーター広告でMTUを引き上げると、大きなフレームが送信される条件がそろうおそれがあります。影響を受けるのは4.3.2より前と4.4.0から4.5.0より前のZephyrで、4.3.2または4.5.0の修正版に更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Zephyrに含まれるSMSC911xイーサネットドライバーで、バッファーの大きさを超える長さのフレームを送信すると、範囲外への書き込みが起きる脆弱性です。同じリンク上の攻撃者がルーター広告でMTUを引き上げると、大きなフレームが送信される条件がそろうおそれがあります。影響を受けるのは4.3.2より前と4.4.0から4.5.0より前のZephyrで、4.3.2または4.5.0の修正版に更新してください。

Affected packages

PackageAffected → Fixed
zephyrprojectzephyr
≥ 1.14.0, < 4.3.2→ 4.3.2
≥ 4.4.0, < 4.5.0→ 4.5.0
Original description The description as published by the source.

The SMSC911x/LAN9220 Ethernet driver stages every outgoing frame in a fixed-size static buffer before pushing it to the controller FIFO. eth_tx() in drivers/ethernet/eth_smsc911x.c took the frame length from net_pkt_get_len(pkt) and passed it directly to net_pkt_read(pkt, tx_buf, total_len), with no comparison against the size of tx_buf (NET_ETH_MAX_FRAME_SIZE). net_pkt_read() takes no destination size and only fails when the packet is shorter than the requested length, so any packet longer than the staging buffer was copied past its end.

Nothing between the IP layer and the driver bounds the frame to what the link can carry: ethernet_send() in subsys/net/l2/ethernet/ethernet.c performs no length check, and the IPv6 output path only compares the packet against the interface MTU when CONFIG_NET_IPV6_FRAGMENT is enabled (it is disabled by default). The size the stack will build is therefore governed by the interface MTU, and that MTU is remotely settable: handle_ra_input() in subsys/net/ip/ipv6_nbr.c honours the MTU option of any Router Advertisement with a value up to 0xffff, gated only by the standard hop-limit-255 and link-local-source checks. An unauthenticated attacker on the same link can raise the MTU and then have the device emit a single frame of several kilobytes, for example as a TCP segment from any service that returns more than ~1.5 KB or as an oversized UDP datagram.

The result is an out-of-bounds write into .bss immediately after tx_buf, with the overrun lengt…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details