{"api_version":"1","generated_at":"2026-11-30T18:48:00+00:00","cve":"CVE-2026-138914","urls":{"html":"https://cve.report/CVE-2026-138914","api":"https://cve.report/api/cve/CVE-2026-138914.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-138914","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-138914"},"summary":{"title":"media: meson: vdec: size capture planes from the aligned canvas","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:17:50","updated_at":"2026-11-30 14:17:50"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3","name":"https://git.kernel.org/stable/c/b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c587de78ffa123d17a93026d78da7e76823cc4e0","name":"https://git.kernel.org/stable/c/c587de78ffa123d17a93026d78da7e76823cc4e0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5","name":"https://git.kernel.org/stable/c/6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2f643182e4feef3a41bec2dd98c1294750392326","name":"https://git.kernel.org/stable/c/2f643182e4feef3a41bec2dd98c1294750392326","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed","name":"https://git.kernel.org/stable/c/10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b3a805dd5a83ba8c85e2085d3411eb9975e0aea4","name":"https://git.kernel.org/stable/c/b3a805dd5a83ba8c85e2085d3411eb9975e0aea4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0d6bc58d7f319c63f8525efb630de1ce55b7d780","name":"https://git.kernel.org/stable/c/0d6bc58d7f319c63f8525efb630de1ce55b7d780","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cb46dc57d169509e69a3e218e970785c2b79f7f8","name":"https://git.kernel.org/stable/c/cb46dc57d169509e69a3e218e970785c2b79f7f8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138914","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138914","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e7f51bd96077acad6acd7b45668f65b44233c4e c587de78ffa123d17a93026d78da7e76823cc4e0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e7f51bd96077acad6acd7b45668f65b44233c4e cb46dc57d169509e69a3e218e970785c2b79f7f8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e7f51bd96077acad6acd7b45668f65b44233c4e 6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e7f51bd96077acad6acd7b45668f65b44233c4e 0d6bc58d7f319c63f8525efb630de1ce55b7d780 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e7f51bd96077acad6acd7b45668f65b44233c4e 10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e7f51bd96077acad6acd7b45668f65b44233c4e b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e7f51bd96077acad6acd7b45668f65b44233c4e 2f643182e4feef3a41bec2dd98c1294750392326 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e7f51bd96077acad6acd7b45668f65b44233c4e b3a805dd5a83ba8c85e2085d3411eb9975e0aea4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/staging/media/meson/vdec/vdec.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"c587de78ffa123d17a93026d78da7e76823cc4e0","status":"affected","version":"3e7f51bd96077acad6acd7b45668f65b44233c4e","versionType":"git"},{"lessThan":"cb46dc57d169509e69a3e218e970785c2b79f7f8","status":"affected","version":"3e7f51bd96077acad6acd7b45668f65b44233c4e","versionType":"git"},{"lessThan":"6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5","status":"affected","version":"3e7f51bd96077acad6acd7b45668f65b44233c4e","versionType":"git"},{"lessThan":"0d6bc58d7f319c63f8525efb630de1ce55b7d780","status":"affected","version":"3e7f51bd96077acad6acd7b45668f65b44233c4e","versionType":"git"},{"lessThan":"10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed","status":"affected","version":"3e7f51bd96077acad6acd7b45668f65b44233c4e","versionType":"git"},{"lessThan":"b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3","status":"affected","version":"3e7f51bd96077acad6acd7b45668f65b44233c4e","versionType":"git"},{"lessThan":"2f643182e4feef3a41bec2dd98c1294750392326","status":"affected","version":"3e7f51bd96077acad6acd7b45668f65b44233c4e","versionType":"git"},{"lessThan":"b3a805dd5a83ba8c85e2085d3411eb9975e0aea4","status":"affected","version":"3e7f51bd96077acad6acd7b45668f65b44233c4e","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/staging/media/meson/vdec/vdec.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.3"},{"lessThan":"5.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:26:09.633Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/c587de78ffa123d17a93026d78da7e76823cc4e0"},{"url":"https://git.kernel.org/stable/c/cb46dc57d169509e69a3e218e970785c2b79f7f8"},{"url":"https://git.kernel.org/stable/c/6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5"},{"url":"https://git.kernel.org/stable/c/0d6bc58d7f319c63f8525efb630de1ce55b7d780"},{"url":"https://git.kernel.org/stable/c/10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed"},{"url":"https://git.kernel.org/stable/c/b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3"},{"url":"https://git.kernel.org/stable/c/2f643182e4feef3a41bec2dd98c1294750392326"},{"url":"https://git.kernel.org/stable/c/b3a805dd5a83ba8c85e2085d3411eb9975e0aea4"}],"title":"media: meson: vdec: size capture planes from the aligned canvas","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-138914","datePublished":"2026-11-30T13:26:09.633Z","dateReserved":"2026-11-30T13:22:15.903Z","dateUpdated":"2026-11-30T13:26:09.633Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:17:50","lastModifiedDate":"2026-11-30 14:17:50","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"138914","Ordinal":"1","Title":"media: meson: vdec: size capture planes from the aligned canvas","CVE":"CVE-2026-138914","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"138914","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"media: meson: vdec: size capture planes from the aligned canvas"}]}}}