CVE-2026-142990

Not scored yetLast modified Dec 3, 2026

Description

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

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2d0874ec58968a3116caf4b6187640ae06a74819; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ae987e804d8c18679b117fd55dd55a5c88b195b5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 14acfeda31204c8e22d75707e543a21ec2a0573b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2468252d9190ebbf2da8d81b0132d7f2a67d86ec; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e86108348f12dcd64d2cdaa8f59ea5f696d6f4a3; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fdaca138694111153f96c7d76877734b9dbf0e01; < 5.10.276; < 5.15.227; < 6.12.120; < 6.18.66; < 7.3.7
LinuxLinux—

References

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142991In the Linux kernel, the following vulnerability has been resolved: usb: typec: nb7vpq904m: Set client data in probe to avoid crash on remoCVE-2026-142992In the Linux kernel, the following vulnerability has been resolved: USB: serial: oti6858: fix the teardown order in close The driver passeCVE-2026-142993In the Linux kernel, the following vulnerability has been resolved: USB: serial: garmin_gps: fix deadlock on reset request The garmin_gps CVE-2026-142994In the Linux kernel, the following vulnerability has been resolved: thunderbolt: stream: Undo more if the start fails If the receive buffeCVE-2026-142995In the Linux kernel, the following vulnerability has been resolved: serial: samsung: put the previous baud clock s3c24xx_serial_getclk() rCVE-2026-142996In the Linux kernel, the following vulnerability has been resolved: serial: samsung: don't leak the tty on an RX IRQ s3c24xx_serial_rx_chaCVE-2026-142997In the Linux kernel, the following vulnerability has been resolved: serial: imx: fix the tty reference of the wakeup event To report a wakCVE-2026-142998In the Linux kernel, the following vulnerability has been resolved: serial: fsl_lpuart: fix tty ref of wakeup event To report a wakeup eveCVE-2026-142999In the Linux kernel, the following vulnerability has been resolved: serial: core: respect runtime PM when sending x_char __uart_start() caCVE-2026-14304.8The WP Lightbox 2 WordPress plugin before 3.0.7 does not sanitise and escape some of its settings, which could allow high privilege users suCVE-2026-143008.1The miniOrange Social Login and Register (Discord, Google, Twitter, LinkedIn) WordPress plugin before 7.8.0 does not bind the one-time code CVE-2026-143000In the Linux kernel, the following vulnerability has been resolved: serial: 8250_lpss: don't divide by 0 above 6.25 Mbaud byt_set_termios(
CVE-2026-142990: Unscored | Vulnix