{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-142990",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.341Z",
        "datePublished": "2026-12-03T09:17:21.727Z",
        "dateUpdated": "2026-12-03T09:17:21.727Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T09:17:21.727Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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->transfer_buffer_length. However, when a zero-length transfer is\nrequested (param->length == 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()."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/usb/misc/usbtest.c"
                    ],
                    "versions": [
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "2d0874ec58968a3116caf4b6187640ae06a74819",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "ae987e804d8c18679b117fd55dd55a5c88b195b5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "14acfeda31204c8e22d75707e543a21ec2a0573b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "2468252d9190ebbf2da8d81b0132d7f2a67d86ec",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "e86108348f12dcd64d2cdaa8f59ea5f696d6f4a3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "fdaca138694111153f96c7d76877734b9dbf0e01",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.10.276",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.15.227",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.12.120",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.18.66",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "0",
                            "lessThan": "7.3.7",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/usb/misc/usbtest.c"
                    ],
                    "versions": [
                        {
                            "version": "5.10.276",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.227",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.120",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.7",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc4",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "5.10.276"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "5.15.227"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "7.4-rc4"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/2d0874ec58968a3116caf4b6187640ae06a74819"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ae987e804d8c18679b117fd55dd55a5c88b195b5"
                },
                {
                    "url": "https://git.kernel.org/stable/c/14acfeda31204c8e22d75707e543a21ec2a0573b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2468252d9190ebbf2da8d81b0132d7f2a67d86ec"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e86108348f12dcd64d2cdaa8f59ea5f696d6f4a3"
                },
                {
                    "url": "https://git.kernel.org/stable/c/fdaca138694111153f96c7d76877734b9dbf0e01"
                }
            ],
            "title": "usb: usbtest: prevent divide by zero in simple_io() with zero length",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}