]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: hsr: require valid EOT supervision TLV
authorLuka Gejak <luka.gejak@linux.dev>
Sat, 23 May 2026 13:04:20 +0000 (15:04 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 27 May 2026 01:41:05 +0000 (18:41 -0700)
commit46d111a3ef3b5972804dcdce0833767143a12192
tree4e2e9cff0e5a354a55c6f21f943b0e9bdd6fc130
parent09cfce83e89a456a2587b4317b5395438feb2405
net: hsr: require valid EOT supervision TLV

Supervision frames are only valid if terminated with a zero-length EOT
TLV. The current check fails to reject non-EOT entries as the terminal
TLV, potentially allowing malformed supervision traffic.

Fix this by strictly requiring the terminal TLV to be HSR_TLV_EOT with
a length of zero.

Signed-off-by: Luka Gejak <luka.gejak@linux.dev>
Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de>
Link: https://patch.msgid.link/20260523130420.62144-1-luka.gejak@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/hsr/hsr_forward.c