]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: validate registers coming from userspace.
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 16 May 2023 14:44:30 +0000 (16:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:44:07 +0000 (12:44 +0100)
commita60661352d5a05ade59567d1562b12d6a0121853
tree097a2e0a2ada5ecc8768349f21fcbd53afd9777d
parenta66cd3ea1c17346407f1c02776d24de30bef8970
netfilter: nf_tables: validate registers coming from userspace.

bfcfe6b3cdd49aec05edc762572828e0e1d9c7e3 ]

Bail out in case userspace uses unsupported registers.

Fixes: 73590c994412 ("netfilter: nf_tables: switch registers to 32 bit addressing")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_tables_api.c