0.0
NA
CVE-2026-139041
media: vicodec: make encoder CAPTURE dimensions read-only
Description

In the Linux kernel, the following vulnerability has been resolved: media: vicodec: make encoder CAPTURE dimensions read-only Setting the encoder's compressed CAPTURE format to a smaller resolution than the raw OUTPUT format makes the encoder write past the end of the CAPTURE buffer. For a stateful encoder the CAPTURE width and height are not client-settable; Documentation/userspace-api/media/v4l/dev-encoder.rst specifies them as "ignored (read-only)" on VIDIOC_S_FMT. vicodec only implements half of that: vidioc_s_fmt_vid_out() derives the CAPTURE coded size and sizeimage from the OUTPUT format, but S_FMT on the CAPTURE queue overwrites them. The encoder then takes its geometry from the OUTPUT queue alone, and v4l2_fwht_encode() gets no destination length. Overwrite the requested width and height with the OUTPUT queue's coded dimensions in vidioc_try_fmt_vid_cap(), making them read-only as the interface requires.

INFO

Published Date :

Nov. 30, 2026, 2:18 p.m.

Last Modified :

Nov. 30, 2026, 2:18 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-139041 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Fix ensures encoder CAPTURE dimensions are read-only to prevent buffer overflows.
  • Update Linux kernel to the resolved version.
  • Ensure encoder CAPTURE dimensions are read-only.
  • Validate encoder geometry and destination length.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-139041 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-139041 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-139041 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-139041 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 30, 2026

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: media: vicodec: make encoder CAPTURE dimensions read-only Setting the encoder's compressed CAPTURE format to a smaller resolution than the raw OUTPUT format makes the encoder write past the end of the CAPTURE buffer. For a stateful encoder the CAPTURE width and height are not client-settable; Documentation/userspace-api/media/v4l/dev-encoder.rst specifies them as "ignored (read-only)" on VIDIOC_S_FMT. vicodec only implements half of that: vidioc_s_fmt_vid_out() derives the CAPTURE coded size and sizeimage from the OUTPUT format, but S_FMT on the CAPTURE queue overwrites them. The encoder then takes its geometry from the OUTPUT queue alone, and v4l2_fwht_encode() gets no destination length. Overwrite the requested width and height with the OUTPUT queue's coded dimensions in vidioc_try_fmt_vid_cap(), making them read-only as the interface requires.
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/139xxx/CVE-2026-139041.json">CVE-2026-139041</a>
    Added Reference https://git.kernel.org/stable/c/2373c6da34cd39ba58b3c1cf87cd32752bfa1612
    Added Reference https://git.kernel.org/stable/c/2532e9d2f8ccb330a9c924b1ee34c5629240d352
    Added Reference https://git.kernel.org/stable/c/30fbc161c40c28f46f780f4222dbc8966d85af7c
    Added Reference https://git.kernel.org/stable/c/3ba760923c0846e3ea2ab811d19d2ca29bf5b118
    Added Reference https://git.kernel.org/stable/c/69ae6d7be0d67ecdedbea49a658d284cb6035495
    Added Reference https://git.kernel.org/stable/c/72b9c63beb0151c917bdc538daaefb636f442b17
    Added Reference https://git.kernel.org/stable/c/ae0ced91c40cbe86a5f5fc196f02df6d85aee77d
    Added Reference https://git.kernel.org/stable/c/f4bb5d4f446b6ae00a954003a0d9b7797a1b4197
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.