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 5AE121F3BA2 for ; Mon, 8 Dec 2025 01:20:56 +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=1765156856; cv=none; b=q7p2++7CQ8cxAP8akJpkYCig0G8GFCtfB87UpXAnvnqUDVafXK8I9G7ENILiOW874PvR567XRcauZrFZpPVA0w7ZZYBKUiyLZRQ7t1rRUE4WmKSlLcxJnB2rQVxeldh5q5fCaQ5L0lHSoYu7zFsNbmTC/D+w8ZTAQ4JClgIocyM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765156856; c=relaxed/simple; bh=5eC1jPGhng6bhe0vyibXLuYexE9BvgoXs6AfiCNgNik=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BsQPr0ncwVdZmTCQFI8IqsOSovRlvBMYNijgAlBM+OVDHY2ZATlpFDCStvbfhCcWJaNtbNMjod1LIMJllLmulofnWypAUJqWAMw2xv67Q0sKaV6OWHO2fyiXYacXYserQ4ltnhm5SSWi82VqXdfeI4RqTfC/5YUASk/2h0WJFSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FrKnSiiX; 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="FrKnSiiX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF7BFC4CEFB; Mon, 8 Dec 2025 01:20:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765156856; bh=5eC1jPGhng6bhe0vyibXLuYexE9BvgoXs6AfiCNgNik=; h=From:To:Cc:Subject:Date:Reply-To:From; b=FrKnSiiXKiXr0RT1ku2qOEVxRZl4oiguQWlS/kyQyt/AutzH8UdSMXEZsfCF1Ghej ehcxY8LpN7X9k8G0BQuvMF3GwN72yaNHfkx335E5ky69KLIRFEhQgZCAIKiC+ggCQg xw3Yz+IqJvlg/AcwCLz4p7fY5yU0xqqfV3ybS8PM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53748: media: mediatek: vcodec: Fix potential array out-of-bounds in decoder queue_setup Date: Mon, 8 Dec 2025 10:19:47 +0900 Message-ID: <2025120842-CVE-2023-53748-4905@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=2080; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MqJvjOT9mDBlYvFV2KN2lOeYPApIJv9c28Om16Tx1ak=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlm6uuCmjZIsCz/XJ6jcTQ+7qj5X1WvykXvKwIOaLt/X L0uIzG9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYy8R/DHH6eVbOKNjWcuqlW m/J001TNBkM/XoYFq6/UT4m6oslecX57t71P+l0nfYlqAA== 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: mediatek: vcodec: Fix potential array out-of-bounds in decoder queue_setup variable *nplanes is provided by user via system call argument. The possible value of q_data->fmt->num_planes is 1-3, while the value of *nplanes can be 1-8. The array access by index i can cause array out-of-bounds. Fix this bug by checking *nplanes against the array size. The Linux kernel CVE team has assigned CVE-2023-53748 to this issue. Affected and fixed versions =========================== Fixed in 6.1.30 with commit 48e4e06e2c5fe1fda283d499f91492eda2248bb9 Fixed in 6.3.4 with commit b8e19bf3b4aebd855be01b64674187dcf6d1db51 Fixed in 6.4 with commit 8fbcf730cb89c3647f3365226fe7014118fa93c7 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-53748 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/mtk_vcodec_dec.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/48e4e06e2c5fe1fda283d499f91492eda2248bb9 https://git.kernel.org/stable/c/b8e19bf3b4aebd855be01b64674187dcf6d1db51 https://git.kernel.org/stable/c/8fbcf730cb89c3647f3365226fe7014118fa93c7