diff options
| author | Luka Gejak <luka.gejak@linux.dev> | 2026-05-23 15:03:30 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-05-25 14:18:15 -0700 |
| commit | f229426072fc865654a60978bb7fda790a051ff3 (patch) | |
| tree | 8d915853b4818ad5467d095bc811d7e532356fd8 /samples/watch_queue | |
| parent | 2156a29aecfffa2eb7c558255690084efbe9f3b0 (diff) | |
net: hsr: fix potential OOB access in supervision frame handling
Ensure the entire TLV header is linearized before access by adding
sizeof(struct hsr_sup_tlv) to the pskb_may_pull() calls. Without this,
a truncated frame could cause an out-of-bounds access.
Fixes: eafaa88b3eb7 ("net: hsr: Add support for redbox supervision frames")
Signed-off-by: Luka Gejak <luka.gejak@linux.dev>
Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de>
Link: https://patch.msgid.link/20260523130330.61880-1-luka.gejak@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'samples/watch_queue')
0 files changed, 0 insertions, 0 deletions
