Shellfeed logo Shellfeed

CVE-2026-93236 · UNKNOWN

Summary: media: meson: vdec: fix NULL pointer deref in vdec_try_fmt_common

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 11.3).

Details

In the Linux kernel, the following vulnerability has been resolved:

media: meson: vdec: fix NULL pointer deref in vdec_try_fmt_common

When VIDIOC_TRY_FMT is called with an unsupported pixel format on the
OUTPUT queue, vdec_try_fmt_common() falls back to V4L2_PIX_FMT_MPEG2.
However, if a distro has locally patched MPEG2 support out (as it has
been broken for some time) the platform format table does not contain
MPEG2 so find_format() returns NULL and the subsequent dereference of
fmt_out->max_width triggers a NULL pointer dereference.

Fix this by falling back to the first format in the platform's format
array instead of hardcoding V4L2_PIX_FMT_MPEG2. This is always valid
since every platform defines at least one format.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [3e7f51bd96077acad6acd7b45668f65b44233c4e – 276f28672bb6d5d5feca78db4219c7b5adf1be26]
  • Linux Kernel [5.3.0 – 5.10.270] [5.11.0 – 5.15.221] [5.16.0 – 6.1.188] [6.2.0 – 6.6.157] [6.7.0 – 6.12.110] [6.13.0 – 6.18.51] [6.19.0 – 7.2.5]

References