Ubuntu-focal-kernel/net/key
Lin Ma 3828170fcc net: af_key: fix sadb_x_filter validation
BugLink: https://bugs.launchpad.net/bugs/2039440

[ Upstream commit 75065a8929069bc93181848818e23f147a73f83a ]

When running xfrm_state_walk_init(), the xfrm_address_filter being used
is okay to have a splen/dplen that equals to sizeof(xfrm_address_t)<<3.
This commit replaces >= to > to make sure the boundary checking is
correct.

Fixes: 37bd22420f ("af_key: pfkey_dump needs parameter validation")
Signed-off-by: Lin Ma <linma@zju.edu.cn>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
2023-10-30 11:41:58 +01:00
..
Makefile
af_key.c net: af_key: fix sadb_x_filter validation 2023-10-30 11:41:58 +01:00