]> git.ipfire.org Git - thirdparty/linux.git/commit
net: usb: pegasus: validate USB endpoints
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 12:58:48 +0000 (13:58 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Feb 2026 02:52:49 +0000 (18:52 -0800)
commit11de1d3ae5565ed22ef1f89d73d8f2d00322c699
tree15a72beb4cdb215a83983b68c007caa115fe350e
parent12133a483dfa832241fbbf09321109a0ea8a520e
net: usb: pegasus: validate USB endpoints

The pegasus driver should validate that the device it is probing has the
proper number and types of USB endpoints it is expecting before it binds
to it.  If a malicious device were to not have the same urbs the driver
will crash later on when it blindly accesses these endpoints.

Cc: Petko Manolov <petkan@nucleusys.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/2026022347-legibly-attest-cc5c@gregkh
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/pegasus.c