From mboxrd@z Thu Jan 1 00:00:00 1970 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 8F4B8218EB7 for ; Wed, 26 Feb 2025 02:15:23 +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=1740536123; cv=none; b=j6TdwyVGeIEw0Avh+49fb83YDzvw5a725B3Bult3i5nljZNVSmGNdsD5qqpRYjRJltJyOM8Bvd7KV1vJKy9cBPA5zRSwO/7nD4Xpr+T0ELxvN8IzE6CrYLn/gwe/gFqL1RObhWEnDeDDFqMgvaqWzwtQCrNqo9dp3Xhg7W17Jqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536123; c=relaxed/simple; bh=NB+3bfxydS22wzQFOWW+M6TLOTPhyi+x+DL7vV4/rpk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hu82Z0ZfYMj3aM0MrjN960JXtZyQ3hLxMWHXAQbAzmq3x8QcDr/ZMrpmXbKMg7raNihPJoNROsE5100Xo5XdDKeMpnMfeVVbzC5QH/5Ato99u0Ui3yE1iyMM14HNt2Nl9hSuZP4W9JW2Kb9cKMZK2bfq1hgSIfGlCX2IFUb2ZyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=es/1bPJv; 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="es/1bPJv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 621DDC4CEDD; Wed, 26 Feb 2025 02:15:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536123; bh=NB+3bfxydS22wzQFOWW+M6TLOTPhyi+x+DL7vV4/rpk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=es/1bPJv/c15HEqD2uFHMSVx9NJPpmckRcGdvp8lp+5Y2gGXbNdrTvqV6gD/Mgxl2 xB3SbgqGmf+zAl7Q63nR3kcLkIu05Kt/yo+mZ9+QiMjEmdR3iGGF1kvfMmY3yVUYGG 1fCBBu9kDHIhUZxqrifupVswFM/laQK2b1ZJ2oA8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49527: media: venus: hfi: avoid null dereference in deinit Date: Wed, 26 Feb 2025 03:13:21 +0100 Message-ID: <2025022612-CVE-2022-49527-db75@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=2791; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NB+3bfxydS22wzQFOWW+M6TLOTPhyi+x+DL7vV4/rpk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Kli8bYxPf7Z9euNafUqj2jV9Q1Huf9cssjOlNnllv GLXWOLZEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN5t59hQet7F/+uqzNN0uxs Z/+dZb1rhd6inQzz1OYoTtzv1vub8cvse4WsPtryLq+/AgA= 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: venus: hfi: avoid null dereference in deinit If venus_probe fails at pm_runtime_put_sync the error handling first calls hfi_destroy and afterwards hfi_core_deinit. As hfi_destroy sets core->ops to NULL, hfi_core_deinit cannot call the core_deinit function anymore. Avoid this null pointer derefence by skipping the call when necessary. The Linux kernel CVE team has assigned CVE-2022-49527 to this issue. Affected and fixed versions =========================== Fixed in 4.14.283 with commit 2533acb652359c9e097dfa33587896af782e8a91 Fixed in 4.19.247 with commit a21d15dde21d7e8ae047eb8368677407db45d840 Fixed in 5.4.198 with commit 0ac84ab50712879eac3c1dd2598440652a85d3d0 Fixed in 5.10.121 with commit 27ad46da44177a78a4a0cae6fe03906888c61aa1 Fixed in 5.15.46 with commit 9c385b961d4c378228e80f6abea8509cb67feab6 Fixed in 5.17.14 with commit 0ed5a643b1a4a46b9b7bfba5d468c10cc30e1359 Fixed in 5.18.3 with commit b73ed0510bb8d9647cd8e8a4c4c8772bbe545c3a Fixed in 5.19 with commit 86594f6af867b5165d2ba7b5a71fae3a5961e56c 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-49527 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/platform/qcom/venus/hfi.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/2533acb652359c9e097dfa33587896af782e8a91 https://git.kernel.org/stable/c/a21d15dde21d7e8ae047eb8368677407db45d840 https://git.kernel.org/stable/c/0ac84ab50712879eac3c1dd2598440652a85d3d0 https://git.kernel.org/stable/c/27ad46da44177a78a4a0cae6fe03906888c61aa1 https://git.kernel.org/stable/c/9c385b961d4c378228e80f6abea8509cb67feab6 https://git.kernel.org/stable/c/0ed5a643b1a4a46b9b7bfba5d468c10cc30e1359 https://git.kernel.org/stable/c/b73ed0510bb8d9647cd8e8a4c4c8772bbe545c3a https://git.kernel.org/stable/c/86594f6af867b5165d2ba7b5a71fae3a5961e56c