{"id":"CVE-2026-98769","summary":"usb: gadget: f_uac1_legacy: validate bRequest index in generic_{set,get}_cmd","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_uac1_legacy: validate bRequest index in generic_{set,get}_cmd\n\ngeneric_set_cmd() and generic_get_cmd() use the low nibble of\nctrl-\u003ebRequest as an index into con-\u003edata[]:\n\n    u8 cmd = (ctrl-\u003ebRequest & 0x0F);  /* 0 .. 15 */\n    ...\n    con-\u003edata[cmd] = value;            /* OOB when cmd \u003e= 5 */\n\nstruct usb_audio_control (include/linux/usb/audio.h) declares data as\na 5-element array, so indices 5 through 15 write (or read) up to 44\nbytes past the end of the array on the heap.\n\nA malicious USB host can craft a class-specific SET_CUR / GET_CUR\nrequest with an arbitrary bRequest value, triggering the out-of-bounds\naccess from an IRQ completion handler with no further preconditions.\n\nAdd an ARRAY_SIZE() guard to both functions.","modified":"2026-10-20T02:30:43.354350688Z","published":"2026-10-18T15:48:04.800Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98769.json","cna_assigner":"Linux"},"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/36f3f009049bc91e14dc856007932473318d12f8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/697cfe6e53b66cda196d6f8833b0ee97fefd0a8a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8c611876c002d712ae5f246af5188432c708f79d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9062d50e75c24dc7911be05c9b1719b3b256af15"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98769.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98769"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c47d7b09891abb4f8b222317c89c7469bed8db3a"},{"fixed":"36f3f009049bc91e14dc856007932473318d12f8"},{"fixed":"8c611876c002d712ae5f246af5188432c708f79d"},{"fixed":"697cfe6e53b66cda196d6f8833b0ee97fefd0a8a"},{"fixed":"9062d50e75c24dc7911be05c9b1719b3b256af15"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98769.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.31"},{"fixed":"6.12.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.56"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98769.json"}}],"schema_version":"1.9.0"}