[lvc-project] [PATCH v2] wifi: cfg80211: fix two more possible UBSAN-detected off-by-one errors

Kees Cook kees at kernel.org
Wed Sep 11 03:27:57 MSK 2024


On Mon, Sep 09, 2024 at 12:08:06PM +0300, Dmitry Antipov wrote:
> Although not reproduced in practice, these two cases may be
> considered by UBSAN as off-by-one errors. So fix them in the
> same way as in commit a26a5107bc52 ("wifi: cfg80211: fix UBSAN
> noise in cfg80211_wext_siwscan()").
> 
> Fixes: 807f8a8c3004 ("cfg80211/nl80211: add support for scheduled scans")
> Fixes: 5ba63533bbf6 ("cfg80211: fix alignment problem in scan request")
> Signed-off-by: Dmitry Antipov <dmantipov at yandex.ru>

Thanks for finding these!

Reviewed-by: Kees Cook <kees at kernel.org>

-- 
Kees Cook



More information about the lvc-project mailing list