]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: rc: igorplugusb: fix control request setup packet
authorHenri A <contact@henrialfonso.com>
Wed, 20 May 2026 14:25:44 +0000 (10:25 -0400)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Sat, 30 May 2026 16:21:47 +0000 (18:21 +0200)
commit171022c7d594c133a45f92357a2a91475edabe20
tree87ffeb174ec8aa00c51ee37dcb3d18a079a9117d
parentf78073e84c800ae146ce62447e7a685a5ceeb92d
media: rc: igorplugusb: fix control request setup packet

Commit eac69475b01f ("media: rc: igorplugusb: heed coherency
rules") changed the control request storage from an embedded struct to
an allocated pointer so it can obey DMA coherency rules.

However, the driver still passes &ir->request to usb_fill_control_urb().
That points the URB setup packet at the pointer field itself rather than
at the allocated struct usb_ctrlrequest.

USB core then interprets pointer bytes as the setup packet. This can
produce an invalid bRequestType and trigger the control direction warning
reported by syzbot:

  usb 2-1: BOGUS control dir, pipe 80003580 doesn't match bRequestType 0

Pass ir->request itself as the setup packet.

Fixes: eac69475b01f ("media: rc: igorplugusb: heed coherency rules")
Reported-by: syzbot+11f0e4f957c7c3bf3d51@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=11f0e4f957c7c3bf3d51
Tested-by: syzbot+11f0e4f957c7c3bf3d51@syzkaller.appspotmail.com
Cc: stable@vger.kernel.org
Assisted-by: Codex:GPT-5.5
Signed-off-by: Henri A <contact@henrialfonso.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/rc/igorplugusb.c