media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.53, 6.4.16, 6.5.3
- CVEs
- CVE-2023-54143
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 20:47 UTC · Revision 1
Source evidence
media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()
core-osv · Original sourcePublished 24 Dec 2025, 13:06 UTC
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.
osv:CVE-2023-54143
Kernel
Fixed versions: 6.1.53, 6.4.16, 6.5.3
Complete source record
{
"id": "262f14c4321f72397cf29a4b86e0c81bf1980b3c9a46a8ab507a74a844bb664c",
"url": "https://osv.dev/vulnerability/CVE-2023-54143",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()",
"summary": "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.",
"evidence": "osv:CVE-2023-54143",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.53",
"evidence": "/affected/1/ranges"
},
{
"value": "6.4.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.5.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-54143",
"aliases": [
"CVE-2023-54143"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b199fe46f35c57a415acd4d5295b0f4e35048c11"
},
{
"fixed": "858322c409e0aba8f70810d23f35c482744f007c"
},
{
"fixed": "b7dbc27301f560c3b915235c53383155b3512083"
},
{
"fixed": "451dc187cadd47771e5d9434fe220fad7be84057"
},
{
"fixed": "cf10b0bb503c974ba049d6f888b21178be20a962"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54143.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.18.0"
},
{
"fixed": "6.1.53"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.4.16"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.5.0"
},
{
"fixed": "6.5.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54143.json"
}
}
],
"modified": "2026-10-28T02:30:39.315228515Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/451dc187cadd47771e5d9434fe220fad7be84057",
"https://git.kernel.org/stable/c/858322c409e0aba8f70810d23f35c482744f007c",
"https://git.kernel.org/stable/c/b7dbc27301f560c3b915235c53383155b3512083",
"https://git.kernel.org/stable/c/cf10b0bb503c974ba049d6f888b21178be20a962",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54143.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-54143",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54143.json"
}
},
"related_cves": [
{
"value": "CVE-2023-54143",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 506848,
"published_at": "2025-12-24T13:06:56.869+00:00"
}