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 AF295288C9F for ; Wed, 18 Jun 2025 11:06:06 +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=1750244766; cv=none; b=CGAzcfDU3Kh0oQ8v+7GytTZ4wwf8AIYYIG+cQjrBhw+OyYvQm9CaGAOhJGIpksNjVjOsQ/u5XY5KEm6FsRarSz63MrHJ/NPTGB1jf9oWD8wL/q3ll8CCAHgY/C9aim1w30Ek9297GK+adX6mPhRxvAUiq05YYaQBk0pAoEn0+XA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244766; c=relaxed/simple; bh=mRLQbb07JrEj+VKOIK9KnYEMxUhM1IzFNgHmV0xv8WU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fb+yQ36478YMQcchR3cPKGnDmw0dkpw6SPOpuwgKqpV2kYAUP+PQukXfu6GB2KZYtzoYAdQHfzz84H9J+qknDQYQ6y3ZAlFsSp21OEAQUs8aANiDVRfzZQNYS31yXyWbOYsD/jLITwKMqnMTCTxgGsXP3BB2mmaEUT0vqamUW8Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=N2mD0lxS; 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="N2mD0lxS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E862C4CEED; Wed, 18 Jun 2025 11:06:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244766; bh=mRLQbb07JrEj+VKOIK9KnYEMxUhM1IzFNgHmV0xv8WU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=N2mD0lxSrnV1kjCRTI9N9yzCtZwdgeWz/NuSBLooUutRYzluWoz0dqLsXC3kZkuoz hpoZGpX94XP6VpnxJgDzTcueubA2QnrXbh15TZy8/hUP6RjhQ5RmWqqmRpnp4RE7v4 NT4zTT0upA6uSQ4EHA5JwnSdAx8aGNpPrfIFqKzA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50028: gadgetfs: ep_io - wait until IRQ finishes Date: Wed, 18 Jun 2025 13:01:33 +0200 Message-ID: <2025061838-CVE-2022-50028-5f5e@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=2658; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rJxYyrsrP8h5NAxL9LjNk7kRAJOzX6m/q5C+trNis0Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc8Li8xJSsiMCCiueR8/w373i5G8rlyW7357KtD296 dXuUuZXHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCReH+G+XnXZt5ImL8q3Ff+ qVdV4LZL246mMTDMM39YxncixHnX6waOLIeXpW7HIk7oAgA= 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: gadgetfs: ep_io - wait until IRQ finishes after usb_ep_queue() if wait_for_completion_interruptible() is interrupted we need to wait until IRQ gets finished. Otherwise complete() from epio_complete() can corrupt stack. The Linux kernel CVE team has assigned CVE-2022-50028 to this issue. Affected and fixed versions =========================== Fixed in 4.9.326 with commit 67a4874461422e633236a0286a01b483cd647113 Fixed in 4.14.291 with commit 118d967ce00a3d128bf731b35e4e2cb0facf5f00 Fixed in 4.19.256 with commit 77040efe59a141286d090c8a0d37c65a355a1832 Fixed in 5.4.211 with commit ca06b4cde54f8ec8be3aa53fd339bd56e62c12b3 Fixed in 5.10.138 with commit 9ac14f973cb91f0c01776517e6d50981f32b8038 Fixed in 5.15.63 with commit 94aadba8d000d5de56af4ce8da3f334f21bf7a79 Fixed in 5.19.4 with commit 2b06d5d97c0e067108a122986767731d40742138 Fixed in 6.0 with commit 04cb742d4d8f30dc2e83b46ac317eec09191c68e 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-50028 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/legacy/inode.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/67a4874461422e633236a0286a01b483cd647113 https://git.kernel.org/stable/c/118d967ce00a3d128bf731b35e4e2cb0facf5f00 https://git.kernel.org/stable/c/77040efe59a141286d090c8a0d37c65a355a1832 https://git.kernel.org/stable/c/ca06b4cde54f8ec8be3aa53fd339bd56e62c12b3 https://git.kernel.org/stable/c/9ac14f973cb91f0c01776517e6d50981f32b8038 https://git.kernel.org/stable/c/94aadba8d000d5de56af4ce8da3f334f21bf7a79 https://git.kernel.org/stable/c/2b06d5d97c0e067108a122986767731d40742138 https://git.kernel.org/stable/c/04cb742d4d8f30dc2e83b46ac317eec09191c68e