diff options
| author | Fernando Fernandez Mancera <fmancera@suse.de> | 2026-10-15 14:47:48 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-20 11:46:19 -0700 |
| commit | 14c0350142ab0a10ebeefed03b779df23749e16a (patch) | |
| tree | bca396aac7eece09f0c540fc064ee84364f7d6b6 /tools/lib/python/kdoc/python_version.py | |
| parent | 62b2f79cf3409c128217e20f13afd14c3cc9f656 (diff) | |
net: openvswitch: skip IPv4 later fragments on TCP/UDP set actions
An IPv4 later fragment carries no L4 header, but key extraction leaves
ip.proto set to the real protocol and the flow may wildcard the frag
field, so validate_set() accepts such packets. set_tcp() and set_udp()
then treat the first bytes of the fragment payload as an L4 header,
rewrite them as ports and patch the bytes at the checksum offset,
corrupting the packet.
Skip these actions for OVS_FRAG_TYPE_LATER. IPv6 later fragments are not
affected, since their ip.proto is NEXTHDR_FRAGMENT and validate_set()
rejects L4 set actions for them.
Fixes: ccb1352e76cf ("net: Add Open vSwitch kernel components.")
Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
Reviewed-by: Ilya Maximets <i.maximets@ovn.org>
Link: https://patch.msgid.link/20261015124749.4694-1-fmancera@suse.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
