]> git.feebdaed.xyz Git - 0xmirror/ovs.git/commit
mcast-snooping: Properly check MLD packet length.
authorEelco Chaudron <echaudro@redhat.com>
Fri, 4 Jul 2025 12:39:58 +0000 (14:39 +0200)
committerEelco Chaudron <echaudro@redhat.com>
Mon, 7 Jul 2025 14:01:56 +0000 (16:01 +0200)
commit0d5eece55c5a0d9fa82edeb0aafbf1003e1ebbff
tree9c4661d0ec84abda1ee683fb26a92c8e60e38c86
parent22732c0e6770597031d1eb0a61ec922ea296c8b1
mcast-snooping: Properly check MLD packet length.

If an MLD packet is not large enough to contain the
message-specific data, it may lead to a NULL pointer access.
This patch fixes the issue by adding appropriate length checks.

Fixes: 06994f879c9d ("mcast-snooping: Add Multicast Listener Discovery support")
Acked-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
lib/mcast-snooping.c
lib/packets.h