{"id":"CVE-2026-31615","summary":"usb: gadget: renesas_usb3: validate endpoint index in standard request handlers","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: renesas_usb3: validate endpoint index in standard request handlers\n\nThe GET_STATUS and SET/CLEAR_FEATURE handlers extract the endpoint\nnumber from the host-supplied wIndex without any sort of validation.\nFix this up by validating the number of endpoints actually match up with\nthe number the device has before attempting to dereference a pointer\nbased on this math.\n\nThis is just like what was done in commit ee0d382feb44 (\"usb: gadget:\naspeed_udc: validate endpoint index for ast udc\") for the aspeed driver.","modified":"2026-06-03T03:54:51.418037903Z","published":"2026-04-24T14:42:34.806Z","related":["CGA-qf8c-29h6-8jqh","openSUSE-SU-2026:10703-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31615.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1b2bfedccc4fb8c9572e1ea464f905424c91de2a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/360aa6e71870a175a6d86af905be2ca171639eb3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/37f430b2240655e6b0199a92aa1057e4d621be51"},{"type":"WEB","url":"https://git.kernel.org/stable/c/44216e3dd4455b798899b50eedb0ec3831dff8e0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7caaf76207f50c77abfd788380e19b2c23a94415"},{"type":"WEB","url":"https://git.kernel.org/stable/c/adb8014599fdf0818d3d93f1f74e06cd0bdec08d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c4e5ae6db2328d2d9ed55d3005a36c13faab0752"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e3d42598f2995cdc07b7779874e7c5f8a1b773db"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f880aac8a57ebd92abfa685d45424b2998ac1059"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31615.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31615"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"746bfe63bba37ad55956b7377c9af494e7e28929"},{"fixed":"7caaf76207f50c77abfd788380e19b2c23a94415"},{"fixed":"c4e5ae6db2328d2d9ed55d3005a36c13faab0752"},{"fixed":"360aa6e71870a175a6d86af905be2ca171639eb3"},{"fixed":"1b2bfedccc4fb8c9572e1ea464f905424c91de2a"},{"fixed":"adb8014599fdf0818d3d93f1f74e06cd0bdec08d"},{"fixed":"44216e3dd4455b798899b50eedb0ec3831dff8e0"},{"fixed":"37f430b2240655e6b0199a92aa1057e4d621be51"},{"fixed":"e3d42598f2995cdc07b7779874e7c5f8a1b773db"},{"fixed":"f880aac8a57ebd92abfa685d45424b2998ac1059"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31615.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.5.0"},{"fixed":"5.10.258"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.209"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.175"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.136"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.83"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.24"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.20.0"},{"fixed":"7.0.1"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31615.json"}}],"schema_version":"1.7.5"}