Files
openwrt/target
Markus Stockhausen d108030728 realtek: eth: validate DSA trailer length
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>
2026-08-27 16:35:20 +02:00
..
…
…
…