]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: gadget: dfu: Fix check of transfer direction
authorHugo SIMELIERE <hsimeliere.opensource@witekio.com>
Wed, 30 Nov 2022 08:29:16 +0000 (09:29 +0100)
committerMarek Vasut <marex@denx.de>
Thu, 8 Dec 2022 13:30:39 +0000 (14:30 +0100)
commit14dc0ab138988a8e45ffa086444ec8db48b3f103
tree3336abb6e57f66cd247b2267b5edcf63917a1540
parent14f2d087a3d6347ba0ff7a7e9aaff6955e53e7a8
usb: gadget: dfu: Fix check of transfer direction

Commit fbce985e28eaca3af82afecc11961aadaf971a7e to fix CVE-2022-2347
blocks DFU usb requests.
The verification of the transfer direction was done by an equality
but it is a bit mask.

Signed-off-by: Hugo SIMELIERE <hsimeliere.opensource@witekio.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Sultan Qasim Khan <sultan.qasimkhan@nccgroup.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Tested-by: Marek Vasut <marex@denx.de>
drivers/usb/gadget/f_dfu.c