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 E69CB2C1BF for ; Wed, 28 Feb 2024 08:18:00 +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=1709108281; cv=none; b=C1QJCYfAvwOocK6sny5IqNoGJyTcNz4AoQP7EKqcH48ocCCWxF3i5cj/z1i5nrClBL/H+vRdL4DqzMCaTLVY5gDYwh1kCDKJ2F7Wzxz3Cfjn4hIp3rrnS+Zl7B7d+3vmygKBb6W8Jg1zKqaVncrQCR6b/tg3q2Gb8wMVDJiG9Ck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108281; c=relaxed/simple; bh=1X7pKuuDubs9yVsv1Ivlyc7bxiVqfX+WSK/pVMclMao=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=edAfRvk0klRai2wf5HFWPY8AEMqj58eEYwy7oRWRX0s8ysuYb4CMFAoYA0o6fKMjGE2XAFW/hIjL4P6eNMfJbKpUquG3e2h/mJbmX3Uq8iqD3HXJzFCMCDKUwKzsDSLGXIacaDo9wAnoLO9j55XSonHQBCZqW7b0IeWv5UmZgrw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L9IjOqqm; 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="L9IjOqqm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A274C433C7; Wed, 28 Feb 2024 08:18:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108280; bh=1X7pKuuDubs9yVsv1Ivlyc7bxiVqfX+WSK/pVMclMao=; h=From:To:Cc:Subject:Date:Reply-to:From; b=L9IjOqqmXllVQge1koaMb23v4K1gxq2HFfGWblPrqtP6zddyo+8UbVZXqfbN3rEoT BwE22RfRvjtP1UNLb4JDIU28fyRCIvqp1Ml5bjy00/iEdx59ss0oPt+xJrKPXWmMT2 Xj9oFGqDaiQlPv3z6BLp5tAiHCWfH9nbk4lNsh8k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-47043: media: venus: core: Fix some resource leaks in the error path of 'venus_probe()' Date: Wed, 28 Feb 2024 09:15:31 +0100 Message-ID: <2024022838-CVE-2021-47043-cb3c@gregkh> X-Mailer: git-send-email 2.44.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=2268; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IHlMPuXisCaYMLpUMImQPQPp8mTfFIzASAEWXb/YQQg=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3Xucd7t/t1PSP0eWV6oRrwetnbXr7wif+mo2o1q/Wg r33eRXed8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBErm1mmF8etlTouvXk69O1 NRJNpuc49VjxXWNYcDVYfUVw+xUh6Y7KE3osJ9s2bTkhDAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@kernel.org Description =========== In the Linux kernel, the following vulnerability has been resolved: media: venus: core: Fix some resource leaks in the error path of 'venus_probe()' If an error occurs after a successful 'of_icc_get()' call, it must be undone. Use 'devm_of_icc_get()' instead of 'of_icc_get()' to avoid the leak. Update the remove function accordingly and axe the now unneeded 'icc_put()' calls. The Linux kernel CVE team has assigned CVE-2021-47043 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 32f0a6ddc8c9 and fixed in 5.10.37 with commit 00b68a747834 Issue introduced in 5.5 with commit 32f0a6ddc8c9 and fixed in 5.11.21 with commit 940d01eceb3a Issue introduced in 5.5 with commit 32f0a6ddc8c9 and fixed in 5.12.4 with commit 711acdf0228d Issue introduced in 5.5 with commit 32f0a6ddc8c9 and fixed in 5.13 with commit 5a465c5391a8 Please see https://www.kernel.org or 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-2021-47043 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/core.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/00b68a7478343afdf83f30c43e64db5296057030 https://git.kernel.org/stable/c/940d01eceb3a7866fbfca136a55a5625fc75a565 https://git.kernel.org/stable/c/711acdf0228dc71601247f28b56f13e850e395c8 https://git.kernel.org/stable/c/5a465c5391a856a0c1e9554964d660676c35d1b2