{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "2d0874ec58968a3116caf4b6187640ae06a74819"
            },
            {
              "fixed": "ae987e804d8c18679b117fd55dd55a5c88b195b5"
            },
            {
              "fixed": "14acfeda31204c8e22d75707e543a21ec2a0573b"
            },
            {
              "fixed": "2468252d9190ebbf2da8d81b0132d7f2a67d86ec"
            },
            {
              "fixed": "e86108348f12dcd64d2cdaa8f59ea5f696d6f4a3"
            },
            {
              "fixed": "fdaca138694111153f96c7d76877734b9dbf0e01"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.10.276"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.227"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142990.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: usbtest: prevent divide by zero in simple_io() with zero length\n\nA divide error oops was observed in simple_io():\n\n\tusbtest 1-1:1.0: TEST 3:  write/1 0..0 bytes 16307 times\n\tOops: divide error: 0000 [#1] SMP KASAN\n\tRIP: 0010:simple_io+0x2c4/0x540 drivers/usb/misc/usbtest.c:497\n\nThe variable-length tests (test 3 and test 4) compute the next URB\nsize with \"len %= max\", where max is the original\nurb-\u003etransfer_buffer_length. However, when a zero-length transfer is\nrequested (param-\u003elength == 0), simple_alloc_urb() still returns a valid\nURB with transfer_buffer_length set to 0. On the first vary update,\n\"len %= max\" divides by zero and the kernel oopses.\n\nCommit 564e69893c63 (\"USB: usbtest: prevent a divide by zero bug\") added\nthe equivalent zero check to alloc_sglist(), which covers the\nscatterlist tests (test 7/8), but the single-URB variable-length path in\nsimple_io() was left unprotected.\n\nFix this by returning -EINVAL early from simple_io() when vary is\nrequested but max is zero, so the divide by zero never occurs.\nZero-length transfers without vary remain valid for the other callers of\nsimple_io().",
  "id": "CVE-2026-142990",
  "modified": "2026-12-03T10:45:26.087776590Z",
  "published": "2026-12-03T09:17:21.727Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/14acfeda31204c8e22d75707e543a21ec2a0573b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2468252d9190ebbf2da8d81b0132d7f2a67d86ec"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2d0874ec58968a3116caf4b6187640ae06a74819"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ae987e804d8c18679b117fd55dd55a5c88b195b5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e86108348f12dcd64d2cdaa8f59ea5f696d6f4a3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fdaca138694111153f96c7d76877734b9dbf0e01"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142990.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142990"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "usb: usbtest: prevent divide by zero in simple_io() with zero length"
}