Skip to main content
Menu
CVEs

Linux kernel buffer overflow in meson vdec capture planes

Affects the Linux meson vdec media driver when the capture width is not a multiple of 32, such as 720x360 NV12M. Fixed by patches c587de78ffa1, cb46dc57d169 and 6668d9052231.

CVE-2026-138914EUVD-2026-138617GHSA-M68Q-2PCX-2GJ4Published November 30, 2026, updated

7.8HighCNA
Exploited
No known exploitation
Fix
Vendor patch: c587de78ffa123d17a93026d78da7e76823cc4e0, cb46dc57d169509e69a3e218e970785c2b79f7f8, 6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5
Who is exposed
Specific setups only

Summary

Written by a model

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.

Who should check

Teams running the Linux kernel meson-vdec V4L2 decoder on Amlogic SoCs, where capture widths are not a multiple of 32.

“When the width is not a multiple of 32 the planes are too small for the advertised stride”

git.kernel.org

What to do

  1. Check whether your setup matches what the bug needs.

    The capture width is not a multiple of 32 (e.g. 720x360 NV12M); widths of 1280 or 1920 are not affected.
  2. Apply the vendor's patch: c587de78ffa123d17a93026d78da7e76823cc4e0, cb46dc57d169509e69a3e218e970785c2b79f7f8, 6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-138914 (media: meson: vdec: size capture planes from the aligned canvas), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-138914 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 5.3
Vendor patches: c587de78ffa123d17a93026d78da7e76823cc4e0, cb46dc57d169509e69a3e218e970785c2b79f7f8, 6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5 (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c587de78ffa123d17a93026d78da7e76823cc4e0). Check each asset for these patch ids, not only its version.
Conditions (all must be true for the bug to be hit):
- The capture width is not a multiple of 32 (e.g. 720x360 NV12M); widths of 1280 or 1920 are not affected. (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c587de78ffa123d17a93026d78da7e76823cc4e0)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, low-privilege login, no user action.
CISA KEV: CVE-2026-138914 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-138914 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/c587de78ffa123d17a93026d78da7e76823cc4e0
- https://git.kernel.org/stable/c/cb46dc57d169509e69a3e218e970785c2b79f7f8
- https://git.kernel.org/stable/c/6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5
- https://git.kernel.org/stable/c/0d6bc58d7f319c63f8525efb630de1ce55b7d780
- https://git.kernel.org/stable/c/10a7475bc6d1cef7d5c1e7f27c8de4a011ebbbed
- https://git.kernel.org/stable/c/b186accb1d7d8f9aa7b5183d7eb9ff26ac568ce3
- https://git.kernel.org/stable/c/2f643182e4feef3a41bec2dd98c1294750392326
- https://git.kernel.org/stable/c/b3a805dd5a83ba8c85e2085d3411eb9975e0aea4
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-138914
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-138914"}.

Affected versions

cve.now Index

33Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure5/25Specific setups only
  • Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
  • Severity7.8/10CVSS 7.8
  • No patch0/5No signal

What would change the score

  • Would score about 83 if added to CISA KEV
  • Would score about 78 if CISA's SSVC rates exploitation active
  • Would score about 43 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now1 day
  3. Record last updated
  4. Posted on X by cve.now

Evidence 10

Questions about CVE-2026-138914

Is CVE-2026-138914 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

The driver sizes the capture planes too small for the advertised stride when the width is not a multiple of 32. Writes past the capture buffers may allow privilege escalation and reading arbitrary memory.

Source: git.kernel.org, cve.org

Which versions are affected by CVE-2026-138914?

Linux: version 5.3.

Source: cve.now feed data

Am I affected, and how do I check?

The bug applies when the capture width is not a multiple of 32, such as 720x360 NV12M; widths of 1280 or 1920 are not affected. To check a setup, look at the capture width of the video stream being decoded on the affected Linux kernel.

Source: git.kernel.org, cve.org

How do I fix CVE-2026-138914?

Apply the patches c587de78ffa123d17a93026d78da7e76823cc4e0, cb46dc57d169509e69a3e218e970785c2b79f7f8 and 6668d9052231ae3daf6c8bfc8f6d379f1f35ffd5. The facts name no fixed kernel version.

Source: git.kernel.org, cve.org

No corrections so far. Something wrong on this page? Report an error.