netfilter: nft_exthdr: Search chunks in SCTP packets only
stable inclusion from stable-v5.10.198 commit e18216cd0ec7fef9bb87cf8b4124bc1212e5add1 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I987V5 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e18216cd0ec7fef9bb87cf8b4124bc1212e5add1 -------------------------------- [ Upstream commit 5acc44f3 ] Since user space does not generate a payload dependency, plain sctp chunk matches cause searching in non-SCTP packets, too. Avoid this potential mis-interpretation of packet data by checking pkt->tprot. Fixes: 133dc203 ("netfilter: nft_exthdr: Support SCTP chunks") Signed-off-by:Phil Sutter <phil@nwl.cc> Signed-off-by:
Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment