{"id":"CVE-2026-138905","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:17:48.947","lastModified":"2026-12-01T06:17:30.623","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vicodec: fix NULL deref on oversized frame\n\njob_ready() only honours the is_header_valid() verdict when\nctx->comp_has_frame is set, and comp_has_frame is only set once\ncomp_size reaches the full frame size. Since the copy is clamped to\nctx->comp_max_size, a header advertising a larger size leaves comp_size\nstuck at comp_max_size, so comp_has_frame stays false and the failed\nvalidation is discarded.\n\nControl then falls into the resolution change branch, which calls\nupdate_capture_data_from_header(). That function re-derives info via\ninfo_from_header(), assigns it to q_dst->info and dereferences it as\nq_dst->info->sizeimage_mult, with no NULL check of its own.\nis_header_valid() does check that same info_from_header() result --\nif (!info) return false which is precisely the false verdict\njob_ready() discarded above. info_from_header() returns NULL whenever the\nheader flags resolve to no supported pixel format.\n\nDrop the comp_has_frame conjunct so an invalid header always bails out.\nThe resolution change path is unaffected, as it is entered with a valid\nheader. Oversized frames are then rejected by device_process(), which\nalready returns -EINVAL when comp_frame_size exceeds comp_max_size."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/media/test-drivers/vicodec/vicodec-core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"3b15f68e19c28a76d175f61943a8c23224afce93","lessThan":"ed06bca3414b045dd29a0a5ca65e64e83e0b5373","versionType":"git","status":"affected"},{"version":"3b15f68e19c28a76d175f61943a8c23224afce93","lessThan":"7347bd55fdc61db467400439a038a38ff69bc041","versionType":"git","status":"affected"},{"version":"3b15f68e19c28a76d175f61943a8c23224afce93","lessThan":"5dfb45a44264484dd6cdb82c8e9bdefd4d091842","versionType":"git","status":"affected"},{"version":"3b15f68e19c28a76d175f61943a8c23224afce93","lessThan":"8a2486fbd2fb552a89adbfe7bd4e4437f9bdb1f7","versionType":"git","status":"affected"},{"version":"3b15f68e19c28a76d175f61943a8c23224afce93","lessThan":"563dfdc969c1bf63e4ace17a53aaaedd59595a01","versionType":"git","status":"affected"},{"version":"3b15f68e19c28a76d175f61943a8c23224afce93","lessThan":"855012e5e1bb64b7f7e50422c02b2ebdcd872657","versionType":"git","status":"affected"},{"version":"3b15f68e19c28a76d175f61943a8c23224afce93","lessThan":"b6f62366bc014a3a20fa0a3c42e51cadd198fb41","versionType":"git","status":"affected"},{"version":"3b15f68e19c28a76d175f61943a8c23224afce93","lessThan":"c657eb609197e289b054bc2c4e86a0fc32dd7ebe","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/media/test-drivers/vicodec/vicodec-core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.1","status":"affected"},{"version":"0","lessThan":"5.1","versionType":"semver","status":"unaffected"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"references":[{"url":"https://git.kernel.org/stable/c/563dfdc969c1bf63e4ace17a53aaaedd59595a01","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5dfb45a44264484dd6cdb82c8e9bdefd4d091842","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7347bd55fdc61db467400439a038a38ff69bc041","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/855012e5e1bb64b7f7e50422c02b2ebdcd872657","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8a2486fbd2fb552a89adbfe7bd4e4437f9bdb1f7","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/b6f62366bc014a3a20fa0a3c42e51cadd198fb41","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c657eb609197e289b054bc2c4e86a0fc32dd7ebe","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/ed06bca3414b045dd29a0a5ca65e64e83e0b5373","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}