CVE-2026-138931

media: v4l2-isp: reject zero-sized parameter blocks

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

media: v4l2-isp: reject zero-sized parameter blocks

v4l2_isp_params_validate_buffer() walks the blocks of a parameters
buffer by adding block->size to the current offset. A block whose
type_info[] entry is an uninitialised hole passes every check on the
way there: a size of 0 is not caught by the block->size > buffer_size
test, and the match against the type info size compares 0 with the
hole's own 0 and passes as well. The walk then makes no forward
progress and loops forever.

Drivers build their type_info[] arrays with designated initialisers
indexed by their block type enumeration, so an enumerator left without
an entry leaves a zeroed hole rather than failing the build. Drivers
call the validator from vb2 .buf_prepare, so such a hole turns a
VIDIOC_QBUF on the parameters video device into an unkillable task
spinning with the queue mutex held.

Reject a block whose type info entry is empty. The driver does not
implement the type, so it cannot tell whether the block content is
meaningful, and accepting it silently would leave that content
unconstrained until a later kernel implements the type and starts
validating it. The size match then always runs against a non-zero
size, and no block can advance the walk by zero.

Analysis

AI-generated

Technical impact

The kernel validation routine for v4l2‑isp parameters loops indefinitely when it encounters a block whose size is zero and its type_info entry is uninitialized. Because the loop never progresses, the task that called the validator becomes unkillable while holding the queue mutex, effectively locking the device and allowing an attacker to force a denial of service. The weakness is an example of an infinite loop that can lead to uncontrolled resource consumption.

Affected Systems

This flaw exists in the Linux Linux kernel wherever the v4l2‑isp subsystem is built. No specific kernel versions are listed, so any kernel containing the legacy validator code is potentially impacted.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in CISA KEV, but the flaw requires an attacker to be able to issue a VIDIOC_QBUF ioctl on a parameters video device containing a zero‑size block. This is a local attack vector that can be performed by a user with access to the media device. Because the kernel task cannot be terminated, the device and potentially the system can be brought to a state of unavailability until a reboot or module reload occurs.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel revision that implements the fix in v4l2‑isp which rejects zero‑size parameter blocks.
  • Reboot or reload the affected kernel modules to ensure the validated code takes effect.
  • If an upgrade cannot be performed immediately, limit or remove access to the media parameters device so that malicious QBUF calls cannot be performed and consider disabling the v4l2‑isp subsystem in vulnerable deployments.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-674
CWE-770
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: v4l2-isp: reject zero-sized parameter blocks v4l2_isp_params_validate_buffer() walks the blocks of a parameters buffer by adding block->size to the current offset. A block whose type_info[] entry is an uninitialised hole passes every check on the way there: a size of 0 is not caught by the block->size > buffer_size test, and the match against the type info size compares 0 with the hole's own 0 and passes as well. The walk then makes no forward progress and loops forever. Drivers build their type_info[] arrays with designated initialisers indexed by their block type enumeration, so an enumerator left without an entry leaves a zeroed hole rather than failing the build. Drivers call the validator from vb2 .buf_prepare, so such a hole turns a VIDIOC_QBUF on the parameters video device into an unkillable task spinning with the queue mutex held. Reject a block whose type info entry is empty. The driver does not implement the type, so it cannot tell whether the block content is meaningful, and accepting it silently would leave that content unconstrained until a later kernel implements the type and starts validating it. The size match then always runs against a non-zero size, and no block can advance the walk by zero.
Title media: v4l2-isp: reject zero-sized parameter blocks
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-674

    Uncontrolled Recursion

  • CWE-770

    Allocation of Resources Without Limits or Throttling

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