CVE-2026-139041

media: vicodec: make encoder CAPTURE dimensions read-only

No CVSS score yet EPSS 0.39%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-139041

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139041 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.39%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 35.0% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from efec9c815e5da15fe671fe7b3a0ea5575067b4b5, before 69ae6d7be0d67ecdedbea49a658d284cb6035495
affected from efec9c815e5da15fe671fe7b3a0ea5575067b4b5, before 30fbc161c40c28f46f780f4222dbc8966d85af7c
affected from efec9c815e5da15fe671fe7b3a0ea5575067b4b5, before 2373c6da34cd39ba58b3c1cf87cd32752bfa1612
affected from efec9c815e5da15fe671fe7b3a0ea5575067b4b5, before ae0ced91c40cbe86a5f5fc196f02df6d85aee77d
affected from efec9c815e5da15fe671fe7b3a0ea5575067b4b5, before 3ba760923c0846e3ea2ab811d19d2ca29bf5b118
affected from efec9c815e5da15fe671fe7b3a0ea5575067b4b5, before 72b9c63beb0151c917bdc538daaefb636f442b17
affected from efec9c815e5da15fe671fe7b3a0ea5575067b4b5, before f4bb5d4f446b6ae00a954003a0d9b7797a1b4197
affected from efec9c815e5da15fe671fe7b3a0ea5575067b4b5, before 2532e9d2f8ccb330a9c924b1ee34c5629240d352
Other versions: unaffected
Linux
affected 5.3
unaffected before 5.3
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.63 up to and including 6.18.*
unaffected from 7.3.4 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139041 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139041

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-139041
trivy image --scanners vuln IMAGE | grep CVE-2026-139041

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-139041 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.