media: vicodec: make encoder CAPTURE dimensions read-only

Summary

CVECVE-2026-139041
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:08 UTC
Updated2026-11-30 14:18:08 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 69ae6d7be0d67ecdedbea49a658d284cb6035495 git Not specified
CNA Linux Linux affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 30fbc161c40c28f46f780f4222dbc8966d85af7c git Not specified
CNA Linux Linux affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 2373c6da34cd39ba58b3c1cf87cd32752bfa1612 git Not specified
CNA Linux Linux affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 ae0ced91c40cbe86a5f5fc196f02df6d85aee77d git Not specified
CNA Linux Linux affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 3ba760923c0846e3ea2ab811d19d2ca29bf5b118 git Not specified
CNA Linux Linux affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 72b9c63beb0151c917bdc538daaefb636f442b17 git Not specified
CNA Linux Linux affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 f4bb5d4f446b6ae00a954003a0d9b7797a1b4197 git Not specified
CNA Linux Linux affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 2532e9d2f8ccb330a9c924b1ee34c5629240d352 git Not specified
CNA Linux Linux affected 5.3 Not specified
CNA Linux Linux unaffected 5.3 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/30fbc161c40c28f46f780f4222dbc8966d85af7c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3ba760923c0846e3ea2ab811d19d2ca29bf5b118 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/69ae6d7be0d67ecdedbea49a658d284cb6035495 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f4bb5d4f446b6ae00a954003a0d9b7797a1b4197 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2373c6da34cd39ba58b3c1cf87cd32752bfa1612 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ae0ced91c40cbe86a5f5fc196f02df6d85aee77d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/72b9c63beb0151c917bdc538daaefb636f442b17 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2532e9d2f8ccb330a9c924b1ee34c5629240d352 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report