summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2023-01-11 17:07:33 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2023-01-11 19:18:04 +0100
commit696e1a48b1a1b01edad542a1ef293665864a4dd0 (patch)
tree6c6cd112a0f4e9b772306843c67443020f492fd8 /tools
parent9ea4b476cea1b7d461d16dda25ca3c7e616e2d15 (diff)
downloadlinux-696e1a48b1a1b01edad542a1ef293665864a4dd0.tar.bz2
netfilter: nft_payload: incorrect arithmetics when fetching VLAN header bits
If the offset + length goes over the ethernet + vlan header, then the length is adjusted to copy the bytes that are within the boundaries of the vlan_ethhdr scratchpad area. The remaining bytes beyond ethernet + vlan header are copied directly from the skbuff data area. Fix incorrect arithmetic operator: subtract, not add, the size of the vlan header in case of double-tagged packets to adjust the length accordingly to address CVE-2023-0179. Reported-by: Davide Ornaghi <d.ornaghi97@gmail.com> Fixes: f6ae9f120dad ("netfilter: nft_payload: add C-VLAN support") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions