]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: stricter validation of element data
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 16 May 2023 14:44:33 +0000 (16:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:44:08 +0000 (12:44 +0100)
commit773ef55f3cdad90cd16b4ec1b247d2b1e33c87da
tree3971f601cbe6fea6b3c8c4d3d43368a29954d936
parent18b1a80bd703a39f1209e03107645f49d134765b
netfilter: nf_tables: stricter validation of element data

bee06421687aba5401e8fb3735f3a63bbb6d0cbf ]

Make sure element data type and length do not mismatch the one specified
by the set declaration.

Fixes: 4969e2e898fb ("netfilter: nf_tables: variable sized set element keys / data")
Reported-by: Hugues ANGUELKOV <hanguelkov@randorisec.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_tables_api.c