{"id":"CVE-2026-138914","aliases":["CVE-2026-138914"],"related":[],"kind":"vulnerability","state":"published","title":"media: meson: vdec: size capture planes from the aligned canvas","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:26:09.633Z","modified":"2026-12-01T06:17:31.043Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3e7f51bd96077acad6acd7b45668f65b44233c4e","fixed":"c587de78ffa123d17a93026d78da7e76823cc4e0","status":"affected"},{"type":"git","introduced":"3e7f51bd96077acad6acd7b45668f65b44233c4e","fixed":"cb46dc57d169509e69a3e218e970785c2b79f7f8","status":"affected"},{"type":"git","introduced":"3e7f51bd96077acad6acd7b45668f65b44233c4e","fixed":"6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5","status":"affected"},{"type":"git","introduced":"3e7f51bd96077acad6acd7b45668f65b44233c4e","fixed":"0d6bc58d7f319c63f8525efb630de1ce55b7d780","status":"affected"},{"type":"git","introduced":"3e7f51bd96077acad6acd7b45668f65b44233c4e","fixed":"10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed","status":"affected"},{"type":"git","introduced":"3e7f51bd96077acad6acd7b45668f65b44233c4e","fixed":"b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3","status":"affected"},{"type":"git","introduced":"3e7f51bd96077acad6acd7b45668f65b44233c4e","fixed":"2f643182e4feef3a41bec2dd98c1294750392326","status":"affected"},{"type":"git","introduced":"3e7f51bd96077acad6acd7b45668f65b44233c4e","fixed":"b3a805dd5a83ba8c85e2085d3411eb9975e0aea4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c587de78ffa123d17a93026d78da7e76823cc4e0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cb46dc57d169509e69a3e218e970785c2b79f7f8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d6bc58d7f319c63f8525efb630de1ce55b7d780","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f643182e4feef3a41bec2dd98c1294750392326","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3a805dd5a83ba8c85e2085d3411eb9975e0aea4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138914","url":"https://www.cve.org/CVERecord?id=CVE-2026-138914","licence":"CVE Terms of Use","modified":"2026-12-01T05:40:39.681Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138914","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138914","licence":"Public domain","modified":"2026-12-01T06:17:31.043Z"}],"updatedAt":"2026-12-01T06:32:16.659Z","epss":{"score":0.00192,"percentile":0.09261,"date":"2026-12-01T12:00:22.000Z"}}