{"api_version":"1","generated_at":"2026-12-02T02:26:49+00:00","cve":"CVE-2026-139041","urls":{"html":"https://cve.report/CVE-2026-139041","api":"https://cve.report/api/cve/CVE-2026-139041.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139041","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139041"},"summary":{"title":"media: vicodec: make encoder CAPTURE dimensions read-only","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vicodec: make encoder CAPTURE dimensions read-only\n\nSetting the encoder's compressed CAPTURE format to a smaller resolution\nthan the raw OUTPUT format makes the encoder write past the end of the\nCAPTURE buffer.\n\nFor a stateful encoder the CAPTURE width and height are not\nclient-settable; Documentation/userspace-api/media/v4l/dev-encoder.rst\nspecifies them as \"ignored (read-only)\" on VIDIOC_S_FMT. vicodec only\nimplements half of that: vidioc_s_fmt_vid_out() derives the CAPTURE coded\nsize and sizeimage from the OUTPUT format, but S_FMT on the CAPTURE queue\noverwrites them. The encoder then takes its geometry from the OUTPUT\nqueue alone, and v4l2_fwht_encode() gets no destination length.\n\nOverwrite the requested width and height with the OUTPUT queue's coded\ndimensions in vidioc_try_fmt_vid_cap(), making them read-only as the\ninterface requires.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:08","updated_at":"2026-11-30 14:18:08"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/30fbc161c40c28f46f780f4222dbc8966d85af7c","name":"https://git.kernel.org/stable/c/30fbc161c40c28f46f780f4222dbc8966d85af7c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3ba760923c0846e3ea2ab811d19d2ca29bf5b118","name":"https://git.kernel.org/stable/c/3ba760923c0846e3ea2ab811d19d2ca29bf5b118","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/69ae6d7be0d67ecdedbea49a658d284cb6035495","name":"https://git.kernel.org/stable/c/69ae6d7be0d67ecdedbea49a658d284cb6035495","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f4bb5d4f446b6ae00a954003a0d9b7797a1b4197","name":"https://git.kernel.org/stable/c/f4bb5d4f446b6ae00a954003a0d9b7797a1b4197","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2373c6da34cd39ba58b3c1cf87cd32752bfa1612","name":"https://git.kernel.org/stable/c/2373c6da34cd39ba58b3c1cf87cd32752bfa1612","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ae0ced91c40cbe86a5f5fc196f02df6d85aee77d","name":"https://git.kernel.org/stable/c/ae0ced91c40cbe86a5f5fc196f02df6d85aee77d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/72b9c63beb0151c917bdc538daaefb636f442b17","name":"https://git.kernel.org/stable/c/72b9c63beb0151c917bdc538daaefb636f442b17","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2532e9d2f8ccb330a9c924b1ee34c5629240d352","name":"https://git.kernel.org/stable/c/2532e9d2f8ccb330a9c924b1ee34c5629240d352","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139041","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139041","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 69ae6d7be0d67ecdedbea49a658d284cb6035495 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 30fbc161c40c28f46f780f4222dbc8966d85af7c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 2373c6da34cd39ba58b3c1cf87cd32752bfa1612 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 ae0ced91c40cbe86a5f5fc196f02df6d85aee77d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 3ba760923c0846e3ea2ab811d19d2ca29bf5b118 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 72b9c63beb0151c917bdc538daaefb636f442b17 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 f4bb5d4f446b6ae00a954003a0d9b7797a1b4197 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected efec9c815e5da15fe671fe7b3a0ea5575067b4b5 2532e9d2f8ccb330a9c924b1ee34c5629240d352 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/media/test-drivers/vicodec/vicodec-core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"69ae6d7be0d67ecdedbea49a658d284cb6035495","status":"affected","version":"efec9c815e5da15fe671fe7b3a0ea5575067b4b5","versionType":"git"},{"lessThan":"30fbc161c40c28f46f780f4222dbc8966d85af7c","status":"affected","version":"efec9c815e5da15fe671fe7b3a0ea5575067b4b5","versionType":"git"},{"lessThan":"2373c6da34cd39ba58b3c1cf87cd32752bfa1612","status":"affected","version":"efec9c815e5da15fe671fe7b3a0ea5575067b4b5","versionType":"git"},{"lessThan":"ae0ced91c40cbe86a5f5fc196f02df6d85aee77d","status":"affected","version":"efec9c815e5da15fe671fe7b3a0ea5575067b4b5","versionType":"git"},{"lessThan":"3ba760923c0846e3ea2ab811d19d2ca29bf5b118","status":"affected","version":"efec9c815e5da15fe671fe7b3a0ea5575067b4b5","versionType":"git"},{"lessThan":"72b9c63beb0151c917bdc538daaefb636f442b17","status":"affected","version":"efec9c815e5da15fe671fe7b3a0ea5575067b4b5","versionType":"git"},{"lessThan":"f4bb5d4f446b6ae00a954003a0d9b7797a1b4197","status":"affected","version":"efec9c815e5da15fe671fe7b3a0ea5575067b4b5","versionType":"git"},{"lessThan":"2532e9d2f8ccb330a9c924b1ee34c5629240d352","status":"affected","version":"efec9c815e5da15fe671fe7b3a0ea5575067b4b5","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/media/test-drivers/vicodec/vicodec-core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.3"},{"lessThan":"5.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vicodec: make encoder CAPTURE dimensions read-only\n\nSetting the encoder's compressed CAPTURE format to a smaller resolution\nthan the raw OUTPUT format makes the encoder write past the end of the\nCAPTURE buffer.\n\nFor a stateful encoder the CAPTURE width and height are not\nclient-settable; Documentation/userspace-api/media/v4l/dev-encoder.rst\nspecifies them as \"ignored (read-only)\" on VIDIOC_S_FMT. vicodec only\nimplements half of that: vidioc_s_fmt_vid_out() derives the CAPTURE coded\nsize and sizeimage from the OUTPUT format, but S_FMT on the CAPTURE queue\noverwrites them. The encoder then takes its geometry from the OUTPUT\nqueue alone, and v4l2_fwht_encode() gets no destination length.\n\nOverwrite the requested width and height with the OUTPUT queue's coded\ndimensions in vidioc_try_fmt_vid_cap(), making them read-only as the\ninterface requires."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:27:19.257Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/69ae6d7be0d67ecdedbea49a658d284cb6035495"},{"url":"https://git.kernel.org/stable/c/30fbc161c40c28f46f780f4222dbc8966d85af7c"},{"url":"https://git.kernel.org/stable/c/2373c6da34cd39ba58b3c1cf87cd32752bfa1612"},{"url":"https://git.kernel.org/stable/c/ae0ced91c40cbe86a5f5fc196f02df6d85aee77d"},{"url":"https://git.kernel.org/stable/c/3ba760923c0846e3ea2ab811d19d2ca29bf5b118"},{"url":"https://git.kernel.org/stable/c/72b9c63beb0151c917bdc538daaefb636f442b17"},{"url":"https://git.kernel.org/stable/c/f4bb5d4f446b6ae00a954003a0d9b7797a1b4197"},{"url":"https://git.kernel.org/stable/c/2532e9d2f8ccb330a9c924b1ee34c5629240d352"}],"title":"media: vicodec: make encoder CAPTURE dimensions read-only","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139041","datePublished":"2026-11-30T13:27:19.257Z","dateReserved":"2026-11-30T13:22:15.910Z","dateUpdated":"2026-11-30T13:27:19.257Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:08","lastModifiedDate":"2026-11-30 14:18:08","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139041","Ordinal":"1","Title":"media: vicodec: make encoder CAPTURE dimensions read-only","CVE":"CVE-2026-139041","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139041","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vicodec: make encoder CAPTURE dimensions read-only\n\nSetting the encoder's compressed CAPTURE format to a smaller resolution\nthan the raw OUTPUT format makes the encoder write past the end of the\nCAPTURE buffer.\n\nFor a stateful encoder the CAPTURE width and height are not\nclient-settable; Documentation/userspace-api/media/v4l/dev-encoder.rst\nspecifies them as \"ignored (read-only)\" on VIDIOC_S_FMT. vicodec only\nimplements half of that: vidioc_s_fmt_vid_out() derives the CAPTURE coded\nsize and sizeimage from the OUTPUT format, but S_FMT on the CAPTURE queue\noverwrites them. The encoder then takes its geometry from the OUTPUT\nqueue alone, and v4l2_fwht_encode() gets no destination length.\n\nOverwrite the requested width and height with the OUTPUT queue's coded\ndimensions in vidioc_try_fmt_vid_cap(), making them read-only as the\ninterface requires.","Type":"Description","Title":"media: vicodec: make encoder CAPTURE dimensions read-only"}]}}}