aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <[email protected]>2024-06-26 21:15:38 +0000
committerPablo Neira Ayuso <[email protected]>2024-06-26 23:09:51 +0000
commit7931d32955e09d0a11b1fe0b6aac1bfa061c005c (patch)
treecfe86b94022cfea0817cace978248e94aeb93892 /net/unix/af_unix.c
parentnetfilter: fix undefined reference to 'netfilter_lwtunnel_*' when CONFIG_SYSC... (diff)
downloadkernel-7931d32955e09d0a11b1fe0b6aac1bfa061c005c.tar.gz
kernel-7931d32955e09d0a11b1fe0b6aac1bfa061c005c.zip
netfilter: nf_tables: fully validate NFT_DATA_VALUE on store to data registers
register store validation for NFT_DATA_VALUE is conditional, however, the datatype is always either NFT_DATA_VALUE or NFT_DATA_VERDICT. This only requires a new helper function to infer the register type from the set datatype so this conditional check can be removed. Otherwise, pointer to chain object can be leaked through the registers. Fixes: 96518518cc41 ("netfilter: add nftables") Reported-by: Linus Torvalds <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions