Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC8022E3709 for ; Fri, 24 Apr 2026 14:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041899; cv=none; b=ZYaevl/Hsf1Bkg9bljVKG8PTWn3dgX1jhOxzr/IjhGQKZw5CiB1xBorIYV8Hyt8DEx2V7hfx7kFjVCUa/9bQysOvXTn1YTu71mvnkIuAOfleYpa6m7inBl9sLWWuWmnj9T4OYEnffGOp6mct11x0ClhUGWTuQybM1x9vNokfb0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041899; c=relaxed/simple; bh=SBH7qp4H0YPVUJjW9AoCKwB1hX3xGslJKr1Aimv9WZ0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e8oneT6765HhPUfg7PY5VpIvBdgg4IjSFhnLOZc/keqMQK/udKcBU5IJwNqcZopttyGiQuyX7nL1dSc01OPzQpDwHoOrPomjmZS4X2bji03UUS3CgTHbF62HFoY9NKMeSPi4E6V/15iGvN9e9/5VUzMDTZYcGaMvfySptLzOoW4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=da9BDo0l; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="da9BDo0l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32841C19425; Fri, 24 Apr 2026 14:44:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041899; bh=SBH7qp4H0YPVUJjW9AoCKwB1hX3xGslJKr1Aimv9WZ0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=da9BDo0lmCtIJciFOiU7FEK9P+WFyMF98ytFlgZzaC2+18qjHRV3n+myueO7EEDF5 V4URMfyVkUm6/KD07DOp+FzGsmuXSsUubN6Gm/kZmy3z4xP54v8+7JAe/PkGIgJtTZ +wFeBLt9PJul5WuGi8Of985YUDJ9Hdp7KJDJczTU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31615: usb: gadget: renesas_usb3: validate endpoint index in standard request handlers Date: Fri, 24 Apr 2026 16:43:51 +0200 Message-ID: <2026042423-CVE-2026-31615-f19f@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2455; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aywBFINopjv1BVrtq/PGqD2W78VWEMhsh2M7oOV2MVc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG7ttm15Xe158fVktesopszkTorID9/1o609eJMC6g Huu+yO/jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIPUmGeeoFIZ8bjoiZrDXu msjsmNy58L1SHMP8qHw/yw2qr/5ohojzbFt7/lNy+833AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-31615 to this issue. Affected and fixed versions =========================== Fixed in 6.12.83 with commit adb8014599fdf0818d3d93f1f74e06cd0bdec08d Fixed in 6.18.24 with commit 44216e3dd4455b798899b50eedb0ec3831dff8e0 Fixed in 6.19.14 with commit 37f430b2240655e6b0199a92aa1057e4d621be51 Fixed in 7.0.1 with commit e3d42598f2995cdc07b7779874e7c5f8a1b773db Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-31615 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/usb/gadget/udc/renesas_usb3.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/adb8014599fdf0818d3d93f1f74e06cd0bdec08d https://git.kernel.org/stable/c/44216e3dd4455b798899b50eedb0ec3831dff8e0 https://git.kernel.org/stable/c/37f430b2240655e6b0199a92aa1057e4d621be51 https://git.kernel.org/stable/c/e3d42598f2995cdc07b7779874e7c5f8a1b773db https://git.kernel.org/stable/c/f880aac8a57ebd92abfa685d45424b2998ac1059