Thread (11 messages) 11 messages, 4 authors, 2026-03-28

Re: [PATCH net 3/3] vxlan: validate ND option lengths in vxlan_na_create

From: Ido Schimmel <idosch@nvidia.com>
Date: 2026-03-26 16:30:43
Also in: bridge, lkml

On Thu, Mar 26, 2026 at 03:44:41AM +0000, Yang Yang wrote:
vxlan_na_create() walks ND options according to option-provided
lengths. A malformed option can make the parser advance beyond the
computed option span or use a too-short source LLADDR option payload.

Validate option lengths against the remaining NS option area before
advancing, and only read source LLADDR when the option is large enough
for an Ethernet address.

Fixes: 4b29dba9c085 ("vxlan: fix nonfunctional neigh_reduce()")
Cc: stable@vger.kernel.org
Reported-by: Yifan Wu <redacted>
Reported-by: Juefei Pu <redacted>
Tested-by: Ao Zhou <redacted>
Co-developed-by: Yuan Tan <redacted>
Signed-off-by: Yuan Tan <redacted>
Suggested-by: Xin Liu <redacted>
Signed-off-by: Yang Yang <redacted>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help