Description
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: renesas_usb3: validate endpoint index in standard request handlers The GET_STATUS and SET/CLEAR_FEATURE handlers extract the endpoint number from the host-supplied wIndex without any sort of validation. Fix this up by validating the number of endpoints actually match up with the number the device has before attempting to dereference a pointer based on this math. This is just like what was done in commit ee0d382feb44 ("usb: gadget: aspeed_udc: validate endpoint index for ast udc") for the aspeed driver.
Product status
746bfe63bba37ad55956b7377c9af494e7e28929 (git) before 1b2bfedccc4fb8c9572e1ea464f905424c91de2a
746bfe63bba37ad55956b7377c9af494e7e28929 (git) before adb8014599fdf0818d3d93f1f74e06cd0bdec08d
746bfe63bba37ad55956b7377c9af494e7e28929 (git) before 44216e3dd4455b798899b50eedb0ec3831dff8e0
746bfe63bba37ad55956b7377c9af494e7e28929 (git) before 37f430b2240655e6b0199a92aa1057e4d621be51
746bfe63bba37ad55956b7377c9af494e7e28929 (git) before e3d42598f2995cdc07b7779874e7c5f8a1b773db
746bfe63bba37ad55956b7377c9af494e7e28929 (git) before f880aac8a57ebd92abfa685d45424b2998ac1059
4.5
Any version before 4.5
6.6.136 (semver)
6.12.83 (semver)
6.18.24 (semver)
6.19.14 (semver)
7.0.1 (semver)
7.1-rc1 (original_commit_for_fix)
References
git.kernel.org/...c/1b2bfedccc4fb8c9572e1ea464f905424c91de2a
git.kernel.org/...c/adb8014599fdf0818d3d93f1f74e06cd0bdec08d
git.kernel.org/...c/44216e3dd4455b798899b50eedb0ec3831dff8e0
git.kernel.org/...c/37f430b2240655e6b0199a92aa1057e4d621be51
git.kernel.org/...c/e3d42598f2995cdc07b7779874e7c5f8a1b773db
git.kernel.org/...c/f880aac8a57ebd92abfa685d45424b2998ac1059