[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200717.184306.746700973177455464.davem@davemloft.net>
Date: Fri, 17 Jul 2020 18:43:06 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: lebon.zhou@...il.com
Cc: kuba@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Fix memory overwriting issue when copy an address to
user space
From: lebon zhou <lebon.zhou@...il.com>
Date: Fri, 17 Jul 2020 10:31:54 +0000
> When application provided buffer size less than sockaddr_storage, then
> kernel will overwrite some memory area which may cause memory corruption,
> e.g.: in recvmsg case, let msg_name=malloc(8) and msg_namelen=8, then
> usually application can call recvmsg successful but actually application
> memory get corrupted.
>
> Fix to return EINVAL when application buffer size less than
> sockaddr_storage.
>
> Signed-off-by: lebon.zhou <lebon.zhou@...il.com>
Please post networking fixes to netdev@...r.kernel.org
Thank you.
Powered by blists - more mailing lists