On Wed, 14 Apr 2021 at 12:30, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote: > > The "ext->key_len" is a u16 that comes from the user. If it's over > SCM_KEY_LEN (32) that could lead to memory corruption. > > Fixes: e0d369d1d969 ("[PATCH] ieee82011: Added WE-18 support to default wireless extension handler") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > v2: use clamp_val() instead of min_t() > > drivers/net/wireless/intel/ipw2x00/libipw_wx.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > Cc: stable@xxxxxxxxxxxxxxx Acked-by: Stanislav Yakovlev <stas.yakovlev@xxxxxxxxx> Stanislav.