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 B6511231836 for ; Fri, 1 May 2026 14:19:33 +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=1777645173; cv=none; b=QLR0K+RsXRKhQnYncsocAYLhR50E/txfNSh8JRu8o3fbLM2DBYLcHLQxuR4EZMnAPXsN74J7ZW5+usft4Y6m8D4RYZ/1y2A9SX5hZp1YsAje5a0pBxnVF5GVX8BQ6/CJmSiP/eRlfwZv22XKMzMZvIOCzxqDs1ET0j9UlZIlPts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645173; c=relaxed/simple; bh=QlyD7T9bQR4i/QlHJcA/uliGlkROIOSZ23coH4ENwto=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DCH0dDSTNjgnjYXjMt6HZIye343rwXyGEzK8ReERgDNd3LFSOHSZFOzF62ez+WjUw7mscGl9xI9bQVJSyxTtyhT5rkxJOQVdULhWeKU7YINi9hIEOQU9LH0JadBnhAVn45M6rTag0iuBqXUiq5yOJ4ZbdBjEiv5LeBO2LtuhPaU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=D1LfrUax; 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="D1LfrUax" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52BDFC2BCB4; Fri, 1 May 2026 14:19:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645173; bh=QlyD7T9bQR4i/QlHJcA/uliGlkROIOSZ23coH4ENwto=; h=From:To:Cc:Subject:Date:Reply-To:From; b=D1LfrUaxqB9vDnVyuDKteMwGSOBx2cGsS+GFmon6jaK0jZDgJuy/I2cEMSzIaBbAC iPCUuQwVh/zlv8eCPwhHuFEUhbHu1lg0dIIVu1B2FG8BtMDnyogGplBg13Lbbe3asg zHrIBeWAol+IWb8k3eduVYxEVmiviHe7bAkdHZUM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31755: usb: cdns3: gadget: fix NULL pointer dereference in ep_queue Date: Fri, 1 May 2026 16:15:06 +0200 Message-ID: <2026050143-CVE-2026-31755-c004@gregkh> X-Mailer: git-send-email 2.54.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=3330; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OIwRgGZBOva9k/nht4veYwflUH/iqrb0VOoeiwuSptU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftob45vwqP3I+Ifc8r/6zK0KK5vHHkiLu2qi5Bnm3b 765/0xYRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzknS7D/GRbCTVZX4YjE37d O8D47pffPocpZQwLTp+L+ZrRmVfPofXe5vYcx5Re5uMcAA== 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: cdns3: gadget: fix NULL pointer dereference in ep_queue When the gadget endpoint is disabled or not yet configured, the ep->desc pointer can be NULL. This leads to a NULL pointer dereference when __cdns3_gadget_ep_queue() is called, causing a kernel crash. Add a check to return -ESHUTDOWN if ep->desc is NULL, which is the standard return code for unconfigured endpoints. This prevents potential crashes when ep_queue is called on endpoints that are not ready. The Linux kernel CVE team has assigned CVE-2026-31755 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 5.15.203 with commit 3d1433fe34b224b90259e207e5389e95b504ef04 Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 6.1.168 with commit fb2ad0c1334a3eccfe4ed203f9eef5a4879226f6 Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 6.6.134 with commit 9ab9b0e5fcdac325f950fc8b6caa08a9e22a0db9 Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 6.12.81 with commit d61446dfc9d387775bb1b95b081953201b9222af Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 6.18.22 with commit 390536cc6af4ca5566bc3bf1f8b704700380cd2c Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 6.19.12 with commit 14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 7.0 with commit 7f6f127b9bc34bed35f56faf7ecb1561d6b39000 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-31755 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/cdns3/cdns3-gadget.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/3d1433fe34b224b90259e207e5389e95b504ef04 https://git.kernel.org/stable/c/fb2ad0c1334a3eccfe4ed203f9eef5a4879226f6 https://git.kernel.org/stable/c/9ab9b0e5fcdac325f950fc8b6caa08a9e22a0db9 https://git.kernel.org/stable/c/d61446dfc9d387775bb1b95b081953201b9222af https://git.kernel.org/stable/c/390536cc6af4ca5566bc3bf1f8b704700380cd2c https://git.kernel.org/stable/c/14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f https://git.kernel.org/stable/c/7f6f127b9bc34bed35f56faf7ecb1561d6b39000