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 6280B1A5BA3 for ; Wed, 26 Feb 2025 01:59:20 +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=1740535160; cv=none; b=B+OF/REpl8xQm0qXCuwU9drPybkObMYi7e/UhGLbocCy9E1FAuyU0JLjnqp2gVz/ejYMpeYDXzYQSgpdWFh3iPcH3owkFmANIV8vcuho2yxkLxOEipczX+zYXBmrVSDZf5H83fb7K4fRk4PJxVBW2mG2ngUdKfh15uQnLN0zK8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535160; c=relaxed/simple; bh=xJW8UJa/mtQQIvDlOjOdQdB4mFGk7V2jpvuO11bb6yQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S7fmZPknXioE6DOetflFF+WcOUGCjf3IDiOEndlf3ADhEN8yjdQPUIIEnzvBu4mv1qUD1EFDmmiN5LHt7/WlOKanUWNVXADy7zCgAdkTX6yAVX1n9SU9/prlF++TyKVPWMCY9zS8WGTHBps2Q1V0ItvW2seoRXU7Q7xySws7TAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k5L8M9mn; 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="k5L8M9mn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37A19C4CEDD; Wed, 26 Feb 2025 01:59:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535160; bh=xJW8UJa/mtQQIvDlOjOdQdB4mFGk7V2jpvuO11bb6yQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=k5L8M9mnnv86oAu2B/C8BbCCLNQW8xAuDRz29uIz+QZNEW1cctYuYaGpktsnxvlJ3 5b1jKYAEomblKl0ytIhY8GBm82tU6n+Ix4ZmjzYL3bZGeT7TbQBkKlQ29CIVyacaTy z+/ODbPivvHsFIMHjBpGx94LCMOVvZzQ3pH2mXx0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49192: drivers: ethernet: cpsw: fix panic when interrupt coaleceing is set via ethtool Date: Wed, 26 Feb 2025 02:56:37 +0100 Message-ID: <2025022616-CVE-2022-49192-b1e7@gregkh> X-Mailer: git-send-email 2.48.1 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=2891; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xJW8UJa/mtQQIvDlOjOdQdB4mFGk7V2jpvuO11bb6yQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Sjxe8M3U3+jSuHi+6bKn7/mSFyyZpm2jOjc2RsVIK X1P+eWGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI8S+GudKcc9julolOFgyt OBD1dhLDZa+LTAxzRT4wbxE6EcXIcSNX+zTv2qB3Mb4TAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drivers: ethernet: cpsw: fix panic when interrupt coaleceing is set via ethtool cpsw_ethtool_begin directly returns the result of pm_runtime_get_sync when successful. pm_runtime_get_sync returns -error code on failure and 0 on successful resume but also 1 when the device is already active. So the common case for cpsw_ethtool_begin is to return 1. That leads to inconsistent calls to pm_runtime_put in the call-chain so that pm_runtime_put is called one too many times and as result leaving the cpsw dev behind suspended. The suspended cpsw dev leads to an access violation later on by different parts of the cpsw driver. Fix this by calling the return-friendly pm_runtime_resume_and_get function. The Linux kernel CVE team has assigned CVE-2022-49192 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit d43c65b05b848e0b2db1a6c78b02c189da3a95b5 and fixed in 5.15.33 with commit 585dc196a08fccdcd1b7fcf473cf566b34c4b840 Issue introduced in 5.15 with commit d43c65b05b848e0b2db1a6c78b02c189da3a95b5 and fixed in 5.16.19 with commit 459080fab12b23c0526026e5cedbf3fabb5457cc Issue introduced in 5.15 with commit d43c65b05b848e0b2db1a6c78b02c189da3a95b5 and fixed in 5.17.2 with commit 30ad11bff021a94aff6dab1ec9236fdfd884fbff Issue introduced in 5.15 with commit d43c65b05b848e0b2db1a6c78b02c189da3a95b5 and fixed in 5.18 with commit 2844e2434385819f674d1fb4130c308c50ba681e 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-49192 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/net/ethernet/ti/cpsw_ethtool.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/585dc196a08fccdcd1b7fcf473cf566b34c4b840 https://git.kernel.org/stable/c/459080fab12b23c0526026e5cedbf3fabb5457cc https://git.kernel.org/stable/c/30ad11bff021a94aff6dab1ec9236fdfd884fbff https://git.kernel.org/stable/c/2844e2434385819f674d1fb4130c308c50ba681e