]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: usb: kaweth: validate USB endpoints
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 13:00:06 +0000 (14:00 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Feb 2026 02:58:05 +0000 (18:58 -0800)
commit4b063c002ca759d1b299988ee23f564c9609c875
treed994e5eca565ef3535ea407e99daa53d4d824b17
parentc58b6c29a4c9b8125e8ad3bca0637e00b71e2693
net: usb: kaweth: validate USB endpoints

The kaweth 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: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Link: https://patch.msgid.link/2026022305-substance-virtual-c728@gregkh
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/kaweth.c