PT-2026-166845

CVE-2026-142990

·

تاريخ النشر

2026-12-03

·

تاريخ التحديث

2026-12-03

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

In the Linux kernel, the following vulnerability has been resolved:
usb: usbtest: prevent divide by zero in simple io() with zero length
A divide error oops was observed in simple io():
usbtest 1-1:1.0: TEST 3: write/1 0..0 bytes 16307 times
Oops: divide error: 0000 [#1] SMP KASAN
RIP: 0010:simple io+0x2c4/0x540 drivers/usb/misc/usbtest.c:497
The variable-length tests (test 3 and test 4) compute the next URB size with "len %= max", where max is the original urb->transfer buffer length. However, when a zero-length transfer is requested (param->length == 0), simple alloc urb() still returns a valid URB with transfer buffer length set to 0. On the first vary update, "len %= max" divides by zero and the kernel oopses.
Commit 564e69893c63 ("USB: usbtest: prevent a divide by zero bug") added the equivalent zero check to alloc sglist(), which covers the scatterlist tests (test 7/8), but the single-URB variable-length path in simple io() was left unprotected.
Fix this by returning -EINVAL early from simple io() when vary is requested but max is zero, so the divide by zero never occurs. Zero-length transfers without vary remain valid for the other callers of simple io().
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾