[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y+T84+VIBytBSLrJ@hog>
Date: Thu, 9 Feb 2023 15:02:11 +0100
From: Sabrina Dubroca <sd@...asysnail.net>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: Hyunwoo Kim <v4bel@...ori.io>, steffen.klassert@...unet.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, imv4bel@...il.com, netdev@...r.kernel.org
Subject: Re: [v2 PATCH] xfrm: Zero padding when dumping algos and encap
2023-02-09, 09:09:52 +0800, Herbert Xu wrote:
> v2 fixes the mistaken type of XFRMA_ALG_COMP for x->encap.
>
> ---8<---
> When copying data to user-space we should ensure that only valid
> data is copied over. Padding in structures may be filled with
> random (possibly sensitve) data and should never be given directly
> to user-space.
>
> This patch fixes the copying of xfrm algorithms and the encap
> template in xfrm_user so that padding is zeroed.
>
> Reported-by: syzbot+fa5414772d5c445dac3c@...kaller.appspotmail.com
> Reported-by: Hyunwoo Kim <v4bel@...ori.io>
> Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
Thanks Herbert.
Reviewed-by: Sabrina Dubroca <sd@...asysnail.net>
--
Sabrina
Powered by blists - more mailing lists