CVE-2026-138905

HighCVSS 7.8/10Last modified Dec 1, 2026

Description

In 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.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Dec 1, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138906In the Linux kernel, the following vulnerability has been resolved: media: verisilicon: rockchip: Fix leaks in init If one of the dma_alloCVE-2026-1389077.0In the Linux kernel, the following vulnerability has been resolved: media: mediatek: jpeg: Avoid context access after job finish v4l2_m2m_CVE-2026-138908In the Linux kernel, the following vulnerability has been resolved: media: mediatek: vcodec: destroy core workqueue on remove The decoder CVE-2026-138909In the Linux kernel, the following vulnerability has been resolved: media: rkvdec: do not destroy borrowed SRAM pool rkvdec_probe() obtainCVE-2026-138917.5Insufficient validation of untrusted input in Extensions in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromisCVE-2026-138910In the Linux kernel, the following vulnerability has been resolved: media: mtk-jpeg: Fix runtime PM leak in mtk_jpegdec_worker() pm_runtimCVE-2026-138911In the Linux kernel, the following vulnerability has been resolved: media: mediatek: vpu: free IRQ before destroying watchdog workqueue mtCVE-2026-138912In the Linux kernel, the following vulnerability has been resolved: media: amphion: prevent unbind while video instances are open An open CVE-2026-138913In the Linux kernel, the following vulnerability has been resolved: media: amphion: drain message work before releasing core state vpu_corCVE-2026-1389147.8In the Linux kernel, the following vulnerability has been resolved: media: meson: vdec: size capture planes from the aligned canvas The deCVE-2026-138915In the Linux kernel, the following vulnerability has been resolved: media: chips-media: wave5: Balance runtime PM on encoder close errors CVE-2026-138916In the Linux kernel, the following vulnerability has been resolved: media: chips-media: wave5: Handle polling IRQ thread failure When fall
CVE-2026-138905: High severity, CVSS 7.8 | Vulnix