CVE-2026-142990 usb: usbtest: prevent divide by zero in simple_io() with zero length
linux linux: no CVSS score yet. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.
On this page
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().
- EPSS
- 0.2% estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-12-03. A forecast for this CVE across the internet, not for your own systems.
- Published
- Assigned by
- Linux (CNA)
- NVD analysis
- Awaiting analysis
- Record from
- the NVD, synced
Fix and patched versions
- Linux Linux: fixed in 5.10.276
- Linux Linux: fixed in 5.15.227
- Linux Linux: fixed in 6.12.120
- Linux Linux: fixed in 6.18.66
- Linux Linux: fixed in 7.3.7
- Linux Linux: fixed in 7.4-rc4
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-142990 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-142990?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-142990?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-142990 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Linux | before 5.10.276 |
| Linux | before 5.15.227 |
| Linux | before 6.12.120 |
| Linux | before 6.18.66 |
| Linux | before 7.3.7 |
Fixed in
| Product | Release line | Fixed in |
|---|---|---|
| Linux | 5.10 | 5.10.276 |
| Linux | 5.15 | 5.15.227 |
| Linux | 6.12 | 6.12.120 |
| Linux | 6.18 | 6.18.66 |
| Linux | 7.3 | 7.3.7 |
| Linux | later releases | 7.4-rc4 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | linux | no fix listed | DEBIAN-CVE-2026-142990 |
From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.
References
- https://git.kernel.org/stable/c/14acfeda31204c8e22d75707e543a21ec2a0573b
- https://git.kernel.org/stable/c/2468252d9190ebbf2da8d81b0132d7f2a67d86ec
- https://git.kernel.org/stable/c/2d0874ec58968a3116caf4b6187640ae06a74819
- https://git.kernel.org/stable/c/ae987e804d8c18679b117fd55dd55a5c88b195b5
- https://git.kernel.org/stable/c/e86108348f12dcd64d2cdaa8f59ea5f696d6f4a3
- https://git.kernel.org/stable/c/fdaca138694111153f96c7d76877734b9dbf0e01