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 472E4217F53 for ; Wed, 26 Feb 2025 02:15:24 +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=1740536124; cv=none; b=cxdt9UXL27fOa2NUtZQ9D2/X9brXuZj/cX0ZcbCbjg6jkQpPoSnEkfUn2SMe6sYnqqZqjd2pZ2vlHfLdPCZRBVI8JujLJx60J+GkbanlzMr7xTLRnqsiLN5qTWf51rhXtCSCAdGPnzuSN+2KqEyGG1F4UeREjkDu/o+grJOmSu0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536124; c=relaxed/simple; bh=VQ6bhKO3+KHdDWJ/2DmUTtktxH14BGVdy53sAgJO8nw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ndp7t8/P+93roP9oZCgUEFgIU5oB6eL8o+b6bh3oUNYEmfY2MkB1XcluBCNn7S+fX6CnIf2S+i115Lw7EYRsPSoLl0jkeKMy0Ixy4TWVOzEn8viLzzoytYRVN6J8BBUmDvH0563jasz/3GmtDHSAeTCu8vEWdLYYmB8m83dpzj8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xcROx0Sh; 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="xcROx0Sh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D3C2C4CEDD; Wed, 26 Feb 2025 02:15:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536124; bh=VQ6bhKO3+KHdDWJ/2DmUTtktxH14BGVdy53sAgJO8nw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xcROx0ShrSTf/mTSnSgEh81O9sDd/cGYnq1Qc6n2tVLWu3fm0zZI8LFwLOelAKVM3 WhTaDgajvBfmBA6o/PMCm6tl2nsZqcH7L5s+nyHxrOHWuRloVgSFHKC0UKbWdxdDd0 NWwiNeSM+HwtYpbWcNtaPo0uQ/Bh09rb7mKWjBtc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49528: media: i2c: dw9714: Disable the regulator when the driver fails to probe Date: Wed, 26 Feb 2025 03:13:22 +0100 Message-ID: <2025022612-CVE-2022-49528-9957@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=2138; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VQ6bhKO3+KHdDWJ/2DmUTtktxH14BGVdy53sAgJO8nw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7KlhYFC94tD/olrtufZqDY0EWz06R6brvNn7fOMFRi CsgLGJLRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEkIFhQX9D0JWSuzuaJNRe PM5giql9FSYTy7CgS3ANg4TIbaW2c5lyx/JZRPeuS9wBAA== 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: media: i2c: dw9714: Disable the regulator when the driver fails to probe When the driver fails to probe, we will get the following splat: [ 59.305988] ------------[ cut here ]------------ [ 59.306417] WARNING: CPU: 2 PID: 395 at drivers/regulator/core.c:2257 _regulator_put+0x3ec/0x4e0 [ 59.310345] RIP: 0010:_regulator_put+0x3ec/0x4e0 [ 59.318362] Call Trace: [ 59.318582] [ 59.318765] regulator_put+0x1f/0x30 [ 59.319058] devres_release_group+0x319/0x3d0 [ 59.319420] i2c_device_probe+0x766/0x940 Fix this by disabling the regulator in error handling. The Linux kernel CVE team has assigned CVE-2022-49528 to this issue. Affected and fixed versions =========================== Fixed in 5.18.3 with commit fa83ea1de5b3efd87fe01408d5db1fd2ff4767fa Fixed in 5.19 with commit 02276e18defa2fccf16413b44440277d98c2b1ea 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-49528 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/media/i2c/dw9714.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/fa83ea1de5b3efd87fe01408d5db1fd2ff4767fa https://git.kernel.org/stable/c/02276e18defa2fccf16413b44440277d98c2b1ea