media: meson: vdec: size capture planes from the aligned canvas
Summary
| CVE | CVE-2026-138914 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-30 14:17:50 UTC |
| Updated | 2026-11-30 14:17:50 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved:
media: meson: vdec: size capture planes from the aligned canvas
The decoder writes a whole canvas of ALIGN(width, 32) x ALIGN(height, 32)
(amvdec_set_canvases()) and reports bytesperline = ALIGN(width, 32), but
get_output_size() derives sizeimage from the raw width x height.
When the width is not a multiple of 32 the planes are too small for the
advertised stride: for 720x360 NV12M the luma plane is 262144 bytes while
736 * 360 = 264960 are needed (282624 for the canvas the firmware fills).
The decoder writes past the buffer, and importing the capture dma-buf
into DRM fails: drmModeAddFB2() returns -EINVAL, so e.g. Kodi plays the
sound over a black screen. 1280x720 and 1920x1080 are not affected.
Size the planes from the aligned canvas the hardware actually uses.
Tested on an S905X (GXL p212) board with LibreELEC 12 (6.16.0-rc3):
720x360 and 1920x1080 H.264 play through V4L2 m2m + DRM PRIME with no
AddFB2 errors. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected 3e7f51bd96077acad6acd7b45668f65b44233c4e c587de78ffa123d17a93026d78da7e76823cc4e0 git |
Not specified |
| CNA |
Linux |
Linux |
affected 3e7f51bd96077acad6acd7b45668f65b44233c4e cb46dc57d169509e69a3e218e970785c2b79f7f8 git |
Not specified |
| CNA |
Linux |
Linux |
affected 3e7f51bd96077acad6acd7b45668f65b44233c4e 6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5 git |
Not specified |
| CNA |
Linux |
Linux |
affected 3e7f51bd96077acad6acd7b45668f65b44233c4e 0d6bc58d7f319c63f8525efb630de1ce55b7d780 git |
Not specified |
| CNA |
Linux |
Linux |
affected 3e7f51bd96077acad6acd7b45668f65b44233c4e 10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed git |
Not specified |
| CNA |
Linux |
Linux |
affected 3e7f51bd96077acad6acd7b45668f65b44233c4e b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3 git |
Not specified |
| CNA |
Linux |
Linux |
affected 3e7f51bd96077acad6acd7b45668f65b44233c4e 2f643182e4feef3a41bec2dd98c1294750392326 git |
Not specified |
| CNA |
Linux |
Linux |
affected 3e7f51bd96077acad6acd7b45668f65b44233c4e b3a805dd5a83ba8c85e2085d3411eb9975e0aea4 git |
Not specified |
| CNA |
Linux |
Linux |
affected 5.3 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.3 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.10.275 5.10.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.15.226 5.15.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.1.193 6.1.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.6.163 6.6.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.117 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.63 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.4 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/c587de78ffa123d17a93026d78da7e76823cc4e0 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/2f643182e4feef3a41bec2dd98c1294750392326 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/b3a805dd5a83ba8c85e2085d3411eb9975e0aea4 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/0d6bc58d7f319c63f8525efb630de1ce55b7d780 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/cb46dc57d169509e69a3e218e970785c2b79f7f8 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.