[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1494457974.2028.3.camel@perches.com>
Date: Wed, 10 May 2017 16:12:54 -0700
From: Joe Perches <joe@...ches.com>
To: Kees Cook <keescook@...omium.org>, netdev@...r.kernel.org
Cc: Kalle Valo <kvalo@...eaurora.org>,
libertas-dev@...ts.infradead.org, linux-wireless@...r.kernel.org,
Daniel Micay <danielmicay@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] libertas: Avoid reading past end of buffer
On Wed, 2017-05-10 at 12:24 -0700, Kees Cook wrote:
> Using memcpy() from a string that is shorter than the length copied means
> the destination buffer is being filled with arbitrary data from the kernel
> rodata segment.
another bit of trivia:
> diff --git a/drivers/net/wireless/marvell/libertas/mesh.c b/drivers/net/wireless/marvell/libertas/mesh.c
[]
> @@ -1170,17 +1170,11 @@ int lbs_mesh_ethtool_get_sset_count(struct net_device *dev, int sset)
[]
> + memcpy(s, *mesh_stat_strings, sizeof(mesh_stat_strings));
That * isn't necessary.
Powered by blists - more mailing lists