In the Linux kernel, the following vulnerability has been resolved: llc: reserve device headroom for allocated frames llc_alloc_frame() reserves link-layer headroom using the device type. Этого недостаточно для стекированных устройств Ethernet, таких как устройства VLAN, где vlan_dev_hard_header() толкает заголовок VLAN перед заголовком Ethernet нижнего устройства. Таким образом, ответ LLC на таком устройстве может отставать от skb в eth_header().
Используйте LL_RESERVED_SPACE() для учета фактического требуемого запаса хода устройства, сохраняя при этом существующую проверку типа устройства LLC.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: llc: reserve device headroom for allocated frames llc_alloc_frame() reserves link-layer headroom using the device type. This is insufficient for stacked Ethernet devices such as VLAN devices, where vlan_dev_hard_header() pushes a VLAN header before the lower device's Ethernet header. An LLC response on such a device can therefore underflow skb headroom in eth_header(). Use LL_RESERVED_SPACE() to account for the device's actual required headroom while preserving the existing LLC device-type check.