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 80F5428C2B3 for ; Wed, 18 Jun 2025 11:11:52 +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=1750245112; cv=none; b=AHP/WEz8vC75ypHW4R7bzPLUhoPe6G1SUiT/0/xtF4UAHnKp7PDMkEkhA5eOC7ZbHkfyF1P7Jj2iL4tQX3hrvhU8vFh7payqQEioUg8cIDZu52e4AdFB7KDnYdKuVDaUzG87Zp9Tf9JLnqYvXc9Z6sgTW6PfvSB0fv7Cn3RbU0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245112; c=relaxed/simple; bh=xDR9kj4B7ir3EbqA4qAxtkSFo0C5tfQ8Mj9Px0F1guU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WFd0cUegleZa9+Oma4e7FJOcYTRNKsvX2bKdrLRSj2rVWELos2X70dcx3wpTlUYvJSokCwNPnSfXHFBhU7ArMXfWSG/DA1V7h111g10aknBbSZQUT7m+/dbDV4837UrlAlwsEAj6ZOYKEgsLJQcYLISZUOIp+FN1nk2J+ggtxfk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QW8FWLmq; 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="QW8FWLmq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06E2CC4CEE7; Wed, 18 Jun 2025 11:11:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245112; bh=xDR9kj4B7ir3EbqA4qAxtkSFo0C5tfQ8Mj9Px0F1guU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QW8FWLmqHDrhd/pEcx/eTFHGhTnIiu+itA9fT/aVoO790x5lYefmkzkZ4nwUHAlOC 15zkZp9vS90njnBYH5WzZ279A3hnQag/dq3R+7lD+6rorMlCL1QIiabnshKQjqYASI XcYRH4xQCapjFxqUhYLvnhg311bqLPsc3oGHEDlY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50132: usb: cdns3: change place of 'priv_ep' assignment in cdns3_gadget_ep_dequeue(), cdns3_gadget_ep_enable() Date: Wed, 18 Jun 2025 13:03:17 +0200 Message-ID: <2025061815-CVE-2022-50132-8e57@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2696; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hP3rEiktIba5CTMnlm0GrAiyGs/3/AxrFEfkxv6Bnm4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc6qZr6lIrtGf6HLu/QL1h7zVPMsr3NhCl0/OtXJ5a 3VmRZJ4RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExky3OGORyNNzgS7iqwVO3/ ffX+pOl/04srTRkWrH+56H7l8fhni/kS7k0o3Ml0+kuYLgA= 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: change place of 'priv_ep' assignment in cdns3_gadget_ep_dequeue(), cdns3_gadget_ep_enable() If 'ep' is NULL, result of ep_to_cdns3_ep(ep) is invalid pointer and its dereference with priv_ep->cdns3_dev may cause panic. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2022-50132 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 5.10.137 with commit 7af83bb516d7aa4f96835288e4aeda21d7aa2a17 Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 5.15.61 with commit bfa0201468587072454dba7933e4a4a7be44467a Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 5.18.18 with commit d342203df9f2d0851b4acd9ed577d73d10eade77 Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 5.19.2 with commit eb82c0382285ee17a9966aaab27b8becb08eb1ac Issue introduced in 5.4 with commit 7733f6c32e36ff9d7adadf40001039bf219b1cbe and fixed in 6.0 with commit c3ffc9c4ca44bfe9562166793d133e1fb0630ea6 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-2022-50132 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/7af83bb516d7aa4f96835288e4aeda21d7aa2a17 https://git.kernel.org/stable/c/bfa0201468587072454dba7933e4a4a7be44467a https://git.kernel.org/stable/c/d342203df9f2d0851b4acd9ed577d73d10eade77 https://git.kernel.org/stable/c/eb82c0382285ee17a9966aaab27b8becb08eb1ac https://git.kernel.org/stable/c/c3ffc9c4ca44bfe9562166793d133e1fb0630ea6