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 0B22C34A79B for ; Wed, 24 Dec 2025 13:11:33 +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=1766581893; cv=none; b=uAr0gXZhuyhFETnNrAjSgORjIhb8UHKub7lA4fNBDzd8RQFFG/HvpnuvU+J8nFwZS5T3AEDfqW5OAW/t3HLuSeAhBPvjS7OKJxLsq6cusHu2BZLS5vLFC9XA5krGBhXl9T3TA69fKVsbHCFDcSrgZPRpbbZ4znBRdRbCLk93nY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581893; c=relaxed/simple; bh=99DBwipZZhzERp2e90i79YbcJeJ/kNrbNwXYZRKhWMI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TBCsR11/M24Unjq/urXYGDyhnXezR3oXKX7f0bS2onjNbjIjrVRBqqFyYLyhqKyQHUJ0iZGNuokZ96rfUAN0BfkNGZXQ3+GrxpDeD+mGta2kaaMmzQ9qmN/1BgwPtkrOPof5yO9qY+yb/f0jaTc1bPDGqYiN6x1mgQYTNaBHJd4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GkCjPu5P; 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="GkCjPu5P" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89E1CC4CEFB; Wed, 24 Dec 2025 13:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581892; bh=99DBwipZZhzERp2e90i79YbcJeJ/kNrbNwXYZRKhWMI=; h=From:To:Cc:Subject:Date:Reply-To:From; b=GkCjPu5PFqsHgdKMCgwGW20I29+/A9AvBv5WPeRFJm2PJp4eX8oxVnNf1TZ0DGp+G FlQ5Lu4WPz6Fief8r/PeWPHPpf1f5TJ4W8h8QLrD0K1TwtADDTVL0zsenlnG3FJ9so OEqv4lXE0zdwQnleB32QmlLG1gfwLeKZGZdVTG18= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54143: media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init() Date: Wed, 24 Dec 2025 14:07:40 +0100 Message-ID: <2025122424-CVE-2023-54143-adb3@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=2762; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Lo7QJn45RpAF7Ro0jmfCvyZzNclaB01PTC89NxunAcU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneTwO2dCWdKwp89YjTt0mmISDp7MuMCsvmnZazYnyDG l5Jlsd2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwESmOjDMs+EvlVo7d/7e//qH hW1bVLvOnF18m2HBlB7ncpeKB/r7vV/ohbjOayzcqegGAA== 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 resource leaks in vdec_msg_queue_init() If we encounter any error in the vdec_msg_queue_init() then we need to set "msg_queue->wdma_addr.size = 0;". Normally, this is done inside the vdec_msg_queue_deinit() function. However, if the first call to allocate &msg_queue->wdma_addr fails, then the vdec_msg_queue_deinit() function is a no-op. For that situation, just set the size to zero explicitly and return. There were two other error paths which did not clean up before returning. Change those error paths to goto mem_alloc_err. The Linux kernel CVE team has assigned CVE-2023-54143 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit b199fe46f35c57a415acd4d5295b0f4e35048c11 and fixed in 6.1.53 with commit 858322c409e0aba8f70810d23f35c482744f007c Issue introduced in 5.18 with commit b199fe46f35c57a415acd4d5295b0f4e35048c11 and fixed in 6.4.16 with commit b7dbc27301f560c3b915235c53383155b3512083 Issue introduced in 5.18 with commit b199fe46f35c57a415acd4d5295b0f4e35048c11 and fixed in 6.5.3 with commit 451dc187cadd47771e5d9434fe220fad7be84057 Issue introduced in 5.18 with commit b199fe46f35c57a415acd4d5295b0f4e35048c11 and fixed in 6.6 with commit cf10b0bb503c974ba049d6f888b21178be20a962 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-54143 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/vdec_msg_queue.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/858322c409e0aba8f70810d23f35c482744f007c https://git.kernel.org/stable/c/b7dbc27301f560c3b915235c53383155b3512083 https://git.kernel.org/stable/c/451dc187cadd47771e5d9434fe220fad7be84057 https://git.kernel.org/stable/c/cf10b0bb503c974ba049d6f888b21178be20a962