CVE-2026-139041: Linux kernel · media: vicodec: make encoder CAPTURE dimensions read-only
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 8.5 Medium.
Data as of 2 Dec 2026, 18:37 UTC
Thin evidence
One scorer or none- EPSS
- 0.3% chance of exploitation in 30 days – higher than 34% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10linuxpkg:deb/ubuntu/linux?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-oraclepkg:deb/ubuntu/linux-oracle?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-139041 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-139041 (opens in a new tab)
- git.kernel.org/stable/c/ae0ced91c40cbe86a5f5fc196f02df6d85aee77d (opens in a new tab)
- git.kernel.org/stable/c/2532e9d2f8ccb330a9c924b1ee34c5629240d352 (opens in a new tab)
- git.kernel.org/stable/c/f4bb5d4f446b6ae00a954003a0d9b7797a1b4197 (opens in a new tab)
- git.kernel.org/stable/c/69ae6d7be0d67ecdedbea49a658d284cb6035495 (opens in a new tab)
- git.kernel.org/stable/c/30fbc161c40c28f46f780f4222dbc8966d85af7c (opens in a new tab)
- git.kernel.org/stable/c/2373c6da34cd39ba58b3c1cf87cd32752bfa1612 (opens in a new tab)
- git.kernel.org/stable/c/72b9c63beb0151c917bdc538daaefb636f442b17 (opens in a new tab)
- git.kernel.org/stable/c/3ba760923c0846e3ea2ab811d19d2ca29bf5b118 (opens in a new tab)