Pablo Neira Ayuso cfe3550ea5 netfilter: nft_ct: sanitize layer 3 and 4 protocol number in custom expectations
[ Upstream commit 8059918a1377f2f1fff06af4f5a4ed3d5acd6bc4 ]

- Disallow families other than NFPROTO_{IPV4,IPV6,INET}.
- Disallow layer 4 protocol with no ports, since destination port is a
  mandatory attribute for this object.

Fixes: 857b46027d6f ("netfilter: nft_ct: add ct expectations support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-05 20:14:36 +00:00
..
2023-10-09 13:35:24 +02:00
2023-08-29 17:39:15 -07:00
2024-02-05 20:14:25 +00:00
2023-06-24 15:41:46 -07:00
2023-08-28 06:58:46 +01:00
2024-01-25 15:35:30 -08:00
2023-10-17 18:21:13 -07:00