[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202108061529.07216CBF7@keescook>
Date: Fri, 6 Aug 2021 15:30:14 -0700
From: Kees Cook <keescook@...omium.org>
To: Stanislav Yakovlev <stas.yakovlev@...il.com>
Cc: Kalle Valo <kvalo@...eaurora.org>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH] ipw2x00: Avoid field-overflowing memcpy()
On Fri, Aug 06, 2021 at 01:08:55PM -0700, Kees Cook wrote:
> - if (element_info == NULL)
> + if (!element_info || info_element || info_element->len != size - 2)
> return -1;
> - if (info_element == NULL)
> - return -1;
Gah, a let a typo in. (should be !info_element.) v2 coming...
--
Kees Cook
Powered by blists - more mailing lists