Re: [PATCH v2] wifi: ath9k: don't allow to overwrite ENDPOINT0 attributes

From: Toke Høiland-Jørgensen
Date: Tue May 16 2023 - 15:47:32 EST


Fedor Pchelkin <pchelkin@xxxxxxxxx> writes:

> A bad USB device is able to construct a service connection response
> message with target endpoint being ENDPOINT0 which is reserved for
> HTC_CTRL_RSVD_SVC and should not be modified to be used for any other
> services.
>
> Reject such service connection responses.
>
> Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
>
> Fixes: fb9987d0f748 ("ath9k_htc: Support for AR9271 chipset.")
> Reported-by: syzbot+b68fbebe56d8362907e8@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Fedor Pchelkin <pchelkin@xxxxxxxxx>

Acked-by: Toke Høiland-Jørgensen <toke@xxxxxxx>