lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025122424-CVE-2023-54143-adb3@gregkh>
Date: Wed, 24 Dec 2025 14:07:40 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2023-54143: media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()

From: Greg Kroah-Hartman <gregkh@...nel.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ