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 ADFF8313557 for ; Mon, 15 Sep 2025 14:11:05 +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=1757945465; cv=none; b=KaddJT5crsUfDmky9aCztn0MHOzNJq7WDoBiuvlNmxPX5HCseUPJ2nhPelQCxXKg6zEp1OVpjTQL6vzS0UuJB5GD7g/2r1uMyu8qO4Il6X7oIjuibPCRpL4z7kOcM+iCF11Y76NXDxVeKBxMIm0WjWuntVbJfieVQJd0Jnx+uXg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757945465; c=relaxed/simple; bh=pQrgiBGBC0osX9KjvZC7t18HRH1VdxBIvq2vrVyzhl8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rB4ffBvHfuzo3zNGa42BKx94P37Vyo32yjEeSjrI0XF3qEl00UVoJmMrwY1SdVNVQQDhbze7Fl5tHuAMEyhi9hOWNvTlkJViQTu+aB7hjEzGs84tPaXYN5EDfxTovFzw2DpAPSswikD9+dqagXDG8EIk/h8uAvfb22cplkx4yXg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PTPFf5fT; 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="PTPFf5fT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AA87C4CEF1; Mon, 15 Sep 2025 14:11:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757945465; bh=pQrgiBGBC0osX9KjvZC7t18HRH1VdxBIvq2vrVyzhl8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PTPFf5fTSbKRbN8nQBd6ZrBX57aAdrFJW1ZsTlYXvNxgYgbYF0fRkKqEefTfol4A6 7MSg/QyrgSnmnOiKtql6/ixvevnMGhJxuKtg4BtYXwOlyVonMwNEpbkaAYNnUZdat/ NrOaHsppPHV7WO8EqOTlRTLecX6K5RgCsIfWffHU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53177: media: hi846: fix usage of pm_runtime_get_if_in_use() Date: Mon, 15 Sep 2025 16:02:31 +0200 Message-ID: <2025091555-CVE-2023-53177-9a91@gregkh> X-Mailer: git-send-email 2.51.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=2380; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wHh8chYvQONRwKQ+9DzKRCf5eKfX1oZoceYYWskYWro=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknZIKvSAUfNbt07bta593Wg9dX38yYYPi1udQyMmCDW 8jdW1uVOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAizU8Z5kfNUOsWWr9+V8iO jUcVfh04dEXw0RuG+Q6XvXUPCxx7XPL2Z1Mld+jx8lv2BgA= 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: media: hi846: fix usage of pm_runtime_get_if_in_use() pm_runtime_get_if_in_use() does not only return nonzero values when the device is in use, it can return a negative errno too. And especially during resuming from system suspend, when runtime pm is not yet up again, -EAGAIN is being returned, so the subsequent pm_runtime_put() call results in a refcount underflow. Fix system-resume by handling -EAGAIN of pm_runtime_get_if_in_use(). The Linux kernel CVE team has assigned CVE-2023-53177 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit e8c0882685f9152f0d729664a12bcbe749cb7736 and fixed in 6.1.39 with commit 42ec6269f98edd915ee37da3c6456bb6243ea56a Issue introduced in 5.16 with commit e8c0882685f9152f0d729664a12bcbe749cb7736 and fixed in 6.4.4 with commit c5dcd7a19f1ed8fe98384f3a9444c7c53befd74e Issue introduced in 5.16 with commit e8c0882685f9152f0d729664a12bcbe749cb7736 and fixed in 6.5 with commit 04fc06f6dc1592ed5d675311ac50d8fba5db62ab 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-2023-53177 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/hi846.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/42ec6269f98edd915ee37da3c6456bb6243ea56a https://git.kernel.org/stable/c/c5dcd7a19f1ed8fe98384f3a9444c7c53befd74e https://git.kernel.org/stable/c/04fc06f6dc1592ed5d675311ac50d8fba5db62ab