-
- Downloads
netfilter: nft_payload: sanitize offset and length before calling skb_checksum()
[ Upstream commit d5953d68 ] If access to offset + length is larger than the skbuff length, then skb_checksum() triggers BUG_ON(). skb_checksum() internally subtracts the length parameter while iterating over skbuff, BUG_ON(len) at the end of it checks that the expected length to be included in the checksum calculation is fully consumed. Fixes: 7ec3f7b4 ("netfilter: nft_payload: add packet mangling support") Reported-by:Slavin Liu <slavin-ayu@qq.com> Signed-off-by:
Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment