Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
af_key: pfkey_dump needs parameter validation
In pfkey_dump() dplen and splen can both be specified to access the xfrm_address_t structure out of bounds in__xfrm_state_filter_match() when it calls addr_match() with the indexes. Return EINVAL if either are out of range. Signed-off-by: Mark Salyzyn <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Steffen Klassert <[email protected]> Cc: Herbert Xu <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Jakub Kicinski <[email protected]> Fixes: 1da177e ("Linux-2.6.12-rc2") Signed-off-by: Steffen Klassert <[email protected]>
- Loading branch information