{"id":"CVE-2026-138914","summary":"media: meson: vdec: size capture planes from the aligned canvas","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: meson: vdec: size capture planes from the aligned canvas\n\nThe decoder writes a whole canvas of ALIGN(width, 32) x ALIGN(height, 32)\n(amvdec_set_canvases()) and reports bytesperline = ALIGN(width, 32), but\nget_output_size() derives sizeimage from the raw width x height.\n\nWhen the width is not a multiple of 32 the planes are too small for the\nadvertised stride: for 720x360 NV12M the luma plane is 262144 bytes while\n736 * 360 = 264960 are needed (282624 for the canvas the firmware fills).\nThe decoder writes past the buffer, and importing the capture dma-buf\ninto DRM fails: drmModeAddFB2() returns -EINVAL, so e.g. Kodi plays the\nsound over a black screen. 1280x720 and 1920x1080 are not affected.\n\nSize the planes from the aligned canvas the hardware actually uses.\n\nTested on an S905X (GXL p212) board with LibreELEC 12 (6.16.0-rc3):\n720x360 and 1920x1080 H.264 play through V4L2 m2m + DRM PRIME with no\nAddFB2 errors.","modified":"2026-12-01T07:00:32.479590869Z","published":"2026-11-30T13:26:09.633Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138914.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0d6bc58d7f319c63f8525efb630de1ce55b7d780"},{"type":"WEB","url":"https://git.kernel.org/stable/c/10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2f643182e4feef3a41bec2dd98c1294750392326"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b3a805dd5a83ba8c85e2085d3411eb9975e0aea4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c587de78ffa123d17a93026d78da7e76823cc4e0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cb46dc57d169509e69a3e218e970785c2b79f7f8"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138914.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138914"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3e7f51bd96077acad6acd7b45668f65b44233c4e"},{"fixed":"c587de78ffa123d17a93026d78da7e76823cc4e0"},{"fixed":"cb46dc57d169509e69a3e218e970785c2b79f7f8"},{"fixed":"6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5"},{"fixed":"0d6bc58d7f319c63f8525efb630de1ce55b7d780"},{"fixed":"10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed"},{"fixed":"b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3"},{"fixed":"2f643182e4feef3a41bec2dd98c1294750392326"},{"fixed":"b3a805dd5a83ba8c85e2085d3411eb9975e0aea4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138914.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138914.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}