mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 13:08:30 +04:00
Check that the skb is large enough to contain the DSA trailer before accessing it in rteth_get_dsa_port(). Without the check, packets shorter than four bytes could result in an out-of-bounds access when looking for the RTL Otto trailer. Return -ENOENT when no valid DSA trailer is present. Assisted-by: ChatGPT (OpenAI GPT-5.6 Sol) Link: https://github.com/openwrt/openwrt/pull/24874 Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>