{"id":"AZL-117890","summary":"CVE-2026-142990 affecting package kernel 6.6.161.1-1","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().","modified":"2026-12-04T14:18:39.461745228Z","published":"2026-12-03T10:17:23Z","upstream":["CVE-2026-142990"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142990"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-117890.json"}}],"schema_version":"1.9.2"}