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 3D5D419047A for ; Tue, 30 Jul 2024 07:48:52 +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=1722325732; cv=none; b=Dhl7e004ILEiVaVz1cx/Su8PqgufiBwc0FTDA3AG5IjIH6k5ZuT7gD64Govask6Pw+UT49W5QXdKFruNeG10J8z5VkMt/779ZlyhZhSBBr6YCqzxy2C9KvYWF2IqOg0FIK8Vsy0WUNvD7T0Dej+xjPlDblX1LtP2Ea6WFrZxf2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325732; c=relaxed/simple; bh=72p0USfFDksRE71SchydrmVqxH8WVcEaUafe1MxKqEA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VHMvcajcLKe2QfCVGB2QzKHyCnooPHxKlDe0jSoxpVP79S8vnaTnhhs6RxNPTELf0AG5M9jiWYVR2oRBWXjIwaXMfKcnHm6jc3KYct9I0tfipbIwWeDtjH9iE1OTJILrW5QuShrTZq5OAzYiuuiHdUhsr5K1A7CrAjRrt0WDcqY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oBPr/33/; 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="oBPr/33/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A11C3C32782; Tue, 30 Jul 2024 07:48:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325732; bh=72p0USfFDksRE71SchydrmVqxH8WVcEaUafe1MxKqEA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oBPr/33/RuNcYkJlpQ9csdwF6ft2PpcL76kgpsmYk44VY9JLxpkpn4xPkyX9n6ef4 pliWO530PnF5VbTW2bH829G0L/SxZaqjd8a9gDL8PmFOuGlYFrG7HqvmeV/WUQ+yc7 aw7U4xK+IfqRveqGcOPHsZPafrXITq+ebPkg/FrQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52888: media: mediatek: vcodec: Only free buffer VA that is not NULL Date: Tue, 30 Jul 2024 09:47:16 +0200 Message-ID: <2024073015-CVE-2023-52888-51c6@gregkh> X-Mailer: git-send-email 2.45.2 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=2085; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=72p0USfFDksRE71SchydrmVqxH8WVcEaUafe1MxKqEA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZrUcC/CeP2nZvZ1TE3mPsFqt3xjRFePdViwTUNTD+ YHXXzerI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYiGcuwYEt1yPLz/FNObmN/ Vl9namSip/yHhWHBpbdKz9yqMy1l1PjyI0XPbe0Ql5IDAA== 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: mediatek: vcodec: Only free buffer VA that is not NULL In the MediaTek vcodec driver, while mtk_vcodec_mem_free() is mostly called only when the buffer to free exists, there are some instances that didn't do the check and triggered warnings in practice. We believe those checks were forgotten unintentionally. Add the checks back to fix the warnings. The Linux kernel CVE team has assigned CVE-2023-52888 to this issue. Affected and fixed versions =========================== Fixed in 6.6.39 with commit 5c217253c76c Fixed in 6.9.9 with commit 303d01082eda Fixed in 6.10 with commit eb005c801ec7 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-52888 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/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c drivers/media/platform/mediatek/vcodec/encoder/venc/venc_h264_if.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/5c217253c76c94f76d1df31d0bbdcb88dc07be91 https://git.kernel.org/stable/c/303d01082edaf817ee2df53a40dca9da637a2c04 https://git.kernel.org/stable/c/eb005c801ec70ff4307727bd3bd6e8280169ef32