PT-2026-128335
CVE-2026-82962
·
تاريخ النشر
2026-10-28
·
تاريخ التحديث
2026-10-28
الوصف من
CVSS 3.1
6.5
متوسطةالمقاييسAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
ethernet fill header() in subsys/net/l2/ethernet/ethernet.c can prepend the Ethernet header in place, by pushing it into the headroom of the packet's first fragment, instead of allocating a separate header fragment. Before this fix the in-place path was selected purely from the build-time value of CONFIG NET L2 ETHERNET RESERVE HEADER, with no check that the packet actually has that headroom, and then called net buf push(pkt->buffer, hdr len). Only Ethernet TX allocations reserve that space: net pkt alloc buffer() invokes the L2 alloc hook (ethernet l2 alloc()) only when is pkt tx() is true and the packet's interface is the Ethernet interface.
A packet that was allocated by a different L2 and then handed to Ethernet for transmission therefore has too little (usually zero) headroom. Such packets are produced by ordinary routing and tunnelling paths: net route packet if() re-targets a received packet to another interface when CONFIG NET IPV4 FORWARDING / CONFIG NET IPV6 FORWARDING are enabled (for example an 802.15.4/OpenThread or PPP interface forwarding to Wi-Fi/Ethernet), net route ipv6 mcast forward packet() forwards an RX-slab clone that carries no reserve, and the IPIP tunnel interface send() prepends an outer IP header allocated on the virtual interface. In these configurations a remote or adjacent attacker triggers the condition simply by sending traffic that the device forwards.
Because net buf simple push() only asserts on the headroom bound, a build without CONFIG ASSERT (and without the newer CONFIG NET BUF HARDENING) moves the fragment data pointer below the start of its data block and writes 14 bytes — 18 with VLAN — of Ethernet header out of bounds. With the default fixed-size buffer pools this overwrites the tail of the neighbouring buffer's payload or memory preceding the pool array; with variable-size pools it overwrites the buffer reference count and the heap chunk header. The attacker controls neither the written bytes nor the offset, so the practical impact is memory corruption leading to a crash, packet corruption, or heap inconsistency rather than controlled code execution. The fix takes the in-place path only when net buf headroom(pkt->buffer) is large enough and otherwise falls back to a separate header fragment.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾