]> Git Repo - linux.git/commit
netfilter: flowtable: validate vlan header
authorPablo Neira Ayuso <[email protected]>
Tue, 13 Aug 2024 10:39:46 +0000 (12:39 +0200)
committerPablo Neira Ayuso <[email protected]>
Thu, 22 Aug 2024 10:14:18 +0000 (12:14 +0200)
commit6ea14ccb60c8ab829349979b22b58a941ec4a3ee
tree368e79a57fd09ebf0d94917d038f4b9a861d3fd6
parenta0b39e2dc7017ac667b70bdeee5293e410fab2fb
netfilter: flowtable: validate vlan header

Ensure there is sufficient room to access the protocol field of the
VLAN header, validate it once before the flowtable lookup.

=====================================================
BUG: KMSAN: uninit-value in nf_flow_offload_inet_hook+0x45a/0x5f0 net/netfilter/nf_flow_table_inet.c:32
 nf_flow_offload_inet_hook+0x45a/0x5f0 net/netfilter/nf_flow_table_inet.c:32
 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline]
 nf_hook_slow+0xf4/0x400 net/netfilter/core.c:626
 nf_hook_ingress include/linux/netfilter_netdev.h:34 [inline]
 nf_ingress net/core/dev.c:5440 [inline]

Fixes: 4cd91f7c290f ("netfilter: flowtable: add vlan support")
Reported-by: [email protected]
Signed-off-by: Pablo Neira Ayuso <[email protected]>
net/netfilter/nf_flow_table_inet.c
net/netfilter/nf_flow_table_ip.c
This page took 0.105457 seconds and 4 git commands to generate.