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 76F063446C3 for ; Wed, 24 Dec 2025 13:11:44 +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=1766581904; cv=none; b=gjyYYi+xWVDjS7VZlb/xvSgXTtHMyOsaeQQ4VJO2c0Q5xZSg8jiHgOHPSSRaiMf0VCwC2HGn5AZ4DCX2u0z4W65twdvhFheBMagnx2UHUfbGlNgkOkgi7HaeVpopUlJbaUmL08xHxLsUyBinnXATYjt0LnsWesI+dKQMdqMsK/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581904; c=relaxed/simple; bh=rt0aexHCx9vOnP9fRSahZRiWRRnrc/pZl3YesgX8CDA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qg9ogH6non3eyk34cZdQ4G01knonYDA00SL3h5wHItsDVPbu7r3qcI+5F4xtJnZRAposDnHu1SGmZBirgtrC6t9z0E1x7q7IGIgVkkIyN5i/uJOWA3U+uCCtZ79BnFaFMjbj7quxv50C6VwlqiNx4N5mX1Fhm+prxs40SMdqNU8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZSYJCrS+; 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="ZSYJCrS+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED995C16AAE; Wed, 24 Dec 2025 13:11:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581904; bh=rt0aexHCx9vOnP9fRSahZRiWRRnrc/pZl3YesgX8CDA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ZSYJCrS+EvDtxMZFi5Jn5GgE5kI8zGZngAkZBFg0NF1nVMAA/G/l9v5ZbB1WENaj1 W7h2wxs5Si0luyXf4HQ/q+Mf9L6yH+a+qLMRZPRfhGz7XRwU5DEjDAwWQGCoT9LOOn wcjFLernjldH9jAoA9VMzmaE+YGnuLgJsUAqoCz4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54147: media: platform: mtk-mdp3: Add missing check and free for ida_alloc Date: Wed, 24 Dec 2025 14:07:44 +0100 Message-ID: <2025122425-CVE-2023-54147-dafb@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2444; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rZq1eitiBULX2DGm2y9rmo2hpEAGYOsLZgwF0UIaOaw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneTwOLfNsYWwVnyu0/lJ9xNuZr5ooOMZnEDzsqag8/b JprX7+xI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbSfYZhQd9t4+0mykcmCZnm R9d3djj+6ErwY5hn8Lgr1NfkyyIbl/xbLRoOWQwpLbYA 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: platform: mtk-mdp3: Add missing check and free for ida_alloc Add the check for the return value of the ida_alloc in order to avoid NULL pointer dereference. Moreover, free allocated "ctx->id" if mdp_m2m_open fails later in order to avoid memory leak. The Linux kernel CVE team has assigned CVE-2023-54147 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 61890ccaefaff89f5babd2c8412fd222c3f5fe38 and fixed in 6.1.28 with commit 51fc1880e47421ee7b192372e8e86b7bbba40776 Issue introduced in 6.1 with commit 61890ccaefaff89f5babd2c8412fd222c3f5fe38 and fixed in 6.2.15 with commit 4c173a65a2b1cc0556c3f6f0bab82e4fdb449522 Issue introduced in 6.1 with commit 61890ccaefaff89f5babd2c8412fd222c3f5fe38 and fixed in 6.3.2 with commit 22b72cad501fb75500cc60af4d92de3066fb6fc2 Issue introduced in 6.1 with commit 61890ccaefaff89f5babd2c8412fd222c3f5fe38 and fixed in 6.4 with commit d00f592250782538cda87745607695b0fe27dcd4 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-54147 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/mdp3/mtk-mdp3-m2m.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/51fc1880e47421ee7b192372e8e86b7bbba40776 https://git.kernel.org/stable/c/4c173a65a2b1cc0556c3f6f0bab82e4fdb449522 https://git.kernel.org/stable/c/22b72cad501fb75500cc60af4d92de3066fb6fc2 https://git.kernel.org/stable/c/d00f592250782538cda87745607695b0fe27dcd4