From: zmw12306 Date: Mon, 24 Mar 2025 02:37:59 +0000 (-0400) Subject: babeld: Missing Validation for AE=0 and Plen!=0 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=7c48a717f00b0bdeec7c0f10f02515b705f3e060;p=matthieu%2Ffrr.git babeld: Missing Validation for AE=0 and Plen!=0 A Request TLV with AE set to 0 and Plen not set to 0 MUST be ignored. Signed-off-by: zmw12306 --- diff --git a/babeld/message.c b/babeld/message.c index 5a33d5c288..fabd72fda3 100644 --- a/babeld/message.c +++ b/babeld/message.c @@ -706,6 +706,11 @@ parse_packet(const unsigned char *from, struct interface *ifp, "Received source-specific wildcard request."); goto done; } + if(message[3] != 0) { + flog_err(EC_BABEL_PACKET, + "Ignoring request with AE=0 and non-zero Plen"); + goto done; + } /* If a neighbour is requesting a full route dump from us, we might as well send it an IHU. */ send_ihu(neigh, NULL);