CVE-2026-138905

media: vicodec: fix NULL deref on oversized frame

Published Nov 30, 2026 CVSS 3.1 · 5.5 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The bug in the Linux kernel media/vicodec driver allows an oversized video frame header to bypass validation checks. The faulty code dereferences a NULL pointer during frame processing, which can trigger a kernel panic and cause a denial of service. This flaw does not directly grant arbitrary code execution but results in a catastrophic crash that can be leveraged by an attacker to interrupt critical services.

Affected Systems

Any Linux distribution that employs the Linux kernel media subsystem with the vicodec driver prior to the patch is susceptible. The CVE does not specify a particular kernel series, so systems running unpatched kernels across all distros are at risk. The vulnerability exists in the core kernel code; thus, all users of the affected kernel version are impacted.

Risk and Exploitability

The flaw does not have a public exploit noted and its EPSS score is not available, indicating limited awareness or likelihood of exploitation at this time. An attacker must be able to provide a crafted video frame, thus local or privileged access to the media subsystem is required. The attack vector is a local kernel driver interaction, not remotely triggered. Because the cvss score is unspecified, the severity assessment relies on the potential for a kernel crash, which can lead to service interruption or further privilege escalation if the attacker can trigger a subsequent flaw.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel patch or upgrade to a kernel version that contains the vicodec NULL deref fix
  • If an immediate kernel update is not feasible, blacklist or unload the vicodec module to prevent its use in the running system
  • Implement strict device frame size controls, such as configuring V4L2 formats or using constrained media pipelines, to ensure frames never exceed the kernel’s comp_max_size threshold

Generated by OpenCVE AI on November 30, 2026 at 17:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
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.
Title media: vicodec: fix NULL deref on oversized frame
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:26 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:26 PM