CVE-2023-53748
published high CVSS 3.1 · 7.1media: mediatek: vcodec: Fix potential array out-of-bounds in decoder queue_setup
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux590577a4e5257ac3ed72999a94666ad6ba8f24bc to < 48e4e06e2c5fe1fda283d499f91492eda2248bb9 · 590577a4e5257ac3ed72999a94666ad6ba8f24bc to < b8e19bf3b4aebd855be01b64674187dcf6d1db51 · 590577a4e5257ac3ed72999a94666ad6ba8f24bc to < 8fbcf730cb89c3647f3365226fe7014118fa93c7 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.10 (affected) · 0 to < 4.10 (unaffected · semver) · 6.1.30 through 6.1.* (unaffected · semver) · 6.3.4 through 6.3.* (unaffected · semver) · 6.4 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultaarch64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
Show 41 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultaarch64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-macrosnoarch | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-sourcenoarch | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsaarch64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsppc64le | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symss390x | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsx86_64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_290-defaultppc64le | Advisory build | 1-8.7.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_290-defaults390x | Advisory build | 1-8.7.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_290-defaultx86_64 | Advisory build | 1-8.7.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaults390x | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.290.1 | SUSE-SU-2026:0316-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:L - The bug is reached only through `ioctl(VIDIOC_CREATE_BUFS)` on the MediaTek decoder character device `/dev/videoN`, which requires local system access. There is no network or remote data path into `vb2ops_vdec_queue_setup()`. AC:L - Both `*nplanes` (up to VIDEO_MAX_PLANES=8) and every `sizes[i]` come directly from the caller's `v4l2_create_buffers` structure, so the out-of-bounds read is triggered deterministically on the first ioctl with no race, no timing window, and no dependence on memory layout the attacker cannot influence. PR:L - No capability check exists anywhere on the path — only `open()` on the V4L2 decoder node, which is granted to the `video` group on ChromeOS MediaTek devices and to the mediacodec/media domain on Android. A local unprivileged account or a compromised media-codec/GPU sandbox process suffices. UI:N - The attacker performs `open()` plus `VIDIOC_CREATE_BUFS` entirely on their own file descriptor. No victim action, no privileged helper, and no pre-existing system state are required. S:U - The out-of-bounds access is confined to the kernel's own heap object (`struct mtk_vcodec_ctx`) and the impact stays within the kernel security authority. No hypervisor, IOMMU, or other trust boundary is crossed. C:H - The `sizes[i] < q_data->sizeimage[i]` comparison is an attacker-controlled oracle over out-of-bounds memory, letting the `const struct mtk_video_fmt *fmt` kernel-image pointer at offset 48 be recovered bit-by-bit via binary search — a reliable KASLR/kernel-base disclosure that is the standard enabling primitive for a full local privilege-escalation chain. I:N - The loop only reads `q_data->sizeimage[i]`; `sizes[]` is `VB2_MAX_PLANES`-sized and the writing `else` branch is bounded by `fmt->num_planes <= 3`, so there is no out-of-bounds write or other modification of kernel data. A:H - The out-of-bounds index into the fixed three-element `sizeimage[]` array is precisely what `CONFIG_UBSAN_BOUNDS` instruments, so on the hardened Android GKI and arm64 configurations where this MediaTek codec driver actually ships, `CONFIG_UBSAN_TRAP` turns each attacker-issued ioctl into a kernel panic.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 590577a4e5257ac3ed72999a94666ad6ba8f24bc to < 48e4e06e2c5fe1fda283d499f91492eda2248bb9 (affected · git)590577a4e5257ac3ed72999a94666ad6ba8f24bc to < b8e19bf3b4aebd855be01b64674187dcf6d1db51 (affected · git)590577a4e5257ac3ed72999a94666ad6ba8f24bc to < 8fbcf730cb89c3647f3365226fe7014118fa93c7 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.10 (affected)0 to < 4.10 (unaffected · semver)6.1.30 through 6.1.* (unaffected · semver)6.3.4 through 6.3.* (unaffected · semver)6.4 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
media: mediatek: vcodec: Fix potential array out-of-bounds in decoder queue_setup
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 43e9535fe2f4ea4508be7f6a5eefa8039b0ebeabbf04218f3c9cbb7a1dfacbe6
- Ingested
- 23 Sep 2026, 08:14:56 UTC
- Source record
- Official CVE record