diff options
author | David Bauer <mail@david-bauer.net> | 2024-04-18 16:29:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-19 14:54:33 +0300 |
commit | f58f45c1e5b92975e91754f5407250085a6ae7cf (patch) | |
tree | dcbdc060f1c381656b24f5a68941b4aee940b7a9 /net/ipv4 | |
parent | 69197dfc64007b5292cc960581548f41ccd44828 (diff) | |
download | linux-f58f45c1e5b92975e91754f5407250085a6ae7cf.tar.xz |
vxlan: drop packets from invalid src-address
The VXLAN driver currently does not check if the inner layer2
source-address is valid.
In case source-address snooping/learning is enabled, a entry in the FDB
for the invalid address is created with the layer3 address of the tunnel
endpoint.
If the frame happens to have a non-unicast address set, all this
non-unicast traffic is subsequently not flooded to the tunnel network
but sent to the learnt host in the FDB. To make matters worse, this FDB
entry does not expire.
Apply the same filtering for packets as it is done for bridges. This not
only drops these invalid packets but avoids them from being learnt into
the FDB.
Fixes: d342894c5d2f ("vxlan: virtual extensible lan")
Suggested-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David Bauer <mail@david-bauer.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions