CVE-2026-139041
publishedmedia: vicodec: make encoder CAPTURE dimensions read-only
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxefec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 69ae6d7be0d67ecdedbea49a658d284cb6035495 · efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 30fbc161c40c28f46f780f4222dbc8966d85af7c · efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 2373c6da34cd39ba58b3c1cf87cd32752bfa1612 · efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < ae0ced91c40cbe86a5f5fc196f02df6d85aee77d · efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 3ba760923c0846e3ea2ab811d19d2ca29bf5b118 · efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 72b9c63beb0151c917bdc538daaefb636f442b17 · efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < f4bb5d4f446b6ae00a954003a0d9b7797a1b4197 · efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 2532e9d2f8ccb330a9c924b1ee34c5629240d352 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.3 (affected) · 0 to < 5.3 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 69ae6d7be0d67ecdedbea49a658d284cb6035495 (affected · git)efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 30fbc161c40c28f46f780f4222dbc8966d85af7c (affected · git)efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 2373c6da34cd39ba58b3c1cf87cd32752bfa1612 (affected · git)efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < ae0ced91c40cbe86a5f5fc196f02df6d85aee77d (affected · git)efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 3ba760923c0846e3ea2ab811d19d2ca29bf5b118 (affected · git)efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 72b9c63beb0151c917bdc538daaefb636f442b17 (affected · git)efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < f4bb5d4f446b6ae00a954003a0d9b7797a1b4197 (affected · git)efec9c815e5da15fe671fe7b3a0ea5575067b4b5 to < 2532e9d2f8ccb330a9c924b1ee34c5629240d352 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.3 (affected)0 to < 5.3 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/2373c6da34cd39ba58b3c1cf87cd32752bfa1612
- https://git.kernel.org/stable/c/2532e9d2f8ccb330a9c924b1ee34c5629240d352
- https://git.kernel.org/stable/c/30fbc161c40c28f46f780f4222dbc8966d85af7c
- https://git.kernel.org/stable/c/3ba760923c0846e3ea2ab811d19d2ca29bf5b118
- https://git.kernel.org/stable/c/69ae6d7be0d67ecdedbea49a658d284cb6035495
- https://git.kernel.org/stable/c/72b9c63beb0151c917bdc538daaefb636f442b17
- https://git.kernel.org/stable/c/ae0ced91c40cbe86a5f5fc196f02df6d85aee77d
- https://git.kernel.org/stable/c/f4bb5d4f446b6ae00a954003a0d9b7797a1b4197
Provider assertions
1Linux · cna
media: vicodec: make encoder CAPTURE dimensions read-only
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- eecadacbddf18bfcf80c0fafcb8609390ab9e34c068a85d0aa47633df3a40943
- Ingested
- 30 Nov 2026, 13:36:40 UTC
- Source record
- Official CVE record