CVE-2025-21877 Information
Description
In the Linux kernel the following vulnerability has been resolved:
usbnet: gl620a: fix endpoint checking in genelink_bind()
Syzbot reports [1] a warning in usb_submit_urb() triggered by inconsistencies between expected and actually present endpoints in gl620a driver. Since genelink_bind() does not properly verify whether specified eps are in fact provided by the device in this case an artificially manufactured one one may get a mismatch.
Fix the issue by resorting to a usbnet utility function usbnet_get_endpoints() usually reserved for this very problem. Check for endpoints and return early before proceeding further if any are missing.
[1] Syzbot report:
usb 5-1: Manufacturer: syz
usb 5-1: SerialNumber: syz
usb 5-1: config 0 descriptor??
gl620a 5-1:0.23 usb0: register ‘gl620a’ at usb-dummy_hcd.0-1 …
————[ cut here ]————
usb 5-1: BOGUS urb xfer pipe 3 != type 1
WARNING: CPU: 2 PID: 1841 at drivers/usb/core/urb.c:503 usb_submit_urb+0xe4b/0x1730 drivers/usb/core/urb.c:503
Modules linked in:
CPU: 2 UID: 0 PID: 1841 Comm: kworker/2:2 Not tainted 6.12.0-syzkaller-07834-g06afb0f36106 0
Hardware name: QEMU Standard PC (Q35 + ICH9 2009) BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Workqueue: mld mld_ifc_work
RIP: 0010:usb_submit_urb+0xe4b/0x1730 drivers/usb/core/urb.c:503
…
Call Trace:
Reference
https://git.kernel.org/stable/c/1cf9631d836b289bd5490776551961c883ae8a4f https://git.kernel.org/stable/c/24dd971104057c8828d420a48e0a5af6e6f30d3e https://git.kernel.org/stable/c/4e8b8d43373bf837be159366f0192502f97ec7a5 https://git.kernel.org/stable/c/5f2dbabbce04b1ffcd6d8d07564adb94db577536 https://git.kernel.org/stable/c/67ebc3391c8377738e97a43374054d9718fdb6e4 https://git.kernel.org/stable/c/9bcb8cbc3e5d67eb223bfb7e2291a270dbb699dc https://git.kernel.org/stable/c/a2ee5e55b50a97d13617c8653482c0ad4decff8c https://git.kernel.org/stable/c/ded25730c96949cb8b048b29c557e38569124943
Share on: