media: vicodec: fix NULL deref on oversized frame

Summary

CVECVE-2026-138905
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:17:48 UTC
Updated2026-11-30 14:17:48 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: media: vicodec: fix NULL deref on oversized frame job_ready() only honours the is_header_valid() verdict when ctx->comp_has_frame is set, and comp_has_frame is only set once comp_size reaches the full frame size. Since the copy is clamped to ctx->comp_max_size, a header advertising a larger size leaves comp_size stuck at comp_max_size, so comp_has_frame stays false and the failed validation is discarded. Control then falls into the resolution change branch, which calls update_capture_data_from_header(). That function re-derives info via info_from_header(), assigns it to q_dst->info and dereferences it as q_dst->info->sizeimage_mult, with no NULL check of its own. is_header_valid() does check that same info_from_header() result -- if (!info) return false which is precisely the false verdict job_ready() discarded above. info_from_header() returns NULL whenever the header flags resolve to no supported pixel format. Drop the comp_has_frame conjunct so an invalid header always bails out. The resolution change path is unaffected, as it is entered with a valid header. Oversized frames are then rejected by device_process(), which already returns -EINVAL when comp_frame_size exceeds comp_max_size.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 3b15f68e19c28a76d175f61943a8c23224afce93 ed06bca3414b045dd29a0a5ca65e64e83e0b5373 git Not specified
CNA Linux Linux affected 3b15f68e19c28a76d175f61943a8c23224afce93 7347bd55fdc61db467400439a038a38ff69bc041 git Not specified
CNA Linux Linux affected 3b15f68e19c28a76d175f61943a8c23224afce93 5dfb45a44264484dd6cdb82c8e9bdefd4d091842 git Not specified
CNA Linux Linux affected 3b15f68e19c28a76d175f61943a8c23224afce93 8a2486fbd2fb552a89adbfe7bd4e4437f9bdb1f7 git Not specified
CNA Linux Linux affected 3b15f68e19c28a76d175f61943a8c23224afce93 563dfdc969c1bf63e4ace17a53aaaedd59595a01 git Not specified
CNA Linux Linux affected 3b15f68e19c28a76d175f61943a8c23224afce93 855012e5e1bb64b7f7e50422c02b2ebdcd872657 git Not specified
CNA Linux Linux affected 3b15f68e19c28a76d175f61943a8c23224afce93 b6f62366bc014a3a20fa0a3c42e51cadd198fb41 git Not specified
CNA Linux Linux affected 3b15f68e19c28a76d175f61943a8c23224afce93 c657eb609197e289b054bc2c4e86a0fc32dd7ebe git Not specified
CNA Linux Linux affected 5.1 Not specified
CNA Linux Linux unaffected 5.1 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/ed06bca3414b045dd29a0a5ca65e64e83e0b5373 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7347bd55fdc61db467400439a038a38ff69bc041 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/855012e5e1bb64b7f7e50422c02b2ebdcd872657 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b6f62366bc014a3a20fa0a3c42e51cadd198fb41 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c657eb609197e289b054bc2c4e86a0fc32dd7ebe 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/563dfdc969c1bf63e4ace17a53aaaedd59595a01 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8a2486fbd2fb552a89adbfe7bd4e4437f9bdb1f7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/5dfb45a44264484dd6cdb82c8e9bdefd4d091842 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