CVE-2026-142990

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().

Package Linux Kernel
Published 2026-12-03
Last modified 2026-12-06
Patch available
Yes

Affected versions

Fixed in 5.10.276, 5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc4 and their respective stable series.

Fixed in
✓ 5.10.276 5.10.x ✓ 5.15.227 5.15.x ✓ 6.12.120 6.12.x ✓ 6.18.66 6.18.x ✓ 7.3.7 7.3.x ✓ 7.4-rc4

Frequently asked questions

  • What is CVE-2026-142990?

    CVE-2026-142990 is a unscored severity Linux kernel vulnerability . CVE-2026-142990 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • Is there a patch available for CVE-2026-142990?

    Yes. CVE-2026-142990 has been patched. Fixed versions include 5.10.276, 5.15.227, 6.12.120 and others.

  • Is CVE-2026-142990 actively exploited?

    No. CVE-2026-142990 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.